<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Verdana",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-GB" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">This helps somewhat, albeit I’m still not entirely sure what is happening.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">__ is
<i>not</i> reserved, <i>except</i> in combination with __freq in final position. And that’s checked.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">If you turn on “print_debug_messages”, you might be able to see what SQL commands are actually run during installation. There should
 be a number of “insert” statements&nbsp; one for the corpus, one for each p-attribute except “word”, one for each s-attribute.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">&gt;&gt;</span> 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.<span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">The variable contains “../handleofyourcorpus”, i.e., it’s the web directory within the main CQPweb folder.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">&gt;&gt;</span> even when I successfully make a corpus …I still get the following errors in my Apache2 log every time.&nbsp;<span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">I don’t see how you could have got “</span><span style="font-family:&quot;Courier New&quot;">Trying to get property 'indexing_notes' of non-object</span><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">”
 after a *<b>success</b>*. That error can only occur if the corpus does not exist in the DB. And if the corpus is not in the DB, you should get a critical error when you try later to use it. Couold that error have stemmed from an unsuccessful run earlier?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">best<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US">Andrew.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><b><span lang="EN-US">From:</span></b><span lang="EN-US"> cwb-bounces@sslmit.unibo.it &lt;cwb-bounces@sslmit.unibo.it&gt;
<b>On Behalf Of </b>Scott Sadowsky<br>
<b>Sent:</b> 21 June 2019 19:01<br>
<b>To:</b> Open source development of the Corpus WorkBench &lt;CWB@liste.sslmit.unibo.it&gt;<br>
<b>Subject:</b> Re: [CWB] [CQPweb] Can't install new corpora<o:p></o:p></span></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<div>
<p class="MsoNormal">An addendum to my previous message...<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">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: <span style="font-family:&quot;Courier New&quot;">
corpus_name__1_7</span> 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).<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">If I try to install an older corpus with the naming pattern <span style="font-family:&quot;Courier New&quot;">
corpus_name</span>, everything works. And when I manually edit directory names and the registry file so that corpora with names like
<span style="font-family:&quot;Courier New&quot;">corpus_name__1_7</span> (note the double underscore) become&nbsp;<span style="font-family:&quot;Courier New&quot;">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 <span style="font-family:&quot;Courier New&quot;">
corpus_name__0_</span> is created (it has no actual content, though, and of course can't be used).<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">Is the double underscore a reserved character combination by chance? I've noticed frequency lists use them (e.g.
<span style="font-family:&quot;Courier New&quot;">your_corpus</span>'s frequency list is created as&nbsp;<span style="font-family:&quot;Courier New&quot;">your_corpus__freq</span>), which makes me wonder.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">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.&nbsp;<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;">[Fri Jun 21 04:43:21.226946 2019] [php7:warn] [pid 883] [client&nbsp;<a href="http://192.168.0.1:33476/" target="_blank">192.168.0.1:33476</a>] PHP Warning: &nbsp;chmod(): Operation not permitted in /var/www/html/cqpweb/lib/admin-install-lib.php
 on line 530, referer: <a href="http://192.168.0.1/adm/index.php?ui=installCorpusIndexed">
http://192.168.0.1/adm/index.php?ui=installCorpusIndexed</a></span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;"><br>
[Fri Jun 21 04:43:21.256755 2019] [php7:notice] [pid 883] [client&nbsp;192.168.0.1:33476] PHP Notice: &nbsp;Trying to get property 'indexing_notes' of non-object in /var/www/html/cqpweb/lib/html-lib.php on line 1251, referer:
<a href="http://192.168.0.1/adm/index.php?ui=installCorpusIndexed">http://192.168.0.1/adm/index.php?ui=installCorpusIndexed</a></span><o:p></o:p></p>
</div>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">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.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">Cheers,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Scott<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<div>
<p class="MsoNormal">On Fri, Jun 21, 2019 at 4:59 AM Scott Sadowsky &lt;<a href="mailto:ssadowsky@gmail.com">ssadowsky@gmail.com</a>&gt; wrote:<o:p></o:p></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm">
<div>
<div>
<p class="MsoNormal">This seems to have cropped up between 1249 (or perhaps a bit earlier) and 1253. When I do...<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;">Corpora &gt; Install new corpus &gt; Click here to install a corpus you have already indexed in CWB &gt; [FILL IN FIELDS] &gt; Install corpus with settings above&nbsp;</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">...the operation is far too fast, and the following errors pop up in my Apache log:<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;">[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: &nbsp;chmod(): Operation not permitted in /var/www/html/cqpweb/lib/admin-install-lib.php on line 530, referer:
<a href="http://192.168.0.1/adm/index.php?ui=installCorpusIndexed">http://192.168.0.1/adm/index.php?ui=installCorpusIndexed</a></span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;"><br>
[Fri Jun 21 04:43:21.256755 2019] [php7:notice] [pid 883] [client&nbsp;192.168.0.1:33476] PHP Notice: &nbsp;Trying to get property 'indexing_notes' of non-object in /var/www/html/cqpweb/lib/html-lib.php on line 1251, referer:
<a href="http://192.168.0.1/adm/index.php?ui=installCorpusIndexed">http://192.168.0.1/adm/index.php?ui=installCorpusIndexed</a></span><br>
<br>
If I then proceed to <span style="font-family:&quot;Courier New&quot;">Design and insert a text-metadata table for the corpus</span>, I get this error: &quot;Core critical error: invalid corpus handle submitted to database.&quot;<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">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.&nbsp;<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">Best,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Scott<o:p></o:p></p>
</div>
</div>
</blockquote>
</div>
<p class="MsoNormal"><br clear="all">
<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
</div>
</div>
</body>
</html>