[CWB] CQPweb does not return results but blank page

Yu Yuan yuyuan97 at 163.com
Wed Oct 20 10:48:31 CEST 2021


Hi Andrew,
The same error  persists despite that I have installed php-mbstring and regenerated the builtin mapping table. It won't go away :(.


Best,
David
On 10/20/2021 09:04,<cwb-request at sslmit.unibo.it> wrote:
Send CWB mailing list submissions to
cwb at sslmit.unibo.it

To subscribe or unsubscribe via the World Wide Web, visit
http://liste.sslmit.unibo.it/mailman/listinfo/cwb
or, via email, send a message with subject or body 'help' to
cwb-request at sslmit.unibo.it

You can reach the person managing the list at
cwb-owner at sslmit.unibo.it

When replying, please edit your Subject line so it is more specific
than "Re: Contents of CWB digest..."


Today's Topics:

1. Re: CQPweb does not return results but blank  page
(Hardie, Andrew)


----------------------------------------------------------------------

Message: 1
Date: Wed, 20 Oct 2021 08:03:52 +0000
From: "Hardie, Andrew" <a.hardie at lancaster.ac.uk>
To: Open source development of the Corpus WorkBench
<cwb at sslmit.unibo.it>
Subject: Re: [CWB] CQPweb does not return results but blank  page
Message-ID:
<LO4P265MB3485EA9A86813401E119B51FCBBE9 at LO4P265MB3485.GBRP265.PROD.OUTLOOK.COM>

Content-Type: text/plain; charset="us-ascii"

That's a different issue. This problem is that you don't have the mbstring extension  installed in PHP, but you need it! If you install the php-mbstring package and try again, that will deal with that issue.

If you then get the earlier error again, here's something that may well  fix it: go into the admin control panel, to the mapping tables option, and regenerate the built-in mapping tables.

best

Andrew.

From: cwb-bounces at sslmit.unibo.it <cwb-bounces at sslmit.unibo.it> On Behalf Of Yu Yuan
Sent: 20 October 2021 08:33
To: cwb at sslmit.unibo.it
Subject: [External] Re: [CWB] CQPweb does not return results but blank page



Hi, Andrew,
Yes, I did. I changed this setting at  managing annotation but it remains ineffective in the CQP syntax mode. I got the following error prompt:
************************************
[Wed Oct 20 15:22:33.618213 2021] [php7:error] [pid 186581] [client 127.0.0.1:45324] PHP Fatal error:  Uncaught Error: Call to undefined function mb_strlen() in /var/www/html/nuist/lib/general-lib.php:709\nStack trace:\n#0 /var/www/html/nuist/lib/cache-lib.php(1644): utf8_strlen()\n#1 /var/www/html/nuist/lib/concordance-ui.php(599): QueryRecord->print_query_search_term()\n#2 /var/www/html/nuist/exe/concordance.php(1): require('/var/www/html/n...')\n#3 {main}\n  thrown in /var/www/html/nuist/lib/general-lib.php on line 709, referer: http://localhost/nuist/ciiss_en/
************************************
Many thanks and best wishes,
David






At 2021-10-18 10:01:24, cwb-request at sslmit.unibo.it<mailto:cwb-request at sslmit.unibo.it> wrote:

Send CWB mailing list submissions to

cwb at sslmit.unibo.it<mailto:cwb at sslmit.unibo.it>



To subscribe or unsubscribe via the World Wide Web, visit

http://liste.sslmit.unibo.it/mailman/listinfo/cwb

or, via email, send a message with subject or body 'help' to

cwb-request at sslmit.unibo.it<mailto:cwb-request at sslmit.unibo.it>



You can reach the person managing the list at

cwb-owner at sslmit.unibo.it<mailto:cwb-owner at sslmit.unibo.it>



When replying, please edit your Subject line so it is more specific

than "Re: Contents of CWB digest..."





Today's Topics:



1. Re: CQPweb does not return results but blank  page (Yu Yuan)

2. Re: CQPweb does not return results but blank  page

(Hardie, Andrew)





----------------------------------------------------------------------



Message: 1

Date: Mon, 18 Oct 2021 08:58:41 +0800 (CST)

From: "Yu Yuan" <yuyuan97 at 163.com<mailto:yuyuan97 at 163.com>>

To: "cwb at sslmit.unibo.it<mailto:cwb at sslmit.unibo.it>" <cwb at sslmit.unibo.it<mailto:cwb at sslmit.unibo.it>>

Subject: Re: [CWB] CQPweb does not return results but blank  page

Message-ID: <460c8698.695.17c90e863a8.Coremail.yuyuan97 at 163.com<mailto:460c8698.695.17c90e863a8.Coremail.yuyuan97 at 163.com>>

Content-Type: text/plain; charset="gbk"



Hi, Andrew,

