1
Ft24v2
X_Movie Fatal Error
  • 2008/8/12 8:26

  • Ft24v2

  • Just popping in

  • Posts: 86

  • Since: 2007/1/30


Out of nowhere i got this error from the X_Movie module:


Fatal errorCannot redeclare getserverstats() (previously declared in /home/wiitopi2/public_html/modules/x_movie/include/functions.php:276in /home/wiitopi2/public_html/modules/mpmanager/include/functions.php on line 709


Ive tried disabling the Module, but that doesn't help.

This error mentions the mpmanager module so im thinking this has something to do with that module, maybe a compatibility issue ?

Also the Debug line gives me this:
Warning: Class 'XoopsTree' is deprecatedcheck 'XoopsObjectTree' in tree.php in file /class/xoopstree.php line 45

System Environment:

XOOPS Version - XOOPS 2.3.0 RC
PHP Version - 5.2.6
MySQL Version - 5.0.51a-community
Server API Version - cgi
OS Version - Linux

2
frankblack
Re: X_Movie Fatal Error
  • 2008/8/12 8:39

  • frankblack

  • Just can't stay away

  • Posts: 830

  • Since: 2005/6/13


You need to know the name of the file where getserverstats() is in. Open both functions.php with an editor. The file is embedded with include or require. Change it to include_once or require_once. Should be working.

About the warning: It is just a warning. This is not a fault, but the module developers should change to xoopsobjecttree in the next release.

3
Ft24v2
Re: X_Movie Fatal Error
  • 2008/8/12 8:51

  • Ft24v2

  • Just popping in

  • Posts: 86

  • Since: 2007/1/30


Alright so i followed you up until " The file is embedded with include or require ". Ive located both funtion files, and found the getserverstast funtion in each file, what do i change to include_once.

( Sorry but i know little php )

4
frankblack
Re: X_Movie Fatal Error
  • 2008/8/12 8:56

  • frankblack

  • Just can't stay away

  • Posts: 830

  • Since: 2005/6/13


Ups! So you have to change the function for one module. Just take xmovie for example. Search the whole module for getserverstats and rename all occurences in xmovie to getserverstatsxmovie

5
Ft24v2
Re: X_Movie Fatal Error
  • 2008/8/12 9:02

  • Ft24v2

  • Just popping in

  • Posts: 86

  • Since: 2007/1/30


So basically changing the name of the funtion completly then ? Alright ill do that and share how it worked out

6
wrecked
Re: X_Movie Fatal Error
  • 2008/11/23 8:54

  • wrecked

  • Just popping in

  • Posts: 55

  • Since: 2006/12/5


thanks frankblack.

it did thejob :)

Login

Who's Online

55 user(s) are online (26 user(s) are browsing Support Forums)


Members: 0


Guests: 55


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits