collapse

* Simple Portal Archived Forum

This is an Archive Forum.

The content in this forum may be out-of-date or have been superseded by newer information, and links in forum pages to other sites may not work.
This forum contains archives for future reference.

Visit our thread at Simple Machines Forum for current support.

SMF 2.1 users: EhPortal is a ported version of Simple Portal specifically designed for the SMF 2.1 branch.
Please visit web-develop.ca to download EhPortal and for its support.

* User Info

 
 
Welcome, Guest. Please login or register.

* Who's Online

  • Dot Guests: 273
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

* Shoutbox

Refresh History
  • Shoutbox is not for support!
  • {OCS}MasterSeal: Yup, Still adore SP
    April 21, 2019, 07:08:06 PM
  • {OCS}MasterSeal: STILL love SP :)
    November 24, 2018, 05:05:50 AM
  • ♦ Ninja ZX-10RR ♦: <3 aegersz
    September 13, 2018, 03:36:09 PM
  • aegersz: I STILL <3 LOVE SimplePortal
    September 13, 2018, 07:11:39 AM
  • aegersz: o LOVE you guys - Simple Portal rocks !
    May 09, 2018, 05:18:59 AM
  • Chen Zhen: our apologies for the site being down.. please read server issues topic
    March 22, 2018, 05:32:38 AM
  • {OCS}MasterSeal: LOL PLEASE forget I just posted that. I found the answer in my own dang post back in 2015. lol sorry!
    July 04, 2017, 10:47:55 PM
  • {OCS}MasterSeal: I know this SB isnt' for support, but I just have a general question. Who would I contact to find out where SP stores its block info? Is it DB driven or files? I searched the site but came up with nothing. probably my fault any insight is appreciated.
    July 04, 2017, 10:43:36 PM
  • ♦ Ninja ZX-10RR ♦: Excuse me but what does Simpleportal have to deal with that?
    February 05, 2017, 08:21:14 PM
  • WhiteEagle: of course IMHO that site appears to be dead :(
    February 04, 2017, 01:08:05 PM
  • WhiteEagle: If I can get that, then I'll use it for that site...
    February 04, 2017, 01:07:35 PM
  • WhiteEagle: decided to not use SMF for any projects, unless I can get a copy of the premium version of the fanfiction archive plugin
    February 04, 2017, 01:06:54 PM
  • expertdecisions: cloudflare
    January 28, 2017, 08:01:47 AM
  • aegersz: SM release 2.0.13 !
    January 12, 2017, 06:00:13 AM
  • raffo: Tks Emanuele, even if I didn't understand the fix :D
    November 07, 2016, 02:01:20 AM
  • emanuele: [link]
    November 01, 2016, 12:43:50 PM
  • emanuele: raffo: the English support board is a good place. ;)
    November 01, 2016, 12:43:38 PM
  • raffo: Where can I find the fix for the shoutbox?
    November 01, 2016, 05:06:09 AM
  • {OCS}MasterSeal: To the SP team, I make a point to come here and thank you as much as possible for your work.  so again, THANK YOU!
    October 28, 2016, 10:38:05 AM
  • emanuele: That's indeed funny, the limit is present only in the patch and not the full install.
    October 22, 2016, 06:14:58 PM

* Recent Posts

Adding Forums Button to Nav bar by jirapon
[August 01, 2019, 09:07:12 AM]


Re: Board Icons by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 04:03:41 PM]


MOVED: Czech translation???? by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 03:04:51 PM]


Board Icons by jirapon
[July 30, 2019, 07:28:44 AM]


Re: Thankyou Simpleportal, by ♦ Ninja ZX-10RR ♦
[July 29, 2019, 09:41:29 AM]

Blocks speak! Do you have an interest in getting more blocks - or even making your own? The Blocks Board is for you!

Author Topic: Shoutbox refresh and page reload discrepancy  (Read 108249 times)

0 Members and 1 Guest are viewing this topic.

Offline i8088

  • Just Registered
  • Posts: 1
  • SMF Version: 2.0.9
  • SP Version: 2.3.6
Re: Shoutbox refresh and page reload discrepancy
« Reply #80 on: October 23, 2014, 06:44:24 PM »
I've been following this thread for some time with the same refresh issue.

Figured 2.3.6 would solve the issue, and it appeared to do so for a week after updating (removed 2.3.5 and applied 2.3.6) but I am now experiencing the same issue where the refresh animation shows indefinitely, and the text is only posted once the page is refreshed, basically the same issue. The issue did go away as soon as I upgraded to 2.3.6, but it now is appearing again.

I noticed this issue with 2.3.5 begun once I upgraded my shared hosting from PHP 5.2 to 5.4 which is their default/current version. It generally won't occur with an empty shoutbox but will begin some time later. It may not be the only or exclusive condition but I am definitely having the same issue as claimed fixed with 2.3.6 on my website currently.