Thanks for the help. I looked into the error log and it appears to be some variable type delcaration problem  to me as I compared the "query-lib.php" file with its  early 3.2.43 version and found you reengineered the code a bit and had all the variable type declaration  (e.g. string, bool) removed. Could this be the cause of problem? I pasted the error below for your reference:





***************************************

[Mon Oct 18 08:47:13.623391 2021] [php7:error] [pid 142109] [client 127.0.0.1:35296] PHP Fatal error:  Uncaught TypeError: Argument 1 passed to get_tertiary_mapping_table() must be of the type string, null given, called in /var/www/html/nuist/lib/query-lib.php on line 426 and defined in /var/www/html/nuist/lib/query-lib.php:676\nStack trace:\n#0 /var/www/html/nuist/lib/query-lib.php(426): get_tertiary_mapping_table()\n#1 /var/www/html/nuist/lib/query-lib.php(367): process_simple_query_new()\n#2 /var/www/html/nuist/lib/concordance-ui.php(319): process_simple_query()\n#3 /var/www/html/nuist/exe/concordance.php(1): require('/var/www/html/n...')\n#4 {main}\n  thrown in /var/www/html/nuist/lib/query-lib.php on line 676, referer: http://localhost/nuist/ciiss_en/



***************************************











Best wishes,

David

















At 2021-10-17 18:00:01, cwb-request at sslmit.unibo.it<mailto:cwb-request at sslmit.unibo.it> wrote:

Send CWB mailing list submissions to

cwb at sslmit.unibo.it<mailto:cwb at sslmit.unibo.it>



To subscribe or unsubscribe via the World Wide Web, visit

http://liste.sslmit.unibo.it/mailman/listinfo/cwb

or, via email, send a message with subject or body 'help' to

cwb-request at sslmit.unibo.it<mailto:cwb-request at sslmit.unibo.it>



You can reach the person managing the list at

cwb-owner at sslmit.unibo.it<mailto:cwb-owner at sslmit.unibo.it>



When replying, please edit your Subject line so it is more specific

than "Re: Contents of CWB digest..."





Today's Topics:



1. Re: CQPweb does not return results but blank  page

(Hardie, Andrew)





----------------------------------------------------------------------



Message: 1

Date: Sat, 16 Oct 2021 22:18:59 +0000

From: "Hardie, Andrew" <a.hardie at lancaster.ac.uk<mailto:a.hardie at lancaster.ac.uk>>

To: Open source development of the Corpus WorkBench

<cwb at sslmit.unibo.it<mailto:cwb at sslmit.unibo.it>>

Subject: Re: [CWB] CQPweb does not return results but blank  page

Message-ID:

<LO4P265MB34856FD450732BBEFE2CB297CBBA9 at LO4P265MB3485.GBRP265.PROD.OUTLOOK.COM<mailto:LO4P265MB34856FD450732BBEFE2CB297CBBA9 at LO4P265MB3485.GBRP265.PROD.OUTLOOK.COM>>



Content-Type: text/plain; charset="iso-2022-jp"



Hi David,



in case of a blank screen, almost certainly there is an error, but it has been printed to your server log instead of to the browser.



there is a PHP ini setting you can adjust for this -- search for "error" in php.ini . or have a look at your log file -- if you are using Apache it will be something like /var/log/apache2/error.log



best



Andrew.



________________________________

From: cwb-bounces at sslmit.unibo.it<mailto:cwb-bounces at sslmit.unibo.it> <cwb-bounces at sslmit.unibo.it<mailto:cwb-bounces at sslmit.unibo.it>> on behalf of ?? <yuyuan97 at 163.com<mailto:yuyuan97 at 163.com>>

Sent: Friday, October 15, 2021 2:35:29 PM

To: cwb at sslmit.unibo.it<mailto:cwb at sslmit.unibo.it> <cwb at sslmit.unibo.it<mailto:cwb at sslmit.unibo.it>>

Subject: [CWB] CQPweb does not return results but blank page



Dear All,

I recently installed CWB and CQPweb on a Ubuntu desktop for  demo purpose.   It seems that there are no glitches at all from the beginning to the end until I started query after the installation of a preindexed corpus. There was no response but a blank page, showing no errors too. The preindexed corpus was taken from my server that was taken offline.  It was supposed to work well with  CQPweb.   I met the same problem when I tried the sample Dickens corpus.  I am using CWB 3.4.33 and CQPweb 3.3.10. My corpus was indexed with an earlier version of CWB (should this be an issue?).



Best wishes,

David

















-------------- next part --------------

An HTML attachment was scrubbed...

URL: <http://liste.sslmit.unibo.it/pipermail/cwb/attachments/20211016/45397858/attachment-0001.html>



------------------------------



_______________________________________________

CWB mailing list

CWB at sslmit.unibo.it<mailto:CWB at sslmit.unibo.it>

