Last modified: 2013-11-15 16:58:34 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)
This might be difficult to determine, but you wouldn't happen to know which page it's trying to create when this error occurs?
No idea, sorry.
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.
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.
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.
Okay, I believe I just fixed this in r95635. Please try updating your code, and let me know if that solved the problem!
Oh - I guess the Gerrit ID isn't the same as the code review ID. Oh well.
Yes, it's fixed. No error anymore and all pages created. Thanks!