Any input would be appreciated...

Offline andy

  • On Leave
  • *
  • Posts: 861
  • Gender: Male
    • Outdoor Club Japan (OCJ) アウトドア・クラブ・ジャパン
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
  • Elkarte Version: None
Re: Shoutbox refresh and page reload discrepancy
« Reply #81 on: October 27, 2014, 08:26:41 AM »
Agreed... shocked Im seeing this again.

I tested on another webhost and  pre-2.3.6 and it seemed fixed. Now on my main website using a clean install of smf 2.0.9 and sp2.3.6 and there are shouts not being shown until page reload.

Latest Firefox to Chrome browser (Admin to user) and the other way.

I do have a lot of mods installed though (30 or so).



Everyone is a volunteer here so please try and make a small donation to keep the Simple Portal website running


Offline ♦ Ninja ZX-10RR ♦

  • Spammer Hammer
  • Support
  • *
  • Posts: 1193
  • Gender: Male
  • Sniper Legends
    • Virtual Interactive Games Entertainment™
  • SMF Version: 2.0.13
  • SP Version: 2.3.6
  • Elkarte Version: 1.0.6
Re: Shoutbox refresh and page reload discrepancy
« Reply #82 on: December 09, 2014, 05:49:48 PM »
It could be related to this: http://simpleportal.net/index.php?topic=13734.msg67892#msg67892 and the following replies, especially #13 and #14. It's a very old topic but also that mod is very old, it can be that one having the bug since its first release.
Have you tried SimplePortal Documentation before asking? ;)
F.A.Q.  English Support  |  Blocks Support
Fancy Feature idea ?!  |  Blocks Requests
Themes & Graphics

? My job! ?No PMs for support unless it's a paid request. Thank you! :)#OpIsis

Offline rentner

  • Semi Newbie
  • *
  • Posts: 14
  • SMF Version: 2.0.14
  • SP Version: 2.3.6
Re: Shoutbox refresh and page reload discrepancy
« Reply #83 on: January 04, 2015, 10:27:33 AM »
I get this problem again if a update the PHP version from 5.2 to 5.5.

Also the PHP version 5.4 makes the same problem with the refresh.

Any new how I get fixed this problem?

Many thanks.

PS: see attached error log
« Last Edit: January 04, 2015, 10:43:15 AM by rentner »
PHP 5.6

Offline ♦ Ninja ZX-10RR ♦

  • Spammer Hammer
  • Support
  • *
  • Posts: 1193
  • Gender: Male
  • Sniper Legends
    • Virtual Interactive Games Entertainment™
  • SMF Version: 2.0.13
  • SP Version: 2.3.6
  • Elkarte Version: 1.0.6
Re: Shoutbox refresh and page reload discrepancy
« Reply #84 on: January 04, 2015, 12:59:10 PM »
I am running PHP 5.5 and never experienced it so it must be something else. Neither I have those errors...
Did you install the... "Guest Registration Notification" mod perhaps? I had to file a security report about it since it was breaking the shoutbox --> ref http://simpleportal.net/index.php?topic=13734.msg67760#msg67760
Have you tried SimplePortal Documentation before asking? ;)
F.A.Q.  English Support  |  Blocks Support
Fancy Feature idea ?!  |  Blocks Requests
Themes & Graphics

? My job! ?No PMs for support unless it's a paid request. Thank you! :)#OpIsis

Offline rentner

  • Semi Newbie
  • *
  • Posts: 14
  • SMF Version: 2.0.14
  • SP Version: 2.3.6
Re: Shoutbox refresh and page reload discrepancy
« Reply #85 on: January 05, 2015, 03:33:10 AM »
No this mod I doesn't know.

I cannot find any other hint as the error message in my attachment.

Hope I fit this problem because no other shoutbox is so comfortable as this one form SimplePortal.

Is there any funtional shoutbox that I can use as long as I sruch the fault? Please advice.
« Last Edit: January 05, 2015, 06:48:40 AM by rentner »
PHP 5.6

Offline ♦ Ninja ZX-10RR ♦

  • Spammer Hammer
  • Support
  • *
  • Posts: 1193
  • Gender: Male
  • Sniper Legends
    • Virtual Interactive Games Entertainment™
  • SMF Version: 2.0.13
  • SP Version: 2.3.6
  • Elkarte Version: 1.0.6
Re: Shoutbox refresh and page reload discrepancy
« Reply #86 on: January 05, 2015, 08:06:50 AM »
Well I guess someone can convert that function into the preg_replace_callback, personally I can't do it because the syntax changes and I'm not a php coder.
It is still strange that it doesn't happen on my forum even though the php version I am using is the 5.5 one...
Probably Underdog or SiNaN or any other coder will be converting those strings to fix it for you...

