Page MenuHomePhabricator

Error initializing Semantic Forms 5.4
Closed, ResolvedPublic

Description

Author: geoobject

Description:
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() function.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


Version: unspecified
Severity: blocker
OS: Linux
URL: http://www.r3levees.org

Attached:

SMW_Forms_5.4_Error_Msg.png (63×1 px, 3 KB)

Details

Reference
bz11053

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:48 PM
bzimport set Reference to bz11053.

sergey.chernyshev wrote:

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.

Attached:

Fixed in version 0.5.5, using Sergey's code.