[CWB] CQPweb 3.2.4 related: query returns a blank page and corpus deletion partial

Hardie, Andrew a.hardie at lancaster.ac.uk
Wed Oct 28 06:30:02 CET 2015


This is not a bug, it looks like you are using an older version of PHP which does not like the syntax I’ve used here (array dereferencing of function return value), which was introduced in PHP 5.4; so if you are using 5.3 the syntax isn’t working.

Note that if you’re using PHP 5.3, you shouldn’t be; it was end-of-lifed two years ago and is no logner getting security updates. See http://php.net/supported-versions.php

That said, I know not all system admins are able to update their version of PHP, so I’ll fix the code to avoid this syntax in my next commit, to accommodate users of PHP 5.3.

Here’s the fixed version if you want to patch it temporarily:

                   list ($n_words_searched_tmp) = amount_of_text_searched($cache_record['subcorpus'], $cache_record['restrictions']);
                   $restrict_access_max = max_hits_when_restricted($n_words_searched_tmp);

best

Andrew.

From: cwb-bounces at sslmit.unibo.it [mailto:cwb-bounces at sslmit.unibo.it] On Behalf Of (Ray) WU Liangping
Sent: 27 October 2015 12:34
To: Open source development of the Corpus WorkBench
Subject: Re: [CWB] CQPweb 3.2.4 related: query returns a blank page and corpus deletion partial

Sorry, I reinstalled v3.2.4 and caught an error in the log file. Hopefully this helps.

[Tue Oct 27 20:29:52 2015] [error] [client 127.0.0.1] PHP Parse error:  syntax error, unexpected '[' in /usr/local/apache2/htdocs/lib/concordance.inc.php on line 653, referer: http://127.0.1.1/brown/index.php?thisQ=search&uT=y

I can see Line 653 reads:  $restrict_access_max = max_hits_when_restricted(amount_of_text_searched($cache_record['subcorpus'], $cache_record['restrictions'])[0]);

Liangping

At 2015-10-27 14:05:59, "Hardie, Andrew" <a.hardie at lancaster.ac.uk<mailto:a.hardie at lancaster.ac.uk>> wrote:

Hi Liangpeng,

Can you check your server log to see if there is a corresponding error message written when these errors occur?

These things aren’t happening on my own machine, so it’s difficult to diagnose without  an error message.

You may also have an uneven set of code files – I am still working on some stuff…

best

Andrew.

From: cwb-bounces at sslmit.unibo.it<mailto:cwb-bounces at sslmit.unibo.it> [mailto:cwb-bounces at sslmit.unibo.it<mailto:cwb-bounces at sslmit.unibo.it>] On Behalf Of (Ray) WU Liangping
Sent: 27 October 2015 05:58
To: cwb at sslmit.unibo.it<mailto:cwb at sslmit.unibo.it>
Subject: [CWB] CQPweb 3.2.4 related: query returns a blank page and corpus deletion partial

Hi all,

I am trying the new CQPweb interface v3.2.4 from a fresh installation.  I can install a corpus and see the frequency list for p-attributes of either word or pos.
Currently I have two problems:
1) Query (either standard or restricted) returns no results and CQPweb gives no indication of error but an empty page. As the word and pos attributes are successfully generated, so MySQL and CWB should be functioning somehow. However, when the query is issued, nothing happens and query history is also empty.
2) I find in the CQPweb System Administrator's Manual a line reads that some handles cannot include any lowercase letters (p. 36) , so I doubt my setup procedure (I used lowercases for everything) and want a deletion for a new installation. Strangely, the corpus won't go away as usual (but Frequency lists are not functioning any more so the deletion is not immaterial but just partial).

Any hints?
Thanks.

Best,
WU Liangping

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://devel.sslmit.unibo.it/pipermail/cwb/attachments/20151028/2faf71ac/attachment.html>


More information about the CWB mailing list