<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 12 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","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.MsoPlainText, li.MsoPlainText, div.MsoPlainText
        {mso-style-priority:99;
        mso-style-link:"Plain Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Verdana","sans-serif";
        color:#1F497D;}
span.PlainTextChar
        {mso-style-name:"Plain Text Char";
        mso-style-priority:99;
        mso-style-link:"Plain Text";
        font-family:"Courier New";}
.MsoChpDefault
        {mso-style-type:export-only;}
@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:"Verdana","sans-serif";color:#1F497D">Hi Jörg,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif";color:#1F497D">The error message that explains what is going on is this one:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoPlainText"><span style="font-family:"Verdana","sans-serif";color:#1F497D">“</span>PHP Fatal error: Call to undefined function printquery_mysqlsystemrestore()<span style="font-family:"Verdana","sans-serif";color:#1F497D">”<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif";color:#1F497D">My memory of 2.12 is hazy but I know for sure this bug does not exist in the current version. If you are unable to upgrade to 3.0.7 (which I do encourage you
to do) then you can fix it by making sure the library file which contains this function is include_once()d at the start of adminhome.inc.php and/or admin-execute.inc.php<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif";color:#1F497D">Sorry I can’t be more specific but I’ve moved the functions around quite a lot since 2.12. If you still have trouble let me know and I’ll start digging through
old versions of the code when I get a spare moment.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif";color:#1F497D">best<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif";color:#1F497D">Andrew.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> cwb-bounces@sslmit.unibo.it [mailto:cwb-bounces@sslmit.unibo.it]
<b>On Behalf Of </b>Ray Wu<br>
<b>Sent:</b> 09 November 2012 16:58<br>
<b>To:</b> Open source development of the Corpus WorkBench<br>
<b>Subject:</b> Re: [CWB] Stuck with cqpweb installation<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-size:10.5pt;font-family:"Arial","sans-serif";color:black">Hi Jörg,<br>
I can see that you are using a quite old CQPweb (v 2.12).<br>
I solved a similar problem by switching to the latest CQPweb (v 3.0.7) by pulling it fromt the svn source tree.
<br>
Hope this helps.<o:p></o:p></span></p>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Arial","sans-serif";color:black"><br>
Best,<br>
Ray<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Arial","sans-serif";color:black"><o:p> </o:p></span></p>
<pre><span style="color:black"><br>At 2012-11-10 00:38:08,"Jörg Knappen" <<a href="mailto:j.knappen@mx.uni-saarland.de">j.knappen@mx.uni-saarland.de</a>> wrote:<o:p></o:p></span></pre>
<pre><span style="color:black">><o:p> </o:p></span></pre>
<pre><span style="color:black">>I am in the course of CQPweb installation and I am currently stuck at <o:p></o:p></span></pre>
<pre><span style="color:black">>the following point:<o:p></o:p></span></pre>
<pre><span style="color:black">><o:p> </o:p></span></pre>
<pre><span style="color:black">>I can log in to CQP_WEB/adm and get a web page from there.<o:p></o:p></span></pre>
<pre><span style="color:black">><o:p> </o:p></span></pre>
<pre><span style="color:black">>I can click on "Reset MySQL Database", but I cannot "do it", because <o:p></o:p></span></pre>
<pre><span style="color:black">>the page presented does not change.<o:p></o:p></span></pre>
<pre><span style="color:black">><o:p> </o:p></span></pre>
<pre><span style="color:black">>I can "do it" when clicking on "Mapping tables" and scrolling down; <o:p></o:p></span></pre>
<pre><span style="color:black">>but even after that the database is still empty<o:p></o:p></span></pre>
<pre><span style="color:black">>(I inspected it using mysql from the command line).<o:p></o:p></span></pre>
<pre><span style="color:black">><o:p> </o:p></span></pre>
<pre><span style="color:black">>Can someone give me a hint?<o:p></o:p></span></pre>
<pre><span style="color:black">><o:p> </o:p></span></pre>
<pre><span style="color:black">>--Jörg Knappen<o:p></o:p></span></pre>
<pre><span style="color:black">><o:p> </o:p></span></pre>
<pre><span style="color:black">>The general settings are:<o:p></o:p></span></pre>
<pre><span style="color:black">><o:p> </o:p></span></pre>
<pre><span style="color:black">>Operating system: SLE11-SDK-SP2<o:p></o:p></span></pre>
<pre><span style="color:black">>Apache httpd: 2.4.3<o:p></o:p></span></pre>
<pre><span style="color:black">>PHP: PHP 5.3.8 (cgi-fcgi)<o:p></o:p></span></pre>
<pre><span style="color:black">> Copyright (c) 1997-2011 The PHP Group<o:p></o:p></span></pre>
<pre><span style="color:black">> Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies<o:p></o:p></span></pre>
<pre><span style="color:black">>mysql: Ver 14.12 Distrib 5.0.96, for suse-linux-gnu (x86_64) using <o:p></o:p></span></pre>
<pre><span style="color:black">>EditLine wrapper<o:p></o:p></span></pre>
<pre><span style="color:black">>CQPweb: CQPweb-2.12<o:p></o:p></span></pre>
<pre><span style="color:black">>cwb: cwb-3.0.0-linux-x86_64<o:p></o:p></span></pre>
<pre><span style="color:black">><o:p> </o:p></span></pre>
<pre><span style="color:black">>Error on the adm/ page (presented):<o:p></o:p></span></pre>
<pre><span style="color:black">><o:p> </o:p></span></pre>
<pre><span style="color:black">>A mySQL query did not run successfully!<o:p></o:p></span></pre>
<pre><span style="color:black">><o:p> </o:p></span></pre>
<pre><span style="color:black">>Error # 1146:<o:p></o:p></span></pre>
<pre><span style="color:black">>Table 'cqpweb.corpus_metadata_fixed' doesn't exist<o:p></o:p></span></pre>
<pre><span style="color:black">><o:p> </o:p></span></pre>
<pre><span style="color:black">>... in file /usr/local/apache2/htdocs/cqpweb/lib/adminhome.inc.php line 678.<o:p></o:p></span></pre>
<pre><span style="color:black">><o:p> </o:p></span></pre>
<pre><span style="color:black">>Errors I can read off the log files include:<o:p></o:p></span></pre>
<pre><span style="color:black">><o:p> </o:p></span></pre>
<pre><span style="color:black">>(from access_log)<o:p></o:p></span></pre>
<pre><span style="color:black">>"GET /cqpweb/css/CQPweb-red.css HTTP/1.1" 404 1384<o:p></o:p></span></pre>
<pre><span style="color:black">><o:p> </o:p></span></pre>
<pre><span style="color:black">>(from error_log)<o:p></o:p></span></pre>
<pre><span style="color:black">>(context: calling adm/)<o:p></o:p></span></pre>
<pre><span style="color:black">>[Fri Nov 09 17:29:04.403215 2012] [access_compat:error] [pid 1354:tid <o:p></o:p></span></pre>
<pre><span style="color:black">>1401192716<o:p></o:p></span></pre>
<pre><span style="color:black">>51072] [client xxx.xxx.xxx.xxx:xxx] AH01797: client denied by server <o:p></o:p></span></pre>
<pre><span style="color:black">>configuratio<o:p></o:p></span></pre>
<pre><span style="color:black">>n: /usr/local/apache2/htdocs/cqpweb/adm/<o:p></o:p></span></pre>
<pre><span style="color:black">>[Fri Nov 09 17:29:04.412074 2012] [fcgid:warn] [pid 1354:tid <o:p></o:p></span></pre>
<pre><span style="color:black">>140119271651072] [c<o:p></o:p></span></pre>
<pre><span style="color:black">>lient xxx.xxx.xxx.xxx:xxx] mod_fcgid: stderr: PHP Notice: Undefined <o:p></o:p></span></pre>
<pre><span style="color:black">>index: admFu<o:p></o:p></span></pre>
<pre><span style="color:black">>nction in /usr/local/apache2/htdocs/cqpweb/lib/admin-execute.inc.php <o:p></o:p></span></pre>
<pre><span style="color:black">>on line 42<o:p></o:p></span></pre>
<pre><span style="color:black">>[Fri Nov 09 17:29:04.412087 2012] [fcgid:warn] [pid 1354:tid <o:p></o:p></span></pre>
<pre><span style="color:black">>140119271651072] [c<o:p></o:p></span></pre>
<pre><span style="color:black">>lient xxx.xxx.xxx.xxx:xxx] mod_fcgid: stderr: PHP Notice: Undefined <o:p></o:p></span></pre>
<pre><span style="color:black">>variable: co<o:p></o:p></span></pre>
<pre><span style="color:black">>ntext_scope_is_based_on_s in <o:p></o:p></span></pre>
<pre><span style="color:black">>/usr/local/apache2/htdocs/cqpweb/lib/defaults.inc.p<o:p></o:p></span></pre>
<pre><span style="color:black">>hp on line 149<o:p></o:p></span></pre>
<pre><span style="color:black">><o:p> </o:p></span></pre>
<pre><span style="color:black">>The first error message looks strange to me: The client is denied by <o:p></o:p></span></pre>
<pre><span style="color:black">>Apache httpd,<o:p></o:p></span></pre>
<pre><span style="color:black">>but I do not get a 404 page ... is this related to the missing style sheet?<o:p></o:p></span></pre>
<pre><span style="color:black">><o:p> </o:p></span></pre>
<pre><span style="color:black">>(context: clicking on "Rest MySQL Database")<o:p></o:p></span></pre>
<pre><span style="color:black">><o:p> </o:p></span></pre>
<pre><span style="color:black">>[Fri Nov 09 17:33:27.939153 2012] [access_compat:error] [pid 1354:tid <o:p></o:p></span></pre>
<pre><span style="color:black">>1401192129<o:p></o:p></span></pre>
<pre><span style="color:black">>02144] [client xxx.xxx.xxx.xxx:xxx] AH01797: client denied by server <o:p></o:p></span></pre>
<pre><span style="color:black">>configuratio<o:p></o:p></span></pre>
<pre><span style="color:black">>n: /usr/local/apache2/htdocs/cqpweb/adm/index.php, referer: <o:p></o:p></span></pre>
<pre><span style="color:black">><a href="http://fedora.clarin">http://fedora.clarin</a><o:p></o:p></span></pre>
<pre><span style="color:black">>-d.uni-saarland.de/cqpweb/adm/<o:p></o:p></span></pre>
<pre><span style="color:black">>[Fri Nov 09 17:33:27.947257 2012] [fcgid:warn] [pid 1354:tid <o:p></o:p></span></pre>
<pre><span style="color:black">>140119212902144] [c<o:p></o:p></span></pre>
<pre><span style="color:black">>lientxxx.xxx.xxx.xxx:xxx ] mod_fcgid: stderr: PHP Notice: Undefined <o:p></o:p></span></pre>
<pre><span style="color:black">>index: admFu<o:p></o:p></span></pre>
<pre><span style="color:black">>nction in /usr/local/apache2/htdocs/cqpweb/lib/admin-execute.inc.php <o:p></o:p></span></pre>
<pre><span style="color:black">>on line 42,<o:p></o:p></span></pre>
<pre><span style="color:black">> referer: <a href="http://fedora.clarin-d.uni-saarland.de/cqpweb/adm/">http://fedora.clarin-d.uni-saarland.de/cqpweb/adm/</a><o:p></o:p></span></pre>
<pre><span style="color:black">>[Fri Nov 09 17:33:27.947293 2012] [fcgid:warn] [pid 1354:tid <o:p></o:p></span></pre>
<pre><span style="color:black">>140119212902144] [c<o:p></o:p></span></pre>
<pre><span style="color:black">>lient xxx.xxx.xxx.xxx:xxx] mod_fcgid: stderr: PHP Notice: Undefined <o:p></o:p></span></pre>
<pre><span style="color:black">>variable: co<o:p></o:p></span></pre>
<pre><span style="color:black">>ntext_scope_is_based_on_s in <o:p></o:p></span></pre>
<pre><span style="color:black">>/usr/local/apache2/htdocs/cqpweb/lib/defaults.inc.p<o:p></o:p></span></pre>
<pre><span style="color:black">>hp on line 149, referer: <a href="http://fedora.clarin-d.uni-saarland.de/cqpweb/adm/">http://fedora.clarin-d.uni-saarland.de/cqpweb/adm/</a><o:p></o:p></span></pre>
<pre><span style="color:black">>[Fri Nov 09 17:33:27.947304 2012] [fcgid:warn] [pid 1354:tid <o:p></o:p></span></pre>
<pre><span style="color:black">>140119212902144] [c<o:p></o:p></span></pre>
<pre><span style="color:black">>lient xxx.xxx.xxx.xxx:xxx] mod_fcgid: stderr: PHP Fatal error: Call <o:p></o:p></span></pre>
<pre><span style="color:black">>to undefined<o:p></o:p></span></pre>
<pre><span style="color:black">> function printquery_mysqlsystemrestore() in <o:p></o:p></span></pre>
<pre><span style="color:black">>/usr/local/apache2/htdocs/cqpweb/li<o:p></o:p></span></pre>
<pre><span style="color:black">>b/adminhome.inc.php on line 589, referer: <o:p></o:p></span></pre>
<pre><span style="color:black">><a href="http://fedora.clarin-d.uni-saarland.de">http://fedora.clarin-d.uni-saarland.de</a><o:p></o:p></span></pre>
<pre><span style="color:black">>/cqpweb/adm/<o:p></o:p></span></pre>
<pre><span style="color:black">><o:p> </o:p></span></pre>
<pre><span style="color:black">><o:p> </o:p></span></pre>
<pre><span style="color:black">><o:p> </o:p></span></pre>
<pre><span style="color:black">><o:p> </o:p></span></pre>
<pre><span style="color:black">>_______________________________________________<o:p></o:p></span></pre>
<pre><span style="color:black">>CWB mailing list<o:p></o:p></span></pre>
<pre><span style="color:black">><a href="mailto:CWB@sslmit.unibo.it">CWB@sslmit.unibo.it</a><o:p></o:p></span></pre>
<pre><span style="color:black">><a href="http://devel.sslmit.unibo.it/mailman/listinfo/cwb">http://devel.sslmit.unibo.it/mailman/listinfo/cwb</a><o:p></o:p></span></pre>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><o:p> </o:p></p>
</div>
</body>
</html>