Last modified: 2012-07-18 03:32:49 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 T39780, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 37780 - A concept cannot be created (1.8alpha)
A concept cannot be created (1.8alpha)
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Semantic MediaWiki (Other open bugs)
master
All All
: Unprioritized minor (vote)
: ---
Assigned To: Jeroen De Dauw
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-06-21 15:12 UTC by DaSch
Modified: 2012-07-18 03:32 UTC (History)
5 users (show)

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


Attachments

Description DaSch 2012-06-21 15:12:26 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
Comment 1 [[kgh]] 2012-06-23 00:50:40 UTC
SMW 1.8alpha (97ae2c6) on MW 1.20alpha (80fbb70) Pls correct if wrong
Comment 2 DaSch 2012-06-24 19:56:41 UTC
That's right
Comment 3 Nischay Nahata 2012-07-12 10:57:51 UTC
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)
Comment 4 Jeroen De Dauw 2012-07-16 18:01:52 UTC
Does this fix it? https://gerrit.wikimedia.org/r/15724
Comment 5 Jaider Andrade Ferreira 2012-07-16 18:28:07 UTC
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
Comment 6 Nischay Nahata 2012-07-16 18:36:56 UTC
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
Comment 7 Jeroen De Dauw 2012-07-16 18:57:26 UTC
@Jaider Andrade Ferreira: when doing what? Is this even related to the bug we're commenting on?
Comment 8 Jaider Andrade Ferreira 2012-07-16 19:04:43 UTC
@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
Comment 9 Jaider Andrade Ferreira 2012-07-16 19:45:05 UTC
@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
Comment 10 Nischay Nahata 2012-07-16 20:03:01 UTC
(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.
Comment 11 Jaider Andrade Ferreira 2012-07-17 19:19:50 UTC
(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.
Comment 12 Nischay Nahata 2012-07-18 03:32:49 UTC
Works for me too
Fixed in https://gerrit.wikimedia.org/r/#/c/15724/

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


Navigation
Links