PDA

View Full Version : Chatspot bug / problem with Hangman-Mod


Anonymous
03-22-2005, 01:58 AM
Hi everybody!

Today I installed the Hangman-Mod (form this site: http://pete.datensysteme-lenk.de/orion/) and then I got an error message whenever I tried to reach the forum:

Fatal error: Cannot redeclare get_username() (previously declared in /home/pecher/www.hohenau.net/forum/includes/functions_hangman.php:136) in /home/pecher/www.hohenau.net/forum/chatspot/chatspot_functions.php on line 338

Is this a bug or is there another reason why these two mods don't work with each other??

btw..this is a known problem, already postet in http://www.phpbbhacks.com/forums/viewtopic...ghlight=hangman (http://www.phpbbhacks.com/forums/viewtopic.php?t=29918&highlight=hangman) and http://www.phpbb.de/viewtopic.php?t=82049

Perhaps you can help?? tia!

Kaniaz
03-22-2005, 11:39 AM
OK. I looked at the hangman mod. It's not a bug or problem with either specifically - in fact mod clashes do indeed happen with phpBB often. Developers do have trouble sometimes with this. What is happening is both mods are using an seperate function of their own, both of which are called get_username(). The solution off the top of my head is to rename one of the functions to something else and rename all the calls to it. This is a tedious job that you'd have to repeat when you upgrade your modified script to a new version, so wether not you want to do it is your call. You'll have to remove one of the scripts in the meantime if you do not want to do this and the problem will fix itself.

Please note I'm not a chatspot developer so if I say/get something wrong, blame me and not icedawg [when he's back]. Feel free to PM me or whatever if you feel the need. Thanks. :P