Last modified: 2012-10-07 17:08:02 UTC
Fatal error: Call to undefined method SpecialPageFactory::addAliases() in /homepages/29/d407628538/htdocs/mediawiki_MapTest/extensions/Validator/includes/definitions/ParamDefinition.php on line 545 see live at http://openurban.net/mediawiki_MapTest/index.php?title=Special:FormEdit/Project/NITK
Heh, wtf... No idea how it ends up having a SpecialPageFactory there... I will have a look at the Semantic Maps provided form inputs myself in a moment and see if I can reproduce the issue.
heh, this might interest you http://openurban.net/mediawiki_MapTest/index.php?title=Map
Occurs with Google Maps form input on that wiki. This input is working fine for me. Did you modify the extension code?
The wiki is using all semantic extensions in alpha state, and no I didn't use any modified code there.
I noted that the wiki is using PHP version < 5.3.0, could that be the problem? I had to replace all __DIR__ for this
Maps and Semantic Maps >=2.0 need PHP >=5.3. Running them on PHP 5.2.x is asking for problems, and will soon become much harder to pull of as more and more PHP 5.3 features are used. Do consider updating your PHP. > could that be the problem? Maybe, although I can't think of any particular code that would cause the issue you have. > The wiki is using all semantic extensions in alpha state Not correct, SMW is at 1.8 beta 1. And SRF is at 1.7.1, which is a stable release. If you want me to further look at this I need more info, for instance a full stack trace. If possible, please update the extensions either to master or go back to their latest stable release.
(In reply to comment #6) > If you want me to further look at this I need more info, for instance a full > stack trace. If possible, please update the extensions either to master or go > back to their latest stable release. By alpha I meant that they are in master state. The error seems to be somewhere below line 228 in Param.php, it says compat code in a comment. will a debug_backtrace() help you?
Yes, it's compat code still there because Maps is using some deprecated stuff. It's actually been removed on my dev branch already. A backtrace would be helpful yes. Looking at the code I still don't see any way how you'd end up with a SpecialPageFactory object... It's quite possible you'll either have to debug this yourself on your box or will need to hack around it. It's probably not to hard to make newFromParameter behave correctly.
The host only provides two PHP Version settings PHP 5 and PHP-dev I upgraded to PHP-dev and the problems seemed to go away now. I suspect this issue has been caused due to get_called_class(). Can you verify the map is loading properly http://openurban.net/mediawiki_MapTest/index.php?title=Map it keeps on saying "loading map..." on my browser.
I also considered get_called_class, but it has a compatibility fallback in Validator. I do hope it's not broken... I'm getting a map, so I'm guessing you already fixed it. Closing the bug, please do reopen if you continue to have the issue.
Oh wow, PHP 5.4.7... good to know it works fine with that as well :)
It does, but I would recommend you test get_called_class() once.
Feel free to test yes :) Or to write a test. Since the dev version no longer supports 5.2 I'm really not going to downgrade my PHP just to try it.