[CWB] Fwd: Bug in CQPweb 3.2.6 Revision 765

Hannah Kermes h.kermes at mx.uni-saarland.de
Sun Feb 21 11:31:02 CET 2016



Hi Andrew,

as the patch worked, we thought we could do wait for a few weeks with 
rebuilding our server and in the meantime use the update on the old 
server installation.
However, we encountered another problem with our test update. This time 
with the installation of corpora.
For the test we took a small corpus which was already installed in our 
CQPweb installation - so format problems of the corpora should not occur.
It is a pre-indexed corpus, with the annotations as listed below (as 
output of show cd from the commandline).
Asside from id, there are three other text attributes two of them are 
used for categorization (lang,reg) in our "old" CQPweb installation.

As I find it easier and more effective I usually create the Metadata 
from the XML. When I do this I get the result - and I apologize in 
advance for the number of screenshots, but I think it is easiest this way:



usually I can choose here the datatype. I then changed the data type in 
the new XML-data menu. Then I get:



If I now click on Create metadata I get the following:


which tells me that there is no corpus-level metadata, which however 
there should be.
Just for a comparison, this is what it looks like (after indexing) in 
the "old" CQPweb installation:



Thanks
Hannah

*Attributes of the corpus:**
*
Positional Attributes:  * word
                           pos
                           lemma

Structural Attributes:    praesens
                           term
                           kompositum
                           nominalisierung
                           s
                           praeteritum
                           passiv
                           abkuerzung
                           titel
                           perfekt
                           futur
                           verweis_auf_bild_in_text_direkt
                           erklaerung_gaengiger_term
                           verweis_auf_text_in_text_direkt
                           verweis_auf_bild_in_text_indirekt
                           text
                           text_id              [A]
                           text_lang            [A]
                           text_title           [A]
                           text_reg             [A]
                           verweis_auf_bild_in_klammer_direkt
                           erklaerung_neuer_term
                           verweis_auf_anderen_text_in_text_direkt
                           imperativ
                           verweis_auf_text_in_klammer_direkt
                           verweis_auf_sonstiges_in_klammer_direkt
                           erklaerung
                           verweis_auf_sonstiges_in_fussnote_direkt
                           verweis_auf_sonstiges_in_text_direkt


Am 18.02.2016 um 10:55 schrieb Jörg Knappen:
> Thank you, Andrew, for the patch.
>
>
> Zitat von "Hardie, Andrew" <a.hardie at lancaster.ac.uk>:
>
>> Well, 5.3 is obsolete and unsupported, so that's not good. (Note the 
>> 2012 data on the copyright line. You are running without the last 4 
>> years of security fixes....)
>
> Somehow there are security fixes in SLES 11 even to very old and 
> outdated packages. But we seriously consider re-building our servers 
> on a less conservative Linux platform.
>
>> I've amended the code to avoid the unsupported syntax. But sometime 
>> soon I am going to simply bump the minimum PHP requirement up to a 
>> still-supported version.
>
> Thanks for the patch again, it works flawlessly (I have applied and 
> tested it).
>
> Greetings,
>
> Jörg
>
>> best
>>
>> Andrew.
>>
>> -----Original Message-----
>> From: cwb-bounces at sslmit.unibo.it 
>> [mailto:cwb-bounces at sslmit.unibo.it] On Behalf Of Jörg Knappen
>> Sent: 17 February 2016 10:49
>> To: cwb at sslmit.unibo.it
>> Subject: Re: [CWB] Bug in CQPweb 3.2.6 Revision 765
>>
>> Hallo Andrew,
>>
>> Zitat von "Hardie, Andrew" <a.hardie at lancaster.ac.uk>:
>>
>>> What version of PHP are you running?
>>
>> I am running
>>
>> php --version
>> PHP 5.3.17 (cli)
>> Copyright (c) 1997-2012 The PHP Group
>> Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies
>>
>> This is the newest php version supported by SLES 11 SP 3 (the
>> operating system of our server).
>>
>> --Jörg
>>
>>>
>>> There is a syntax construction on that line that very old versions
>>> do not support (array index applied to function return).
>>>
>>> http://php.net/supported-versions.php
>>>
>>> best
>>>
>>> Andrew.
>>>
>>> -----Original Message-----
>>> From: cwb-bounces at sslmit.unibo.it
>>> [mailto:cwb-bounces at sslmit.unibo.it] On Behalf Of Jörg Knappen
>>> Sent: 17 February 2016 10:13
>>> To: cwb at sslmit.unibo.it
>>> Subject: [CWB] Bug in CQPweb 3.2.6 Revision 765
>>>
>>> Hallo,
>>>
>>> The following does not work:
>>>
>>> Select a corpus
>>> Query something, e.g. [word="word"]
>>> Klick on the query string in the KWIC view
>>>
>>> The output is nothing (in firefox, I see just a blank page)
>>>
>>> There is the following error message in error_log of the Apache 2.4
>>> webserver:
>>>
>>> [Wed Feb 17 11:07:00.244465 2016] [fcgid:warn] [pid 50085:tid
>>> 140514590492416] [
>>> client 134.96.90.27:53453] mod_fcgid: stderr: PHP Parse error:  syntax
>>> error, un
>>> expected '[' in /data2/htdocs/cqpweb/lib/context.inc.php on line 185,
>>> referer: h
>>> ttp://test.clarin-d.uni-saarland.de/cqpweb/dascitex/concordance.php?theData=%5Bw 
>>>
>>> ord%3D%22optics%22%5D&qmode=cqp&pp=50&del=begin&t=&del=end&uT=y
>>>
>>>
>>> Greetings from Saarbrücken,
>>>
>>> Jörg
>>>
>>> _______________________________________________
>>> CWB mailing list
>>> CWB at sslmit.unibo.it
>>> http://devel.sslmit.unibo.it/mailman/listinfo/cwb
>>> _______________________________________________
>>> CWB mailing list
>>> CWB at sslmit.unibo.it
>>> http://devel.sslmit.unibo.it/mailman/listinfo/cwb
>>
>>
>>
>> _______________________________________________
>> CWB mailing list
>> CWB at sslmit.unibo.it
>> http://devel.sslmit.unibo.it/mailman/listinfo/cwb
>> _______________________________________________
>> CWB mailing list
>> CWB at sslmit.unibo.it
>> http://devel.sslmit.unibo.it/mailman/listinfo/cwb
>
>
>
> _______________________________________________
> CWB mailing list
> CWB at sslmit.unibo.it
> http://devel.sslmit.unibo.it/mailman/listinfo/cwb



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://devel.sslmit.unibo.it/pipermail/cwb/attachments/20160221/e7878d69/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: aecjachg.
Type: image/jpeg
Size: 43723 bytes
Desc: not available
URL: <http://devel.sslmit.unibo.it/pipermail/cwb/attachments/20160221/e7878d69/attachment-0004.jpe>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fjjjfgfi.
Type: image/jpeg
Size: 51232 bytes
Desc: not available
URL: <http://devel.sslmit.unibo.it/pipermail/cwb/attachments/20160221/e7878d69/attachment-0005.jpe>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dfagbiej.
Type: image/jpeg
Size: 35923 bytes
Desc: not available
URL: <http://devel.sslmit.unibo.it/pipermail/cwb/attachments/20160221/e7878d69/attachment-0006.jpe>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ddgeacah.
Type: image/jpeg
Size: 47300 bytes
Desc: not available
URL: <http://devel.sslmit.unibo.it/pipermail/cwb/attachments/20160221/e7878d69/attachment-0007.jpe>


More information about the CWB mailing list