[CWB] [CQPweb] Can't install new corpora

Scott Sadowsky ssadowsky at gmail.com
Tue Jun 25 09:05:41 CEST 2019


Thanks, Andrew. All is now clear.

Cheers,
Scott

On Tue, Jun 25, 2019 at 2:31 AM Hardie, Andrew <a.hardie at lancaster.ac.uk>
wrote:

> Hi Scott,
>
>
>
> See section 6.3 of the manual which explains these limits.
> https://cqpweb.lancs.ac.uk/doc/CQPwebAdminManual.pdf
>
>
>
> I’ll try to increase it over time when possible.
>
>
>
> best
>
>
>
> Andrew
>
>
>
> *From:* cwb-bounces at sslmit.unibo.it <cwb-bounces at sslmit.unibo.it> *On
> Behalf Of *Scott Sadowsky
> *Sent:* 25 June 2019 06:24
> *To:* Open source development of the Corpus WorkBench <cwb at sslmit.unibo.it
> >
> *Subject:* Re: [CWB] [CQPweb] Can't install new corpora
>
>
>
> On Fri, Jun 21, 2019 at 6:58 PM Hardie, Andrew <a.hardie at lancaster.ac.uk>
> wrote:
>
>
>
> Hi Andrew,
>
>
>
> Sorry about the delay!
>
>
>
> __ is *not* reserved, *except* in combination with __freq in final
> position. And that’s checked.
>
>
>
> I think I've found the problem. It doesn't have anything to do with
> underscores, but with corpus handle length -- handles up to 20 characters
> work, while those 21 characters and over are treated as invalid by the
> corpus installer (see [1] below for the exact error message).
>
>
>
> Thus, I can name a corpus ABCDEFGHIJKLMNOPQRST and it works, but
> ABCDEFGHIJKLMNOPQRST*U* causes an error and can't install.
>
>
>
> 20 characters may seem like enough, but I was hitting this accidentally
> with "corpusB_complete__0_2", and it's easy to imagine longer names being
> used. So if there's any way to increase this limit, it would be great.
>
>
>
> Cheers,
>
> Scott
>
>
>
> *[1]*
>
> *CQPweb encountered an error and could not continue.*
>
> That corpus name is invalid. You must specify a corpus name using only
> letters, numbers and underscore
>
> *PHP debugging backtrace*
>
> array(6) {
>
>   [1]=>
>
>   array(4) {
>
>     ["file"]=>
>
>     string(46) "/var/www/html/cqpweb/lib/admin-install-lib.php"
>
>     ["line"]=>
>
>     int(104)
>
>     ["function"]=>
>
>     string(9) "exiterror"
>
>     ["args"]=>
>
>     array(1) {
>
>       [0]=>
>
>       string(102) "That corpus name is invalid. You must specify a corpus name using only letters, numbers and underscore"
>
>     }
>
>   }
>
>   [2]=>
>
>   array(7) {
>
>     ["file"]=>
>
>     string(46) "/var/www/html/cqpweb/lib/admin-install-lib.php"
>
>     ["line"]=>
>
>     int(508)
>
>     ["function"]=>
>
>     string(11) "__construct"
>
>     ["class"]=>
>
>     string(19) "CQPwebNewCorpusInfo"
>
>     ["object"]=>
>
>     object(CQPwebNewCorpusInfo)#22 (14) {
>
>       ["is_user_corpus":"CQPwebNewCorpusInfo":private]=>
>
>       bool(false)
>
>       ["corpus_name"]=>
>
>       string(21) "coscach_complete__0_2"
>
>       ["send_sysadmin_email_when_done"]=>
>
>       bool(false)
>
>       ["already_cwb_indexed"]=>
>
>       bool(true)
>
>       ["main_script_is_r2l"]=>
>
>       NULL
>
>       ["corpus_info_sql_insert"]=>
>
>       NULL
>
>       ["css_path"]=>
>
>       NULL
>
>       ["title"]=>
>
>       NULL
>
>       ["p_attributes"]=>
>
>       array(0) {
>
>       }
>
>       ["p_attributes_sql_insert"]=>
>
>       array(0) {
>
>       }
>
>       ["primary_p_attribute"]=>
>
>       NULL
>
>       ["s_attributes"]=>
>
>       array(0) {
>
>       }
>
>       ["s_attributes_sql_insert"]=>
>
>       array(0) {
>
>       }
>
>       ["file_list"]=>
>
>       NULL
>
>     }
>
>     ["type"]=>
>
>     string(2) "->"
>
>     ["args"]=>
>
>     array(0) {
>
>     }
>
>   }
>
>   [3]=>
>
>   array(4) {
>
>     ["file"]=>
>
>     string(36) "/var/www/html/cqpweb/lib/execute.php"
>
>     ["line"]=>
>
>     int(178)
>
>     ["function"]=>
>
>     string(18) "install_new_corpus"
>
>     ["args"]=>
>
>     array(0) {
>
>     }
>
>   }
>
>   [4]=>
>
>   array(4) {
>
>     ["file"]=>
>
>     string(42) "/var/www/html/cqpweb/lib/admin-execute.php"
>
>     ["line"]=>
>
>     int(125)
>
>     ["args"]=>
>
>     array(1) {
>
>       [0]=>
>
>       string(36) "/var/www/html/cqpweb/lib/execute.php"
>
>     }
>
>     ["function"]=>
>
>     string(7) "require"
>
>   }
>
>   [5]=>
>
>   array(4) {
>
>     ["file"]=>
>
>     string(38) "/var/www/html/cqpweb/lib/adminhome.php"
>
>     ["line"]=>
>
>     int(34)
>
>     ["args"]=>
>
>     array(1) {
>
>       [0]=>
>
>       string(42) "/var/www/html/cqpweb/lib/admin-execute.php"
>
>     }
>
>     ["function"]=>
>
>     string(7) "require"
>
>   }
>
>   [6]=>
>
>   array(4) {
>
>     ["file"]=>
>
>     string(34) "/var/www/html/cqpweb/adm/index.php"
>
>     ["line"]=>
>
>     int(1)
>
>     ["args"]=>
>
>     array(1) {
>
>       [0]=>
>
>       string(38) "/var/www/html/cqpweb/lib/adminhome.php"
>
>     }
>
>     ["function"]=>
>
>     string(7) "require"
>
>   }
>
> }
>
>
> _______________________________________________
> CWB mailing list
> CWB at sslmit.unibo.it
> http://liste.sslmit.unibo.it/mailman/listinfo/cwb
>


-- 
Dr. Scott Sadowsky
Profesor Asistente de Lingüística
Pontificia Universidad Católica de Chile

ssadowsky gmail com
scsadowsky uc cl
http://sadowsky.cl/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://liste.sslmit.unibo.it/pipermail/cwb/attachments/20190625/0aef4551/attachment.html>


More information about the CWB mailing list