Last modified: 2007-09-03 16:36:22 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 11053 - Error initializing Semantic Forms 5.4
Error initializing Semantic Forms 5.4
Product: MediaWiki extensions
Classification: Unclassified
SemanticForms (Other open bugs)
All Linux
: Normal blocker (vote)
: ---
Assigned To: Yaron Koren
Depends on:
  Show dependency treegraph
Reported: 2007-08-24 13:58 UTC by Dan T
Modified: 2007-09-03 16:36 UTC (History)
0 users

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

screen shot of error message (3.54 KB, image/x-png)
2007-08-24 13:58 UTC, Dan T
Patch to fix parser functions initialization issue. (909 bytes, patch)
2007-08-24 16:20 UTC, Sergey Chernyshev

Description Dan T 2007-08-24 13:58:19 UTC
Created attachment 4035 [details]
screen shot of error message

MW version 1.10.0
SMW version 0.7

Problem enabling extension.  Receive errors below when extension initializes in LocalSettings.php 

Warning:  call_user_func_array() First argument is expected to be a valid callback, 'sfgLanguageGetMagic' was given in /usr/local/www/mediawiki-1.10.0/includes/Hooks.php on line 113

Warning:  array_slice() function.array-slice: The first argument should be an array in /usr/local/www/mediawiki-1.10.0/languages/Language.php on line 1139
Comment 1 Sergey Chernyshev 2007-08-24 16:20:05 UTC
Created attachment 4038 [details]
Patch to fix parser functions initialization issue.

This is exactly what I solved with moving

   require_once($sfgIP . '/includes/SF_ParserFunctions.php');

outside of sfgSetupExtension() in SF_GlobalFunctions.php

I had this problem with previous version as well.
Comment 2 Yaron Koren 2007-09-03 16:36:22 UTC
Fixed in version 0.5.5, using Sergey's code.

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