<div dir="ltr"><div>An addendum to my previous message...</div><div><br></div><div>I've been trying to deal with the failed corpus creation problem on my own in the meantime, and I chanced upon the following: the one thing that has changed on my end with respect to the entire corpus creation process is the naming convention I use. I'm now creating versioned corpora whose names follow this pattern: <font face="courier new, monospace">corpus_name__1_7</font> for corpus version 1.7. Trying to create corpora like this inevitably fails, even with older version of CQPweb (I tried 1253, 1251, 1250 and 1240, with the same results, so this isn't a recent regression at least).</div><div><br></div><div>If I try to install an older corpus with the naming pattern <font face="courier new, monospace">corpus_name</font>, everything works. And when I manually edit directory names and the registry file so that corpora with names like <font face="courier new, monospace">corpus_name__1_7</font> (note the double underscore) become <span style="font-family:"courier new",monospace">corpus_name_1_7</span>, (no double underscore), everything also works. But if I use a double underscore, corpus creation fails part way through the process, and a ghost corpus entry with the form <font face="courier new, monospace">corpus_name__0_</font> is created (it has no actual content, though, and of course can't be used).</div><div><br></div><div>Is the double underscore a reserved character combination by chance? I've noticed frequency lists use them (e.g. <font face="courier new, monospace">your_corpus</font>'s frequency list is created as <font face="courier new, monospace">your_corpus__freq</font>), which makes me wonder.</div><div><br></div><div>Finally, even when I successfully make a corpus, and the corpus works perfectly (as far as I can tell), I still get the following errors in my Apache2 log every time. </div><div><br></div><div><div><font face="courier new, monospace">[Fri Jun 21 04:43:21.226946 2019] [php7:warn] [pid 883] [client <a href="http://192.168.0.1:33476/" target="_blank">192.168.0.1:33476</a>] PHP Warning: chmod(): Operation not permitted in /var/www/html/cqpweb/lib/admin-install-lib.php on line 530, referer: http://</font><span style="font-family:"courier new",monospace">192.168.0.1</span><font face="courier new, monospace">/adm/index.php?ui=installCorpusIndexed</font></div><div><font face="courier new, monospace"><br>[Fri Jun 21 04:43:21.256755 2019] [php7:notice] [pid 883] [client </font><span style="font-family:"courier new",monospace">192.168.0.1</span><font face="courier new, monospace">:33476] PHP Notice: Trying to get property 'indexing_notes' of non-object in /var/www/html/cqpweb/lib/html-lib.php on line 1251, referer: http://</font><span style="font-family:"courier new",monospace">192.168.0.1</span><font face="courier new, monospace">/adm/index.php?ui=installCorpusIndexed</font></div></div><div><br></div><div>Ideas? The relevant code is trying to change permissions on a directory that's held in a variable, so I can't see what it's actually trying to act upon.</div><div><br></div><div>Cheers,</div><div>Scott</div><div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jun 21, 2019 at 4:59 AM Scott Sadowsky <<a href="mailto:ssadowsky@gmail.com">ssadowsky@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>This seems to have cropped up between 1249 (or perhaps a bit earlier) and 1253. When I do...</div><div><br></div><div><font face="courier new, monospace">Corpora > Install new corpus > Click here to install a corpus you have already indexed in CWB > [FILL IN FIELDS] > Install corpus with settings above </font></div><div><br></div><div>...the operation is far too fast, and the following errors pop up in my Apache log:</div><div><font face="courier new, monospace"><br></font></div><div><font face="courier new, monospace">[Fri Jun 21 04:43:21.226946 2019] [php7:warn] [pid 883] [client <a href="http://192.168.0.1:33476" target="_blank">192.168.0.1:33476</a>] PHP Warning: chmod(): Operation not permitted in /var/www/html/cqpweb/lib/admin-install-lib.php on line 530, referer: http://</font><span style="font-family:"courier new",monospace">192.168.0.1</span><font face="courier new, monospace">/adm/index.php?ui=installCorpusIndexed</font></div><div><font face="courier new, monospace"><br>[Fri Jun 21 04:43:21.256755 2019] [php7:notice] [pid 883] [client </font><span style="font-family:"courier new",monospace">192.168.0.1</span><font face="courier new, monospace">:33476] PHP Notice: Trying to get property 'indexing_notes' of non-object in /var/www/html/cqpweb/lib/html-lib.php on line 1251, referer: http://</font><span style="font-family:"courier new",monospace">192.168.0.1</span><font face="courier new, monospace">/adm/index.php?ui=installCorpusIndexed</font><br><br>If I then proceed to <font face="courier new, monospace">Design and insert a text-metadata table for the corpus</font>, I get this error: "Core critical error: invalid corpus handle submitted to database."<br></div><div><br></div><div>Everything I do before adding the Corpus to CQPweb is done through scripts, including setting permissions, so the cause really shouldn't be something I'm doing. </div><div><br></div><div>Best,</div><div>Scott</div></div>
</blockquote></div><br clear="all"><div><br></div></div>