<div dir="ltr"><div dir="ltr">On Fri, Jun 21, 2019 at 6:58 PM Hardie, Andrew <<a href="mailto:a.hardie@lancaster.ac.uk" target="_blank">a.hardie@lancaster.ac.uk</a>> wrote:<br></div><div dir="ltr"><br></div><div dir="ltr">Hi Andrew,</div><div dir="ltr"><br></div><div>Sorry about the delay!</div><div><br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div lang="EN-GB">
<div class="m_-3539993726611373130gmail-m_8859588785073931981WordSection1">
<p class="MsoNormal"><span style="color:rgb(31,73,125);font-family:Verdana,sans-serif;font-size:10pt">__ is
</span><i style="color:rgb(31,73,125);font-family:Verdana,sans-serif;font-size:10pt">not</i><span style="color:rgb(31,73,125);font-family:Verdana,sans-serif;font-size:10pt"> reserved, </span><i style="color:rgb(31,73,125);font-family:Verdana,sans-serif;font-size:10pt">except</i><span style="color:rgb(31,73,125);font-family:Verdana,sans-serif;font-size:10pt"> in combination with __freq in final position. And that’s checked.</span></p></div></div></blockquote><div><br></div><div>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).</div><div><br></div><div>Thus, I can name a corpus ABCDEFGHIJKLMNOPQRST and it works, but ABCDEFGHIJKLMNOPQRST<b>U</b> causes an error and can't install. </div><div><br></div><div>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.</div><div><br></div><div>Cheers,</div><div>Scott</div><div><br></div><div><b>[1]</b></div><table class="m_-3539993726611373130gmail-concordtable m_-3539993726611373130gmail-fullwidth" style="color:rgb(0,0,0);font-family:"Times New Roman";font-size:medium"><tbody><tr><th class="m_-3539993726611373130gmail-concordtable">CQPweb encountered an error and could not continue.</th></tr><tr><td class="m_-3539993726611373130gmail-concorderror"><p class="m_-3539993726611373130errormessage">That corpus name is invalid. You must specify a corpus name using only letters, numbers and underscore</p></td></tr><tr><th class="m_-3539993726611373130gmail-concordtable">PHP debugging backtrace</th></tr><tr><td class="m_-3539993726611373130gmail-concorderror"><pre>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"
}
}</pre><pre></pre></td></tr></tbody></table><div><br></div></div></div>