http://liste.sslmit.unibo.it/mailman/listinfo/cwb





End of CWB Digest, Vol 175, Issue 2

***********************************

-------------- next part --------------

An HTML attachment was scrubbed...

URL: <http://liste.sslmit.unibo.it/pipermail/cwb/attachments/20211018/3550af60/attachment-0001.html>



------------------------------



Message: 2

Date: Mon, 18 Oct 2021 02:01:16 +0000

From: "Hardie, Andrew" <a.hardie at lancaster.ac.uk<mailto:a.hardie at lancaster.ac.uk>>

To: Open source development of the Corpus WorkBench

<cwb at sslmit.unibo.it<mailto:cwb at sslmit.unibo.it>>

Subject: Re: [CWB] CQPweb does not return results but blank  page

Message-ID:

<LO4P265MB3485E5E396F265C0DEC7133CCBBC9 at LO4P265MB3485.GBRP265.PROD.OUTLOOK.COM<mailto:LO4P265MB3485E5E396F265C0DEC7133CCBBC9 at LO4P265MB3485.GBRP265.PROD.OUTLOOK.COM>>



Content-Type: text/plain; charset="us-ascii"



Hi David,



Based on this error message, I believe the problem is that you have declared a tertiary annotation, but not specified a mapping table, in this corpus.



To test this, try doing a query in "CQP syntax" mode. If I'm correct, it will work fine.



best



Andrew.



PS. changing from weakly typed to strongly typed function parameters and return values was one of the big changes made in v 3.3.0 . I am reasonably certain the bugs from that changeover are pretty well shaken out.



From: cwb-bounces at sslmit.unibo.it<mailto:cwb-bounces at sslmit.unibo.it> <cwb-bounces at sslmit.unibo.it<mailto:cwb-bounces at sslmit.unibo.it>> On Behalf Of Yu Yuan

Sent: 18 October 2021 01:59

To: cwb at sslmit.unibo.it<mailto:cwb at sslmit.unibo.it>

Subject: Re: [CWB] CQPweb does not return results but blank page



Hi, Andrew,

Thanks for the help. I looked into the error log and it appears to be some variable type delcaration problem  to me as I compared the "query-lib.php" file with its  early 3.2.43 version and found you reengineered the code a bit and had all the variable type declaration  (e.g. string, bool) removed. Could this be the cause of problem? I pasted the error below for your reference:



***************************************

[Mon Oct 18 08:47:13.623391 2021] [php7:error] [pid 142109] [client 127.0.0.1:35296] PHP Fatal error:  Uncaught TypeError: Argument 1 passed to get_tertiary_mapping_table() must be of the type string, null given, called in /var/www/html/nuist/lib/query-lib.php on line 426 and defined in /var/www/html/nuist/lib/query-lib.php:676\nStack trace:\n#0 /var/www/html/nuist/lib/query-lib.php(426): get_tertiary_mapping_table()\n#1 /var/www/html/nuist/lib/query-lib.php(367): process_simple_query_new()\n#2 /var/www/html/nuist/lib/concordance-ui.php(319): process_simple_query()\n#3 /var/www/html/nuist/exe/concordance.php(1): require('/var/www/html/n...')\n#4 {main}\n  thrown in /var/www/html/nuist/lib/query-lib.php on line 676, referer: http://localhost/nuist/ciiss_en/

***************************************





Best wishes,

David









At 2021-10-17 18:00:01, cwb-request at sslmit.unibo.it<mailto:cwb-request at sslmit.unibo.it<mailto:cwb-request at sslmit.unibo.it%3cmailto:cwb-request at sslmit.unibo.it>> wrote:



Send CWB mailing list submissions to



cwb at sslmit.unibo.it<mailto:cwb at sslmit.unibo.it<mailto:cwb at sslmit.unibo.it%3cmailto:cwb at sslmit.unibo.it>>







To subscribe or unsubscribe via the World Wide Web, visit



http://liste.sslmit.unibo.it/mailman/listinfo/cwb



or, via email, send a message with subject or body 'help' to



cwb-request at sslmit.unibo.it<mailto:cwb-request at sslmit.unibo.it<mailto:cwb-request at sslmit.unibo.it%3cmailto:cwb-request at sslmit.unibo.it>>







You can reach the person managing the list at



cwb-owner at sslmit.unibo.it<mailto:cwb-owner at sslmit.unibo.it<mailto:cwb-owner at sslmit.unibo.it%3cmailto:cwb-owner at sslmit.unibo.it>>







When replying, please edit your Subject line so it is more specific



than "Re: Contents of CWB digest..."











Today's Topics:







1. Re: CQPweb does not return results but blank  page



(Hardie, Andrew)











----------------------------------------------------------------------







Message: 1



Date: Sat, 16 Oct 2021 22:18:59 +0000