However in the meantime I let you know that I personally tried any other existing shoutbox for smf and they all suck bananas compared to this one... The one that looks barely decent (smfpacks one) has a terrific number of bugs and issues that discourage me from suggesting it, really. Neonneo's one is full of undefined indexes and bugs, moreover bad coding since its css is called even though the shoutbox is disabled... Any other one is really bad IMHO. SiNaN did an awesome job with this one, it's missing just a few features that I requested (for instance the permission to edit messages) but except that it rocks.

EDIT: P.s.: Underdog=Chen Zhen I mistakenly used the previous username...
« Last Edit: January 05, 2015, 10:01:27 PM by ♦ Ninja ZX-10RR ♦ »
Have you tried SimplePortal Documentation before asking? ;)
F.A.Q.  English Support  |  Blocks Support
Fancy Feature idea ?!  |  Blocks Requests
Themes & Graphics

? My job! ?No PMs for support unless it's a paid request. Thank you! :)#OpIsis

Offline Chen Zhen

  • The Underdog
  • Operations Manager
  • *
  • Posts: 1350
  • Gender: Male
  • Kinesis
    • WebDev
  • SMF Version: 2.1
  • EhPortal Version: 1.22
Re: Shoutbox refresh and page reload discrepancy
« Reply #87 on: January 05, 2015, 08:33:11 PM »

rentner,

Perform this edit...

file: ../Sources/PortalBlocks.php

find:
Code: [Select]
$data = preg_replace('~<\!\[CDATA\[(.+?)\]\]>~e' . ($context['utf8'] ? 'u' : ''), '\'#cdata_escape_encode#\' . $smcFunc[\'htmlspecialchars\'](\'$1\')', $data);

replace with:
Code: [Select]
        $data = preg_replace_callback('~<\!\[CDATA\[(.+?)\]\]>~' . ($context['utf8'] ? 'u' : ''), function($m) {return "#cdata_escape_encode#" . htmlspecialchars($m[1]);}, $data);

Regards.

Offline rentner

  • Semi Newbie
  • *
  • Posts: 14
  • SMF Version: 2.0.14
  • SP Version: 2.3.6
Re: Shoutbox refresh and page reload discrepancy
« Reply #88 on: January 06, 2015, 04:10:57 AM »
@ Ninja ZX-10RR - I'm absulutely agree with you.

@ Chen Zhen - Thank you so much - now the errors are away from the log file.

But the problem that the shoutbox do not refresh automatily, only if the page is loaded new, is still there. 
PHP 5.6

Offline Chen Zhen

  • The Underdog
  • Operations Manager
  • *
  • Posts: 1350
  • Gender: Male
  • Kinesis
    • WebDev
  • SMF Version: 2.1
  • EhPortal Version: 1.22
Re: Shoutbox refresh and page reload discrepancy
« Reply #89 on: January 06, 2015, 05:13:20 PM »
rentner,

Edit the shoutbox settings (not the block) and set the refresh time to approx. 10 or 12 seconds.

Regards.

Offline rentner

  • Semi Newbie
  • *
  • Posts: 14
  • SMF Version: 2.0.14
  • SP Version: 2.3.6
Re: Shoutbox refresh and page reload discrepancy
« Reply #90 on: January 07, 2015, 02:50:59 AM »
I have done this and I see the the circuit is running after the time but the shout do not appear. :(
PHP 5.6

Offline andy

  • On Leave
  • *
  • Posts: 861
  • Gender: Male
    • Outdoor Club Japan (OCJ) アウトドア・クラブ・ジャパン
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
  • Elkarte Version: None
Re: Shoutbox refresh and page reload discrepancy
« Reply #91 on: January 07, 2015, 11:14:10 PM »
This is a never ending topic...

I did do a short test for SP 2.3.6 release and it was working fine. This was with a clean install of SMF with no mods and no custom theme.

Perhaps some themes or mods are making trouble. It is best to test a clean install of SMF and S.Portal on your server (new database - not your site one, no mods, no custom theme). See if that works.

Then we know if its server related or mod/theme problem.

Everyone is a volunteer here so please try and make a small donation to keep the Simple Portal website running


Offline ♦ Ninja ZX-10RR ♦

  • Spammer Hammer
  • Support
  • *
  • Posts: 1193
  • Gender: Male
  • Sniper Legends
    • Virtual Interactive Games Entertainment™
  • SMF Version: 2.0.13
  • SP Version: 2.3.6
  • Elkarte Version: 1.0.6
Re: Shoutbox refresh and page reload discrepancy
« Reply #92 on: January 08, 2015, 02:31:59 AM »
Good point... If the theme is using AJAX calls or javascript it may break the shoutbox refresh, too.
Have you tried SimplePortal Documentation before asking? ;)
F.A.Q.  English Support  |  Blocks Support
Fancy Feature idea ?!  |  Blocks Requests
Themes & Graphics

