[CWB] Error with simple queries only in cqpweb 3.3.17, tertiary annotation may be a problem

Hardie, Andrew a.hardie at lancaster.ac.uk
Thu Jan 5 00:05:04 CET 2023


Hi Jörg,

This is "not a bug" in the sense that this ...

>> The corpus in question has a tertiary annotation, but a Tertiary Annotation Mapping Table is not in use for this corpus.

... is not correct setup - tertiary annotation always uses a mapping table. (you can set up an everything-to-itself table if you want).

However, it shouldn't just die; what SHOULD happen is an error message when the tertiary annotation is used. 

I'll fix the immediate problem in my next commit. Longer term it will be worth considering whether to amend the CEQL parser to allow tertiary without a table. The requirement is an inheritance from CEQL's original role in BNCweb, and there is no reason I can think of not to make it optional. 

best

Andrew.


-----Original Message-----
From: cwb-bounces at sslmit.unibo.it <cwb-bounces at sslmit.unibo.it> On Behalf Of Jörg Knappen
Sent: 04 January 2023 15:39
To: cwb at sslmit.unibo.it
Subject: [CWB] Error with simple queries only in cqpweb 3.3.17, tertiary annotation may be a problem


A happy new year to all.

A user reported an error on our cqpweb installation. It occurs with simple queries on some corpora and may have something to do with the existence of a tertiary annotation.

The corpus in question has a tertiary annotation, but a Tertiary Annotation Mapping Table is not in use for this corpus.

Any simple query just fails, giving the end user a white frame on the screen and throwing an internal server error (500) in the Apache2 log.

In the error log I find the following message:

PHP Fatal error:  Uncaught TypeError: get_tertiary_mapping_table():
Argument #1 ($mapping_table_handle) must be of type string, null given, called in /var/www/html/cqpweb/lib/query-lib.php on line 428 and defined in /var/www/html/cqpweb/lib/query-lib.php:678\nStack trace:\n#0
/var/www/html/cqpweb/lib/query-lib.php(428):
get_tertiary_mapping_table()\n#1
/var/www/html/cqpweb/lib/query-lib.php(369):
process_simple_query_new()\n#2
/var/www/html/cqpweb/lib/concordance-ui.php(319):
process_simple_query()\n#3 /var/www/html/cqpweb/exe/concordance.php(1):
require('...')\n#4 {main}\n  thrown in
/var/www/html/cqpweb/lib/query-lib.php on line 678, referer:
https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcorpora.clarin-d.uni-saarland.de%2Fcqpweb%2Fepic_uds_en_alig_pos%2F&data=05%7C01%7Chardiea%40live.lancs.ac.uk%7Cf3c4a53927a64d9766f508daee6adf8e%7C9c9bcd11977a4e9ca9a0bc734090164a%7C0%7C0%7C638084440033476724%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=SixK4nZLnhFmnJuMml4jMw4A%2FutwfGE%2FebUJGjpJk2c%3D&reserved=0

CQP queries work just fine and don't have the problem.

Greetings from Saarbrücken,

Jörg Knappen
_______________________________________________
CWB mailing list
CWB at sslmit.unibo.it
https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fliste.sslmit.unibo.it%2Fmailman%2Flistinfo%2Fcwb&data=05%7C01%7Chardiea%40live.lancs.ac.uk%7Cf3c4a53927a64d9766f508daee6adf8e%7C9c9bcd11977a4e9ca9a0bc734090164a%7C0%7C0%7C638084440033476724%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=zHsOczjJxuPDpwPBWkQq0ixKkxdwsIdg40dDfIAydJc%3D&reserved=0


More information about the CWB mailing list