https://bugzilla.wikimedia.org/show_bug.cgi?id=35840

       Web browser: ---
             Bug #: 35840
           Summary: PHP 5.4 disables use of 'namespace' variable.
           Product: MediaWiki extensions
           Version: any
          Platform: All
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: blocker
          Priority: Unprioritized
         Component: Semantic MediaWiki
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified
   Mobile Platform: ---


When updated to the latest PHP version (5.4) and the latest Semantic MediaWiki
version, the following error was found:

Given namespace '0' is not an integer.
Backtrace:
#0
/var/www/wiki/extensions/SemanticMediaWikiBad/includes/storage/SMW_SQLStore2_Queries.php(415):
SMWDIWikiPage->__construct('Log_Example', '0', '', '')
#1
/var/www/wiki/extensions/SemanticMediaWikiBad/includes/storage/SMW_SQLStore2_Queries.php(284):
SMWSQLStore2QueryEngine->getInstanceQueryResult(Object(SMWQuery), 2)
#2
/var/www/wiki/extensions/SemanticMediaWikiBad/includes/storage/SMW_SQLStore2.php(997):
SMWSQLStore2QueryEngine->getQueryResult(Object(SMWQuery))
#3
/var/www/wiki/extensions/SemanticMediaWikiBad/specials/AskSpecial/SMW_SpecialAsk.php(384):
SMWSQLStore2->getQueryResult(Object(SMWQuery))
#4
/var/www/wiki/extensions/SemanticMediaWikiBad/specials/AskSpecial/SMW_SpecialAsk.php(54):
SMWAskPage->makeHTMLResult()
#5 /var/www/wiki/includes/SpecialPageFactory.php(458):
SMWAskPage->execute(NULL)
#6 /var/www/wiki/includes/Wiki.php(240):
SpecialPageFactory::executePath(Object(Title), Object(RequestContext))
#7 /var/www/wiki/includes/Wiki.php(640): MediaWiki->performRequest()
#8 /var/www/wiki/includes/Wiki.php(547): MediaWiki->main()
#9 /var/www/wiki/index.php(57): MediaWiki->run()
#10 {main}


---------

The reason is likely this:
http://www.php.net/manual/en/migration53.incompatible.php

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to