[CWB] CQPweb does not return results but blank page

Hardie, Andrew a.hardie at lancaster.ac.uk
Mon Oct 18 04:01:16 CEST 2021


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 <cwb-bounces at sslmit.unibo.it> On Behalf Of Yu Yuan
Sent: 18 October 2021 01:59
To: 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> 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/e0a17f7a/attachment-0001.html>


More information about the CWB mailing list