mediawiki-extensions / mw-calendar

Automatically exported from code.google.com/p/mw-calendar
0 stars 2 forks source link

Cannot redeclare checkformagicword #64

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Starting the wiki after installing the extension produces an error as follows: 
Fatal error: Cannot redeclare checkformagicword() (previously declared in
C:\xampp\htdocs\mediawiki.de\extensions\Calendar\common.php:7) in
C:\xampp\htdocs\mediawiki.de\common.php on line 20

The error occurs independently whether I perform the "Simple Install" or
the "Recommended" one.
Any help is urgently appreciated.
Sincerely Harry

Original issue reported on code.google.com by harry.ma...@vdzi.de on 16 Apr 2009 at 1:01

GoogleCodeExporter commented 8 years ago
The problem is occurring because two loaded MediaWiki files are using the same
function name "checkformagicword". I need to move my common functions into a 
class to
fix this issue.

C:\xampp\htdocs\mediawiki.de\extensions\Calendar\common.php:7)
C:\xampp\htdocs\mediawiki.de\common.php on line 20

As a workaround, I suggest modifing the following files

Calendar.php line ~1202
  OLD:  $name = checkForMagicWord($params["name"]);
  NEW:  $name = cal_checkForMagicWord($params["name"]);

Common.php line ~7
  OLD: function checkForMagicWord($string){
  NEW: function cal_checkForMagicWord($string){

That should fix your issue.

Original comment by kenyu73 on 16 Apr 2009 at 3:02

GoogleCodeExporter commented 8 years ago

Original comment by kenyu73 on 18 Apr 2009 at 2:49

GoogleCodeExporter commented 8 years ago

Original comment by kenyu73 on 18 Apr 2009 at 2:53

GoogleCodeExporter commented 8 years ago
fixed in 3.7.2

Original comment by kenyu73 on 18 Apr 2009 at 10:38