Page 1 of 1

Bugs

PostPosted: 31 May 2011, 13:28
by KVanaudenaerde
It's really a buggy and laggy chat, what to improve the chat?
I had 60 users online, and i had many offline messages which could not be delivered.
It was very buggy!

PostPosted: 31 May 2011, 13:43
by Jason
KVanaudenaerde wrote:It's really a buggy and laggy chat, what to improve the chat?
I had 60 users online, and i had many offline messages which could not be delivered.
It was very buggy!


It doesn't help us very much to just say it's buggy. We need to know exactly what is wrong so that is can be fixed (if anything needs fixing).

Your server may not be powerful enough for 60 users. You should increase the heart beat and lower the idle time.

PostPosted: 31 May 2011, 14:24
by KVanaudenaerde
Ok, some more specs:

I had 60 users online and had some problems:

- Users were online on the site, but when i sent a message i received an offline notification (during this session, the user with who i was chatting with, was really sending messages to me!)
- Serverload increased alot when 60 users were online... even a too many mysql connections came up...
- Image formatting was not right, sometimes the image was displayed like this 'smiley-image' "> (the "> appearing at the back?!)

PostPosted: 16 Sep 2011, 05:00
by TKhobkrathok
We have a similar problem:

In your own chat window, smiles appear ok.

In the receiver's chat window, we get this shown:

<img class="arrowchat_smiley" width="16" height="16" "="" href="http://chat.birchplace.com/i/themes/bp_v3/images/smilies/smiley.gif" _blank"="" src="<a target=">

Notice how the HTML here is wrong:

src="<a target=">

Any ideas what code is causing this please?

We are using 1.06

PostPosted: 16 Sep 2011, 05:04
by TKhobkrathok
Notice the strange "="" AFTER the width and height definitions.

PostPosted: 16 Sep 2011, 05:31
by TKhobkrathok
It would appear that the function makeClickableLinks() is being executed in receive_core.php is being executed even if the string is only a smiley, resulting in the receive window not showing the smiley, but showing a broken URL string instead.

PostPosted: 16 Sep 2011, 06:26
by Jason
TKhobkrathok wrote:It would appear that the function makeClickableLinks() is being executed in receive_core.php is being executed even if the string is only a smiley, resulting in the receive window not showing the smiley, but showing a broken URL string instead.


Fixed in v1.1, here is the updated function:

Code: Select all
   function makeClickableLinks($s) {
      return preg_replace("! \b((([a-z]{3,5}://))". "[-a-z0-9.]{2,}\.[a-z]{2,4}". "(:[0-9]+)?". "(/([^\s]*[^\s,.])?)?". "(\?([^\s]*[^\s,.])?)?)\b!i",  "<a target=\"_blank\" href=\"\\1\">\\1</a>", $s);
   }

PostPosted: 16 Sep 2011, 10:44
by ALieb
We're having similar issues of getting offline message warnings. Where someone messages you first and then you reply back and arrow chat tells you that they're offline.

PostPosted: 16 Sep 2011, 23:54
by TKhobkrathok
Thank you Jason, that seems to have fixed the smiley bug.

Topic Closed

PostPosted: 07 Nov 2012, 12:40
by Staff Bot
This thread has been locked because the last post is greater than six months old. There is a good chance that the information in this thread is outdated. Please open a new topic if you wish to discuss this further.