? My job! ?No PMs for support unless it's a paid request. Thank you! :)#OpIsis

Offline rentner

  • Semi Newbie
  • *
  • Posts: 14
  • SMF Version: 2.0.14
  • SP Version: 2.3.6
Re: Shoutbox refresh and page reload discrepancy
« Reply #93 on: January 08, 2015, 03:09:39 AM »
Thanks for the answers.

I just make a new installation on a second domain with the SMF 2.1 Beta for testing.

I will install the SP on this domain too, maybe it function with this version also.
PHP 5.6

Offline rentner

  • Semi Newbie
  • *
  • Posts: 14
  • SMF Version: 2.0.14
  • SP Version: 2.3.6
Re: Shoutbox refresh and page reload discrepancy
« Reply #94 on: January 08, 2015, 04:04:28 AM »
Just I installed the SP 2.3.6 on the quit new SMF 2.1 Beta software and unfortunately the same problem with no automatic refresh.

Seem that it is the web space (server) software.
PHP 5.6

Offline ♦ Ninja ZX-10RR ♦

  • Spammer Hammer
  • Support
  • *
  • Posts: 1193
  • Gender: Male
  • Sniper Legends
    • Virtual Interactive Games Entertainment™
  • SMF Version: 2.0.13
  • SP Version: 2.3.6
  • Elkarte Version: 1.0.6
Re: Shoutbox refresh and page reload discrepancy
« Reply #95 on: January 08, 2015, 06:47:56 AM »
Such a bad version IMHO... Besides I don't know how much the Portal is compatible with the newest 2.1...
It could be useful if you could duplicate your forum onto another server by another host, possibly with the same php version... You don't need to import the database ;)
Have you tried SimplePortal Documentation before asking? ;)
F.A.Q.  English Support  |  Blocks Support
Fancy Feature idea ?!  |  Blocks Requests
Themes & Graphics

? My job! ?No PMs for support unless it's a paid request. Thank you! :)#OpIsis

Offline SeeingBlue

  • Semi Newbie
  • *
  • Posts: 14
  • SMF Version: 2.0.9
  • SP Version: 2.3.6
Re: Shoutbox refresh and page reload discrepancy
« Reply #96 on: January 14, 2015, 09:43:30 AM »
I am also having this issue. It used to work fine then something changed. The circle just churns and doesn't update until you refresh the page. Doesn't matter the browser. My auto-fresh is set to 12, and doesn't matter whether cache is on or off.

I did install a fresh copy of SMF 2.0.9 and SP 2.3.6. This worked fine, so it's not hosting related.

While monitoring the console I do see this error ever 12 seconds:
Quote
junk after document element
index.php:5
TypeError: XMLDoc.getElementsByTagName(...)[0] is undefined
portal.js:104

Installed Mods include:
Code: [Select]
Downloads System 2.1a
Treasury 2.12
Say Thanks 1.1.2
Event Registration Mod 0.177 BETA
Breeze 1.0.7
RSS Feed Poster 4.1
Country Flags 2.1
Simple Audio Video Embedder 3.0.2
SimplePortal 2.3.6
Add Social Media Icons To Profiles 1.2.0
SMF Staff Page 1.7

I hope this was helpful.
« Last Edit: January 14, 2015, 09:47:34 AM by SeeingBlue »

Offline rentner

  • Semi Newbie
  • *
  • Posts: 14
  • SMF Version: 2.0.14
  • SP Version: 2.3.6
Re: Shoutbox refresh and page reload discrepancy
« Reply #97 on: January 16, 2015, 05:06:50 AM »
I can't believe it but I have fixed this problem.  ;D ;D ;D ;D

The problem was the font set.

I have transfered the font set to UTF-8 and now the box is refreshing automaticly again.

I'am very happy to had have solved this problem now.  8)
PHP 5.6

Offline andy

  • On Leave
  • *
  • Posts: 861
  • Gender: Male
    • Outdoor Club Japan (OCJ) アウトドア・クラブ・ジャパン
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
  • Elkarte Version: None
Re: Shoutbox refresh and page reload discrepancy
« Reply #98 on: January 17, 2015, 04:43:36 AM »
The theme font?

Everyone is a volunteer here so please try and make a small donation to keep the Simple Portal website running


Offline rentner

  • Semi Newbie
  • *
  • Posts: 14
  • SMF Version: 2.0.14
  • SP Version: 2.3.6
Re: Shoutbox refresh and page reload discrepancy
« Reply #99 on: January 17, 2015, 06:17:18 AM »
The language font set.
PHP 5.6