• Lucid Dreaming - Dream Views
    + Reply to Thread
    Results 1 to 2 of 2
    1. #1
      Anonymous
      Guest

      Chatspot bug / problem with Hangman-Mod

      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:

      Code:
      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 and http://www.phpbb.de/viewtopic.php?t=82049

      Perhaps you can help?? tia!

    2. #2
      Member Kaniaz's Avatar
      Join Date
      Dec 2003
      Gender
      Location
      England
      Posts
      5,449
      Likes
      8
      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.

    Bookmarks

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts