Last modified: 2013-11-15 16:58:34 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 T59107, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 57107 - Special:CreateClass broken
Special:CreateClass broken
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
SemanticForms (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Yaron Koren
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-11-15 14:58 UTC by s7eph4n
Modified: 2013-11-15 16:58 UTC (History)
0 users

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


Attachments

Description s7eph4n 2013-11-15 14:58:39 UTC
Trying to use Special:CreateClass. The page displays alright, but sending the form data off using "Create" results in a Fatal error: Call to a member function getNamespace() on a non-object in ...\w\includes\job\JobQueueDB.php on line 729

Form content was
* Form name == Template name == Category name
* 1 field with a property of type Number (not a list of values, no allowed values specified)
* 4 fields with a property of type Text (not a list of values, no allowed values specified)

MediaWiki 1.23alpha (81e3aee)
PHP       5.4.19 (apache2handler)
MySQL     5.5.32
Semantic MediaWiki (Version 1.9 beta-1) (36695b6)
Semantic Forms     (Version 2.6)        (a0ab4a3)
Comment 1 Yaron Koren 2013-11-15 15:05:46 UTC
This might be difficult to determine, but you wouldn't happen to know which page it's trying to create when this error occurs?
Comment 2 s7eph4n 2013-11-15 15:54:03 UTC
No idea, sorry.
Comment 3 s7eph4n 2013-11-15 16:08:22 UTC
Here is the backtrace:

{main}( )	..\index.php:0
MediaWiki->run( )	..\index.php:49
MediaWiki->main( )	..\Wiki.php:460
LBFactory->commitMasterChanges( )	..\Wiki.php:600
LBFactory->forEachLBCallMethod( )	..\LBFactory.php:163
LBFactory_Simple->forEachLB( )	..\LBFactory.php:146
call_user_func_array ( )	..\LBFactory.php:274
LBFactory->callMethod( )	..\LBFactory.php:274
call_user_func_array ( )	..\LBFactory.php:156
LoadBalancer->commitMasterChanges( )	..\LBFactory.php:156
DatabaseBase->commit( )	..\LoadBalancer.php:946
DatabaseBase->runOnTransactionIdleCallbacks( )	..\Database.php:3363
call_user_func ( )	..\Database.php:3170
JobQueueDB->{closure:C:\xampp\htdocs\w\includes\job\JobQueueDB.php:201-203}( )	..\Database.php:3170
JobQueueDB->doBatchPushInternal( )	..\JobQueueDB.php:202
JobQueueDB->insertFields( )	..\JobQueueDB.php:227

No sign of SF, so I guess the jobs were inserted correctly but with offensive parameters.
Comment 4 s7eph4n 2013-11-15 16:17:02 UTC
This is the actual call as reported by XDebug:

JobQueueDB->insertFields( $job = class SFCreatePageJob { public $title = NULL; public $command = 'createPage'; public $params = array ('user_id' => 1, 'page_text' => 'This is a property of type [[Has type::Page]].'); public $id = 0; public $removeDuplicates = FALSE; public $error = NULL; public $metadata = array () } )

So apparently this happens when creating property pages. For some reason the title of the SFCreatePageJob is NULL.
Comment 5 Yaron Koren 2013-11-15 16:23:28 UTC
Aha! That's very helpful. I know what's causing the error - it's a recent change I made in Git to support adding #subobject. I'll fix it now.
Comment 6 Yaron Koren 2013-11-15 16:42:49 UTC
Okay, I believe I just fixed this in r95635. Please try updating your code, and let me know if that solved the problem!
Comment 7 Yaron Koren 2013-11-15 16:45:42 UTC
Oh - I guess the Gerrit ID isn't the same as the code review ID. Oh well.
Comment 8 s7eph4n 2013-11-15 16:58:34 UTC
Yes, it's fixed. No error anymore and all pages created. Thanks!

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


Navigation
Links