Menu

#10 Multiple instances cause channel change

open
None
2
2008-12-29
2008-04-04
No

When using two instances of the chat, change channels in one instance, then using a different session load another instance - the main instance will revert back to the default channel.

Discussion

  • meinhard

    meinhard - 2008-04-14

    Logged In: YES
    user_id=2058164
    Originator: NO

    This might be related to #1939960 - maybe the same solution will work for you.

    What exactly do you mean by "instance"? A different installation on the server with its own database and configuration or just a different browser on the same client computer?

     
  • Philip Nicolcev

    Philip Nicolcev - 2008-04-25

    Logged In: YES
    user_id=1999877
    Originator: NO

    I currently run two copies of the chat on my own domain, one for the shoutbox and one for the actual chat. After changing the database table names as well as the session names in config.php (and in the install sql) I have not run into any conflicts.

    I have had this setup running for several months.

     
  • Eric Martindale

    Eric Martindale - 2008-04-28

    Logged In: YES
    user_id=1473741
    Originator: YES

    This applies to two separate directories, each with their own session name, pointing to the same database.

    Shoutbox on all forum pages, full chat on separate page. Change channel in chat, then browse to another page on the forum and activate the shoutbox. Your chat instance will revert to the default channel.

    Can I have someone confirm this for me?

     
  • Philip Nicolcev

    Philip Nicolcev - 2008-04-29

    Logged In: YES
    user_id=1999877
    Originator: NO

    Do you mean that you are pointing both installations to the same database tables? If so I'm sure that this will happen however the workaround is to use different table names for one of the installs.

    In chat.sql replace all instances of "ajax_chat" with "ajax_shoutbox"

    then set the config.php file inside the shoutbox installation folder to point to the ajax_shoutbox tables. It should work.

     
  • Philip Nicolcev

    Philip Nicolcev - 2008-12-26
    • priority: 5 --> 2
     
  • Philip Nicolcev

    Philip Nicolcev - 2008-12-29
    • assigned_to: nobody --> frug
     
  • Philip Nicolcev

    Philip Nicolcev - 2008-12-29

    Confirming that this can happen when both instances of chat run on the same server.

     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.