Last modified: 2012-07-18 03:32:49 UTC
Entering a concept page gives this error Catchable fatal error: Argument 1 passed to SMWParamFormat::setPrintRequests() must be an array, null given, called in /var/www/vhosts/wecowi.de/httpdocs/extensions/SemanticMediaWiki/includes/SMW_QueryProcessor.php on line 62 and defined in /var/www/vhosts/wecowi.de/httpdocs/extensions/SemanticMediaWiki/includes/params/SMW_ParamFormat.php on line 120
SMW 1.8alpha (97ae2c6) on MW 1.20alpha (80fbb70) Pls correct if wrong
That's right
This happens because printRequests are passed as null in many places but setPrintRequests() in SMW_ParamFormat.php expects an array only. Jereon - I and Markus discussed about this (since this occurred when importing a wiki) and couldn't figure out why printRequests can be null (it could be an empty array in this case)
Does this fix it? https://gerrit.wikimedia.org/r/15724
To me, it appears: Notice: Undefined index: mainlabel in /programas/lamp/apache2/htdocs/w/extensions/SemanticMediaWiki/includes/SMW_QueryProcessor.php on line 130 Fatal error: Call to a member function getValue() on a non-object in /programas/lamp/apache2/htdocs/w/extensions/SemanticMediaWiki/includes/SMW_QueryProcessor.php on line 130
A stack trace will help here (In reply to comment #5) > To me, it appears: > > Notice: Undefined index: mainlabel in > /programas/lamp/apache2/htdocs/w/extensions/SemanticMediaWiki/includes/SMW_QueryProcessor.php > on line 130 > Fatal error: Call to a member function getValue() on a non-object in > /programas/lamp/apache2/htdocs/w/extensions/SemanticMediaWiki/includes/SMW_QueryProcessor.php > on line 130
@Jaider Andrade Ferreira: when doing what? Is this even related to the bug we're commenting on?
@Nischay Nahata, @Jeroen De Dauw: I was just accessing the mainpage of the wiki, see the printScreen: http://dl.dropbox.com/u/19899379/Captura%20de%20tela%20de%202012-07-16%2016%3A01%3A12.png
@Nischay Nahata, @Jeroen De Dauw: You can discard last my comment. It works now. I really don't know why or how... But when I visit a Concept page I get: Catchable fatal error: Argument 1 passed to SMWParamFormat::setPrintRequests() must be an array, null given, called in /programas/lamp/apache2/htdocs/w/extensions/SemanticMediaWiki/includes/SMW_QueryProcessor.php on line 78 and defined in /programas/lamp/apache2/htdocs/w/extensions/SemanticMediaWiki/includes/params/SMW_ParamFormat.php on line 120
(In reply to comment #9) > @Nischay Nahata, @Jeroen De Dauw: You can discard last my comment. It works > now. I really don't know why or how... But when I visit a Concept page I get: > This happens because the code isn't merged yet. If you are using master, you should checkout the patch using 'git review -d 15724' and then check again.
(In reply to comment #4) > Does this fix it? https://gerrit.wikimedia.org/r/15724 (In reply to comment #10) > This happens because the code isn't merged yet. If you are using master, you > should checkout the patch using 'git review -d 15724' and then check again. Yes. It works now.
Works for me too Fixed in https://gerrit.wikimedia.org/r/#/c/15724/