Active
Project:
MediaWiki
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
15 Nov 2007 at 21:28 UTC
Updated:
7 Dec 2007 at 05:12 UTC
I'm getting this warning message in my drupal site when it displays mediawiki content:
warning: Invalid argument supplied for foreach() in /var/www/mediawiki/includes/Title.php on line 1187.
Any suggestions on what the issue could be?
Comments
Comment #1
Michael Roberts commentedIn the module's mediawiki.module file, in the mediawiki_setup function, add this line:
global $wgGroupPermissions;
Otherwise MediaWiki (which is looking for wgGroupPermissions) is globalling the array from mediawiki_setup's local frame, and it's blank there, thus leading to the error.