From: "Hardie, Andrew" <a.hardie at lancaster.ac.uk<mailto:a.hardie at lancaster.ac.uk<mailto:a.hardie at lancaster.ac.uk%3cmailto:a.hardie at lancaster.ac.uk>>>



To: Open source development of the Corpus WorkBench



<cwb at sslmit.unibo.it<mailto:cwb at sslmit.unibo.it<mailto:cwb at sslmit.unibo.it%3cmailto:cwb at sslmit.unibo.it>>>



Subject: Re: [CWB] CQPweb does not return results but blank  page



Message-ID:



<LO4P265MB34856FD450732BBEFE2CB297CBBA9 at LO4P265MB3485.GBRP265.PROD.OUTLOOK.COM<mailto:LO4P265MB34856FD450732BBEFE2CB297CBBA9 at LO4P265MB3485.GBRP265.PROD.OUTLOOK.COM<mailto:LO4P265MB34856FD450732BBEFE2CB297CBBA9 at LO4P265MB3485.GBRP265.PROD.OUTLOOK.COM%3cmailto:LO4P265MB34856FD450732BBEFE2CB297CBBA9 at LO4P265MB3485.GBRP265.PROD.OUTLOOK.COM>>>







Content-Type: text/plain; charset="iso-2022-jp"







Hi David,







in case of a blank screen, almost certainly there is an error, but it has been printed to your server log instead of to the browser.







there is a PHP ini setting you can adjust for this -- search for "error" in php.ini . or have a look at your log file -- if you are using Apache it will be something like /var/log/apache2/error.log







best







Andrew.







________________________________



From: cwb-bounces at sslmit.unibo.it<mailto:cwb-bounces at sslmit.unibo.it<mailto:cwb-bounces at sslmit.unibo.it%3cmailto:cwb-bounces at sslmit.unibo.it>> <cwb-bounces at sslmit.unibo.it<mailto:cwb-bounces at sslmit.unibo.it<mailto:cwb-bounces at sslmit.unibo.it%3cmailto:cwb-bounces at sslmit.unibo.it>>> on behalf of ?? <yuyuan97 at 163.com<mailto:yuyuan97 at 163.com<mailto:yuyuan97 at 163.com%3cmailto:yuyuan97 at 163.com>>>



Sent: Friday, October 15, 2021 2:35:29 PM



To: cwb at sslmit.unibo.it<mailto:cwb at sslmit.unibo.it<mailto:cwb at sslmit.unibo.it%3cmailto:cwb at sslmit.unibo.it>> <cwb at sslmit.unibo.it<mailto:cwb at sslmit.unibo.it<mailto:cwb at sslmit.unibo.it%3cmailto:cwb at sslmit.unibo.it>>>



Subject: [CWB] CQPweb does not return results but blank page







Dear All,



I recently installed CWB and CQPweb on a Ubuntu desktop for  demo purpose.   It seems that there are no glitches at all from the beginning to the end until I started query after the installation of a preindexed corpus. There was no response but a blank page, showing no errors too. The preindexed corpus was taken from my server that was taken offline.  It was supposed to work well with  CQPweb.   I met the same problem when I tried the sample Dickens corpus.  I am using CWB 3.4.33 and CQPweb 3.3.10. My corpus was indexed with an earlier version of CWB (should this be an issue?).







Best wishes,



David



































-------------- next part --------------



An HTML attachment was scrubbed...



URL: <http://liste.sslmit.unibo.it/pipermail/cwb/attachments/20211016/45397858/attachment-0001.html>







------------------------------







_______________________________________________



CWB mailing list



CWB at sslmit.unibo.it<mailto:CWB at sslmit.unibo.it<mailto:CWB at sslmit.unibo.it%3cmailto:CWB at sslmit.unibo.it>>



http://liste.sslmit.unibo.it/mailman/listinfo/cwb











End of CWB Digest, Vol 175, Issue 2



***********************************











-------------- next part --------------

An HTML attachment was scrubbed...

URL: <http://liste.sslmit.unibo.it/pipermail/cwb/attachments/20211018/e0a17f7a/attachment.html>



------------------------------



_______________________________________________

CWB mailing list

CWB at sslmit.unibo.it<mailto:CWB at sslmit.unibo.it>

http://liste.sslmit.unibo.it/mailman/listinfo/cwb





End of CWB Digest, Vol 175, Issue 3

***********************************





-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://liste.sslmit.unibo.it/pipermail/cwb/attachments/20211020/2014e5ba/attachment.html>

------------------------------

_______________________________________________
CWB mailing list
CWB at sslmit.unibo.it
http://liste.sslmit.unibo.it/mailman/listinfo/cwb


End of CWB Digest, Vol 175, Issue 5
***********************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://liste.sslmit.unibo.it/pipermail/cwb/attachments/20211020/db321c7f/attachment-0001.html>


More information about the CWB mailing list