Last modified: 2009-09-27 09:36:07 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T22827, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 20827 - Unicode breaks Query Processor
Unicode breaks Query Processor
Status: RESOLVED INVALID
Product: MediaWiki extensions
Classification: Unclassified
Semantic MediaWiki (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Markus Krötzsch
http://semantic-mediawiki.org
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-09-26 16:47 UTC by Robert Murphy
Modified: 2009-09-27 09:36 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Robert Murphy 2009-09-26 16:47:28 UTC
The following error is common in the Apache log (/var/log/messages), presumably because so many pages are Unicode

httpd: PHP Warning:  preg_split() [<a href='function.preg-split'>function.preg-split</a>]: Compilation failed: nothing to repeat at offset 8 in /home/public_html/extensions/SemanticMediaWiki/includes/SMW_QueryProcessor.php on line 805
Comment 1 Markus Krötzsch 2009-09-27 09:36:07 UTC
I assume that you are using SMW 1.4.2, so the line 805 in the respective file is

 $list = preg_split('/^\*/',$value,2);

This code belongs to the backwards compatibility feature of SMW with ancient versions (before SMW 1.0), which vanishes in SMW 1.5 (although it still exists in SMW 1.4.3). In this sense, the bug is invalid regarding the current code, since it no longer occurs there. Wikis that still use pre-1.0 features of SMW should try to convert to the new syntax (no more <ask> tags, no more Relation: namespace), and then remove the setting $smwgSMWBetaCompatible=true; from LocalSettings.php.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links