Last modified: 2013-04-22 16:16:12 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 T44672, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 42672 - PHP Catchable fatal error: Argument 1 passed to Article::__construct() must be an instance of Title, null given, called in /SemanticForms/includes/SF_ParserFunctions.php on line 569
PHP Catchable fatal error: Argument 1 passed to Article::__construct() must ...
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
SemanticForms (Other open bugs)
master
PC Windows XP
: Unprioritized normal (vote)
: ---
Assigned To: s7eph4n
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-12-04 09:34 UTC by Antti Kanner
Modified: 2013-04-22 16:16 UTC (History)
2 users (show)

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


Attachments

Description Antti Kanner 2012-12-04 09:34:57 UTC
SemanticForms 2.5.2 alpha
SemanticMediaWiki 1.8
MediaWiki 1.19.2
Comment 1 Yaron Koren 2012-12-04 14:41:29 UTC
Hi - are you seeing this error with a call to the #autoedit parser function, or from a regular form? And can you provide more details on where you saw this error, in either case?
Comment 2 Antti Kanner 2012-12-04 14:49:08 UTC
Hi,

It turns up when I run the runJobs.php. None of my regular forms work at the moment. There is a full stop when I save any form.

The full error message is:

<b>Catchable fatal error</b>:  Argument 1 passed to Article::__construct() must be an instance of Title, null given, called in /var/www/userhome/kantti/sites/kantti.kapsi.fi/www/w/mediawiki/extensions/SemanticForms/includes/SF_ParserFunctions.php on line 570 and defined in <b>/var/www/userhome/kantti/sites/kantti.kapsi.fi/www/w/mediawiki/includes/Article.php</b> on line <b>72</b><br />
Comment 3 Yaron Koren 2012-12-04 14:50:57 UTC
Okay. Could you try upgrading your Semantic Forms code to the latest on Git, if it's not at the latest already? It could be that this problem was fixed in the last few days.
Comment 4 Antti Kanner 2012-12-04 15:02:27 UTC
Okay,

I upgraded now, and the problem with saving the forms has now disappeared. I still get the error message from the runJobs.php, though.

I'm very grateful for the help!
Comment 5 Yaron Koren 2012-12-04 15:05:38 UTC
Okay - well, that's half good news. :) I'm assigning this to f.trott, who knows that part of the code.
Comment 6 s7eph4n 2012-12-04 20:15:14 UTC
Hi Antti,

this is a really strange bug, don't know wjhat to make of it. Do any of your form generated pages include autoedit links? And if they do, could it be that they point to an invalid target page?

Cheers,
Stephan
Comment 7 s7eph4n 2012-12-04 21:04:51 UTC
Might be fixed in If6c31541
Comment 8 Alex Monk 2012-12-25 21:28:42 UTC
(In reply to comment #7)
> Might be fixed in If6c31541

Merged by Yaron Koren on the 4th. Is it?
Comment 9 Andre Klapper 2013-02-08 13:02:55 UTC
Antti: Did comment 7 fix this problem?
Comment 10 Antti Kanner 2013-02-11 09:31:47 UTC
Yes it did, thank you!

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


Navigation
Links