<div dir="ltr"><div>Hi, Andrew!</div><div><br></div><div>Strange, I don't see a new commit in the trunk?</div><div>Did you upload it to the server?</div><div><br></div><div>With best regards,</div><div>Mansur<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Am Mo., 15. Feb. 2021 um 13:24 Uhr schrieb <<a href="mailto:cwb-request@sslmit.unibo.it">cwb-request@sslmit.unibo.it</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Send CWB mailing list submissions to<br>
<a href="mailto:cwb@sslmit.unibo.it" target="_blank">cwb@sslmit.unibo.it</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
<a href="http://liste.sslmit.unibo.it/mailman/listinfo/cwb" rel="noreferrer" target="_blank">http://liste.sslmit.unibo.it/mailman/listinfo/cwb</a><br>
or, via email, send a message with subject or body 'help' to<br>
<a href="mailto:cwb-request@sslmit.unibo.it" target="_blank">cwb-request@sslmit.unibo.it</a><br>
<br>
You can reach the person managing the list at<br>
<a href="mailto:cwb-owner@sslmit.unibo.it" target="_blank">cwb-owner@sslmit.unibo.it</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of CWB digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
1. Re: Error in cqpweb autosetup.php (Hardie, Andrew)<br>
2. Re: CQPweb: php error (Hardie, Andrew)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Mon, 15 Feb 2021 11:18:24 +0000<br>
From: "Hardie, Andrew" <<a href="mailto:a.hardie@lancaster.ac.uk" target="_blank">a.hardie@lancaster.ac.uk</a>><br>
To: Open source development of the Corpus WorkBench<br>
<<a href="mailto:cwb@sslmit.unibo.it" target="_blank">cwb@sslmit.unibo.it</a>><br>
Subject: Re: [CWB] Error in cqpweb autosetup.php<br>
Message-ID:<br>
<<a href="mailto:CWLP265MB19242A3CBF62FA2FDB07DBB1CB889@CWLP265MB1924.GBRP265.PROD.OUTLOOK.COM" target="_blank">CWLP265MB19242A3CBF62FA2FDB07DBB1CB889@CWLP265MB1924.GBRP265.PROD.OUTLOOK.COM</a>><br>
<br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Hi Mansur,<br>
<br>
Thanks for the report. Fixed in trunk.<br>
<br>
best<br>
<br>
Andrew.<br>
<br>
From: <a href="mailto:cwb-bounces@sslmit.unibo.it" target="_blank">cwb-bounces@sslmit.unibo.it</a> <<a href="mailto:cwb-bounces@sslmit.unibo.it" target="_blank">cwb-bounces@sslmit.unibo.it</a>> On Behalf Of mansur<br>
Sent: 15 February 2021 10:39<br>
To: Open source development of the Corpus WorkBench <<a href="mailto:cwb@sslmit.unibo.it" target="_blank">cwb@sslmit.unibo.it</a>><br>
Subject: [CWB] Error in cqpweb autosetup.php<br>
<br>
Hi!<br>
<br>
I found a couple of problems in the most recent version of cqpweb.<br>
The file: cqpweb/lib/sql-definitions.php<br>
<br>
1) The problem is somewhere near "TYPE_DT_DATE, TYPE_DT_TIME":<br>
CREATE TABLE `metadata_template_info` (<br>
`id` int unsigned NOT NULL AUTO_INCREMENT,<br>
`description` varchar(255) CHARSET utf8mb4 collate utf8mb4_unicode_520_nopad_ci default '',<br>
`primary_classification` varchar(64) CHARSET ascii COLLATE ascii_bin default NULL,<br>
primary key (`id`) TYPE_DT_DATE, TYPE_DT_TIME<br>
) ENGINE=InnoDB<br>
/* from User: ??? | In file: /var/www/html/cqpweb/bin/autosetup.php @ line 104 | 2021-Feb-15 10:26 */</p><br>
<p class="errormessage">Error # 1064: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ' TYPE_DT_TIME<br>
) ENGINE=InnoDB<br>
<br>
<br>
2) In this case it seems one comma is missed:<br>
CREATE TABLE `saved_restrictions` (<br>
`id` bigint unsigned NOT NULL AUTO_INCREMENT,<br>
`corpus_id` int unsigned NOT NULL,<br>
`cache_time` int unsigned NOT NULL default 0,<br>
`serialised_restriction` text CHARSET utf8mb4 collate utf8mb4_nopad_bin,<br>
`size_bytes` bigint unsigned NOT NULL default 0,<br>
`n_ids` int unsigned NOT NULL default 0,<br>
`n_items` int unsigned NOT NULL default 0,<br>
`n_tokens` bigint unsigned NOT NULL default 0,<br>
`data` longblob,<br>
key (`corpus_id`),<br>
key (`serialised_restriction`(191)),<br>
key (`cache_time`)<br>
primary key (`id`)<br>
) ENGINE=InnoDB<br>
/* from User: ??? | In file: /var/www/html/cqpweb/bin/autosetup.php @ line 104 | 2021-Feb-15 10:32 */</p><br>
<p class="errormessage">Error # 1064: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'primary key (`id`)<br>
) ENGINE=InnoDB<br>
<br>
<br>
With best wishes,<br>
Mansur<br>
<br>
<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://liste.sslmit.unibo.it/pipermail/cwb/attachments/20210215/11e0dd4a/attachment-0001.html" rel="noreferrer" target="_blank">http://liste.sslmit.unibo.it/pipermail/cwb/attachments/20210215/11e0dd4a/attachment-0001.html</a>><br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Mon, 15 Feb 2021 11:24:13 +0000<br>
From: "Hardie, Andrew" <<a href="mailto:a.hardie@lancaster.ac.uk" target="_blank">a.hardie@lancaster.ac.uk</a>><br>
To: Open source development of the Corpus WorkBench<br>
<<a href="mailto:cwb@sslmit.unibo.it" target="_blank">cwb@sslmit.unibo.it</a>><br>
Subject: Re: [CWB] CQPweb: php error<br>
Message-ID:<br>
<<a href="mailto:CWLP265MB1924D73CF9147EBD8D6B3542CB889@CWLP265MB1924.GBRP265.PROD.OUTLOOK.COM" target="_blank">CWLP265MB1924D73CF9147EBD8D6B3542CB889@CWLP265MB1924.GBRP265.PROD.OUTLOOK.COM</a>><br>
<br>
Content-Type: text/plain; charset="us-ascii"<br>
<br>
Hi Simon,<br>
<br>
It sounds like your web server is not processing the PHP scripts are PHP but is instead serving them up as plain text. This is a web server configuration problem not a CQPweb problem I'm afraid. <br>
<br>
If you're on Apache, the issue may be that mod_php is not enabled. On other webservers, there will be similar things.<br>
<br>
best<br>
<br>
Andrew<br>
<br>
-----Original Message-----<br>
From: <a href="mailto:cwb-bounces@sslmit.unibo.it" target="_blank">cwb-bounces@sslmit.unibo.it</a> <<a href="mailto:cwb-bounces@sslmit.unibo.it" target="_blank">cwb-bounces@sslmit.unibo.it</a>> On Behalf Of Simon Meier-Vieracker<br>
Sent: 15 February 2021 07:33<br>
To: Open source development of the Corpus WorkBench <<a href="mailto:cwb@sslmit.unibo.it" target="_blank">cwb@sslmit.unibo.it</a>><br>
Subject: Re: [CWB] CQPweb: php error<br>
<br>
<br>
Some more information:<br>
<br>
PHP 8.0.2<br>
Server version: Apache/2.4.25 (Debian)<br>
<br>
I checked the required extensions in the Admin Manual and found that "Extension 'intl' not present."<br>
<br>
But I guess that the problem is more basic, since it does not execute the very simple command "<?php require('lib/mainhome.php');"<br>
<br>
Best, Simon<br>
<br>
<br>
> Am 14.02.2021 um 10:18 schrieb Simon Meier-Vieracker <<a href="mailto:simon.meier-vieracker@tu-dresden.de" target="_blank">simon.meier-vieracker@tu-dresden.de</a>>:<br>
><br>
> Hi,<br>
><br>
> since today, I get the following error when I try to call CQPweb on my server <a href="https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fali.gsw.tu-dresden.de%2F&amp;data=04%7C01%7Ca.hardie%40lancaster.ac.uk%7C5e469cc667d347fe67d608d8d184139b%7C9c9bcd11977a4e9ca9a0bc734090164a%7C0%7C0%7C637489712530551010%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=rE%2FqcvUB59QzuZQ6oG1JCPZ2ckrcpWSI%2FKIlfvcJV4g%3D&amp;reserved=0" rel="noreferrer" target="_blank">https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fali.gsw.tu-dresden.de%2F&amp;data=04%7C01%7Ca.hardie%40lancaster.ac.uk%7C5e469cc667d347fe67d608d8d184139b%7C9c9bcd11977a4e9ca9a0bc734090164a%7C0%7C0%7C637489712530551010%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=rE%2FqcvUB59QzuZQ6oG1JCPZ2ckrcpWSI%2FKIlfvcJV4g%3D&amp;reserved=0</a><br>
><br>
>> <?php require('lib/mainhome.php');<br>
><br>
> Same thing on other pages:<br>
><br>
>> <?php require ('../lib/adminhome.php');<br>
><br>
> The server is running, I can call pages outside of CQPweb (e.g. <a href="https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fali.gsw.tu-dresden.de%2Ftutorial.html&amp;data=04%7C01%7Ca.hardie%40lancaster.ac.uk%7C5e469cc667d347fe67d608d8d184139b%7C9c9bcd11977a4e9ca9a0bc734090164a%7C0%7C0%7C637489712530551010%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=ANxbnpA%2BJbvubdeRUbLMhMxlSSRkicEYpWDCbfTQU1A%3D&amp;reserved=0" rel="noreferrer" target="_blank">https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fali.gsw.tu-dresden.de%2Ftutorial.html&amp;data=04%7C01%7Ca.hardie%40lancaster.ac.uk%7C5e469cc667d347fe67d608d8d184139b%7C9c9bcd11977a4e9ca9a0bc734090164a%7C0%7C0%7C637489712530551010%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=ANxbnpA%2BJbvubdeRUbLMhMxlSSRkicEYpWDCbfTQU1A%3D&amp;reserved=0</a>)<br>
><br>
> And within the lib folder, everything seems to be okay (see attached file) and mainhome.php looks good, too.<br>
><br>
> Any suggestions what I can check in order to fix this?<br>
><br>
> Best, Simon<br>
><br>
> <lib.txt><br>
><br>
> _______________________________________________<br>
> CWB mailing list<br>
> <a href="mailto:CWB@sslmit.unibo.it" target="_blank">CWB@sslmit.unibo.it</a><br>
> <a href="https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fliste.sslmit.unibo.it%2Fmailman%2Flistinfo%2Fcwb&amp;data=04%7C01%7Ca.hardie%40lancaster.ac.uk%7C5e469cc667d347fe67d608d8d184139b%7C9c9bcd11977a4e9ca9a0bc734090164a%7C0%7C0%7C637489712530551010%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=ICBmNvRtV4z26cKxZR%2FuvtFMimnqLPlZZSC3xQA9IK4%3D&amp;reserved=0" rel="noreferrer" target="_blank">https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fliste.sslmit.unibo.it%2Fmailman%2Flistinfo%2Fcwb&amp;data=04%7C01%7Ca.hardie%40lancaster.ac.uk%7C5e469cc667d347fe67d608d8d184139b%7C9c9bcd11977a4e9ca9a0bc734090164a%7C0%7C0%7C637489712530551010%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=ICBmNvRtV4z26cKxZR%2FuvtFMimnqLPlZZSC3xQA9IK4%3D&amp;reserved=0</a><br>
<br>
<br>
<br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
CWB mailing list<br>
<a href="mailto:CWB@sslmit.unibo.it" target="_blank">CWB@sslmit.unibo.it</a><br>
<a href="http://liste.sslmit.unibo.it/mailman/listinfo/cwb" rel="noreferrer" target="_blank">http://liste.sslmit.unibo.it/mailman/listinfo/cwb</a><br>
<br>
<br>
End of CWB Digest, Vol 168, Issue 4<br>
***********************************<br>
</blockquote></div>