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: 384
  • 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]

If you're interested in helping other members with support requests, consider joining the Community Support Helpers group.

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

0 Members and 3 Guests are viewing this topic.

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 #100 on: January 19, 2015, 12:33:23 AM »
Can you be specific - where did you change those details?

The Simple Portal shoutbox php script? Or some other place like SMF, theme etc.
Everyone is a volunteer here so please try and make a small donation to keep the Simple Portal website running


Offline ataru

  • Jr. Member
  • **
  • Posts: 63
  • Gender: Male
    • Biancocelesti.org - Sempre Forza Lazio
  • SMF Version: 2.0.10
  • SP Version: 2.3.6
Re: Shoutbox refresh and page reload discrepancy
« Reply #101 on: January 27, 2015, 07:14:15 AM »
ok. i didn't notice that.

sorry i opened a new topic on that:

I own a forum, http://www.biancocelesti.org, just upgraded from 2.0RC3 to 2.0.9.

I also upgraded SP from 2.3.2 to 2.3.6.

now my shoutboxes can't refresh. shouts are stored in db, can be seen refreshing the whole page (F5), but can't refresh only shoutbox.

Trying to debug js code, i encounter an error:
Code: [Select]
Uncaught TypeError: Cannot read property 'nodeValue' of undefined - portal.js?236:127
onShoutReceived - portal.js?236:127
oMyDoc.onreadystatechange - script.js?rc3:88


this is the portal.js part of the error:
Code: [Select]
for (var i = 0; i < shouts.length; i++)
{
shout = XMLDoc.getElementsByTagName("smf")[0].getElementsByTagName("shout")[i];
id = shout.getElementsByTagName("id")[0].childNodes[0].nodeValue;
---> author = shout.getElementsByTagName("author")[0].childNodes[0].nodeValue;<---
time = shout.getElementsByTagName("time")[0].childNodes[0].nodeValue;
timeclean = shout.getElementsByTagName("timeclean")[0].childNodes[0].nodeValue;
delete_link = shout.getElementsByTagName("delete")[0].childNodes[0].nodeValue;
content = shout.getElementsByTagName("content")[0].childNodes[0].nodeValue;
is_me = shout.getElementsByTagName("is_me")[0].childNodes[0].nodeValue;

new_body += '<li class="smalltext">' + (is_me == 0 ? '<strong>' + author + ':</strong> ' : '') + content + '<br />' + (delete_link != 0 ? ('<span class="shoutbox_delete">' + delete_link + '</span>') : '') + '<span class="smalltext shoutbox_time">' + time + '</span></li>';
}

and this is the script.js part:
Code: [Select]
if (bAsync)
{
oMyDoc.onreadystatechange = function () {
if (oMyDoc.readyState != 4)
return;

if (oMyDoc.responseXML != null && oMyDoc.status == 200)
{
if (funcCallback.call)
{
---> funcCallback.call(oCaller, oMyDoc.responseXML);<---
}
// A primitive substitute for the call method to support IE 5.0.
else
{
oCaller.tmpMethod = funcCallback;
oCaller.tmpMethod(oMyDoc.responseXML);
delete oCaller.tmpMethod;
}
}
};
}
oMyDoc.open('GET', sUrl, bAsync);
oMyDoc.send(null);


no errors in error.log, only client side.
can anyone help me?
i tried to see the xml generated by myurl/index.php?action=portal;sa=shoutbox;shoutbox_id=1;xml and i see:
Code: [Select]
<smf>
<shoutbox>1</shoutbox>
<updated>1</updated>
<error>0</error>
<warning>0</warning>
<reverse>0</reverse>
<shout>
<id>167015</id>
<author/>
<time/>
<timeclean/>
<delete>
<a href="myurl/index.php?action=portal;sa=shoutbox;shoutbox_id=1;delete=167015;ed3d3dff0=b6e1b2b659ad6f39f96b2b0c33928ef4" onclick="sp_delete_shout(1, 167015, 'ed3d3dff0', 'b6e1b2b659ad6f39f96b2b0c33928ef4'); return false;"><img src="myurl/Themes/mytheme/images/sp/delete_small.png" alt="Elimina" title="Elimina" /></a>
</delete>
<content/>
<is_me>0</is_me>
</shout>
<shout>
<id>166299</id>
<author/>
<time/>
<timeclean/>
<delete>
<a href="myurl/index.php?action=portal;sa=shoutbox;shoutbox_id=1;delete=166299;ed3d3dff0=b6e1b2b659ad6f39f96b2b0c33928ef4" onclick="sp_delete_shout(1, 166299, 'ed3d3dff0', 'b6e1b2b659ad6f39f96b2b0c33928ef4'); return false;"><img src="myurl/Themes/mytheme/images/sp/delete_small.png" alt="Elimina" title="Elimina" /></a>
</delete>
<content/>
<is_me>0</is_me>
</shout>

it seems like it couldn't get nothing but id from xml

there's something in generating xml for shoutboxes. xml for posts is ok.

Offline ataru

  • Jr. Member
  • **
  • Posts: 63
  • Gender: Male
    • Biancocelesti.org - Sempre Forza Lazio
  • SMF Version: 2.0.10
  • SP Version: 2.3.6
Re: Shoutbox refresh and page reload discrepancy
« Reply #102 on: February 02, 2015, 11:09:35 AM »
ok. solved adding $smcFunc and using $smcFunc['htmlspecialchars'] instead of php htmlspecialchars


Code: [Select]
function template_shoutbox_xml()
{
global $context, $txt, $smcFunc;

echo '<', '?xml version="1.0" encoding="', $context['character_set'], '"?', '>
<smf>
<shoutbox>', $context['SPortal']['shoutbox']['id'], '</shoutbox>';

if ($context['SPortal']['updated'])
{
echo '
<updated>1</updated>
<error>', empty($context['SPortal']['shouts']) ? $txt['sp_shoutbox_no_shout'] : 0, '</error>
<warning>', !empty($context['SPortal']['shoutbox']['warning']) ? $smcFunc['htmlspecialchars']($context['SPortal']['shoutbox']['warning']) : 0, '</warning>
<reverse>', !empty($context['SPortal']['shoutbox']['reverse']) ? 1 : 0, '</reverse>';

foreach ($context['SPortal']['shouts'] as $shout)
echo '
<shout>
<id>', $shout['id'], '</id>
<author>', $smcFunc['htmlspecialchars']($shout['author']['link']), '</author>
<time>', $smcFunc['htmlspecialchars']($shout['time']), '</time>
<timeclean>', $smcFunc['htmlspecialchars'](strip_tags($shout['time'])), '</timeclean>
<delete>', !empty($shout['delete_link_js']) ? $smcFunc['htmlspecialchars']($shout['delete_link_js']) : 0, '</delete>
<content>', $smcFunc['htmlspecialchars']($shout['text']), '</content>
<is_me>', $shout['is_me'] ? 1 : 0, '</is_me>
</shout>';


/* old code
<shout>
<id>', $shout['id'], '</id>
<author>', htmlspecialchars($shout['author']['link']), '</author>
<time>', htmlspecialchars($shout['time']), '</time>
<timeclean>', htmlspecialchars(strip_tags($shout['time'])), '</timeclean>
<delete>', !empty($shout['delete_link_js']) ? htmlspecialchars($shout['delete_link_js']) : 0, '</delete>
<content>', htmlspecialchars($shout['text']), '</content>
<is_me>', $shout['is_me'] ? 1 : 0, '</is_me>
</shout>';*/



}
else
echo '
<updated>0</updated>';

echo '
</smf>';


could it be fixed on next releases?

Offline velorooms

  • Jr. Member
  • **
  • Posts: 83
    • Velorooms
  • SMF Version: 2.0.2
  • SP Version: 2.3.5
Re: Shoutbox refresh and page reload discrepancy
« Reply #103 on: April 26, 2015, 08:50:53 PM »
Just upgraded from 2.3.5 (working shoutbox) to 2.3.6 (no refreshing).

the above  htmlspecialchars edit appears to have fixed it.
Admin and Owner of Velorooms.com - Using SMF 2.0.3 and Simpleportal 2.3.5

Offline vovik

  • Just Registered
  • Posts: 1
  • Gender: Male
    • DZservers
  • SMF Version: 2.0.10
  • SP Version: 2.3.6
Simple Portal Shoutbox not refreshing
« Reply #104 on: May 11, 2015, 08:23:43 AM »
If any of you are having a problem with the shoutbox not refreshing, it is because the php version you are using is not yet supported and you need to downgrade.

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: Simple Portal Shoutbox not refreshing
« Reply #105 on: May 11, 2015, 08:57:30 AM »
Hi and welcome to SimplePortal.

What you say could be an issue somehow but in most cases it's not the actual cause, the forum contains many threads about this, too. A lot of time ago I had this issue, myself, but the cause was a faulty mod: http://simpleportal.net/index.php?topic=13734.0

Regards
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 ataru

  • Jr. Member
  • **
  • Posts: 63
  • Gender: Male
    • Biancocelesti.org - Sempre Forza Lazio
  • SMF Version: 2.0.10
  • SP Version: 2.3.6
Re: Simple Portal Shoutbox not refreshing
« Reply #106 on: May 13, 2015, 03:24:18 AM »
it could be a php issue in non utf-8 forums:

http://simpleportal.net/index.php?topic=13865.0

it can be solved replacing every htmlspecialchars() funciton with $smcFunc['htmlspecialchars']() in Portalshoutbox.template.php

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: Simple Portal Shoutbox not refreshing
« Reply #107 on: May 13, 2015, 07:52:49 AM »
Yes, like I said in special cases it can be an issue, but thanks for posting the link :)
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 Raji

  • Full Member
  • ***
  • Posts: 102
  • Gender: Female
    • Baaskani Diwwan
  • SMF Version: 2.0.1
  • SP Version: 2.3.4
Shoutbox refreshing error
« Reply #108 on: July 04, 2015, 11:58:02 AM »
Hi there,

Since I have upgraded SMF from SMF 2.0.9 to SMF 2.0.10 shoutbox is not auto refreshing. Although I have gone through previous posts related to the same issues but couldn't get clear idea how to fix it.
In error log I am getting this error:
Quote
http://sitename/smf/index.php?action=portal;sa=shoutbox;shoutbox_id=1;time=1436025373;xmlApply Filter: Only show the errors with the same message2: require_once(/home/sitename/public_html/smf/Sources/PortalShoutbox.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directoryApply Filter: Only show the errors from this file File: /home/sitename/public_html/smf/Sources/PortalMain.php
Line: 52


My forum is here:
http://baask.com/diwwan/index.php?action=forum

Thanks in advance for your prompt response

Regards,
Baloch
« Last Edit: July 04, 2015, 12:06:31 PM by Raji »

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 refreshing error
« Reply #109 on: July 04, 2015, 01:33:39 PM »
Sorry but this is definitely the wrong section... It's 100% related to your forum, but there are many reasons that can cause this, that's why there are many topics about it. It happened on my own as well, for another faulty mod that was breaking it.

From the looks of it it would seem as if your SimplePortal didn't install correctly. Mods list? Actions taken? Just upgrading from 2.0.9 to 2.0.10... Well I can't see how it could cause such an issue :(
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 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 refreshing error
« Reply #110 on: July 05, 2015, 11:14:25 AM »
Quote
It's 100% related to your forum, but there are many reasons that can cause this,

In this sense I can agree it is as bad as a bug. If there are several other mods affecting the shoutbox (the shoutbox code isnt modified) then the code needs writing in a way so that there shouldn't be interference.

I would like to use the SP shoutbox but it is too unreliable. Most people use mods and there seems to be a problem with languages.

I did use an SMF chat/shoutbox but its big and a bit resource heavy. However, it works properly for most people. I'm sure SP shoutbox can be made to work as well as that.

I have used this when I needed people online for live discussion. It worked perfectly every time.
http://custom.simplemachines.org/mods/?mod=1295

Its a bit overkill compared to the SP shoutbox which I would prefer to use.

« Last Edit: July 05, 2015, 11:22:56 AM by andy »
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 refreshing error
« Reply #111 on: July 05, 2015, 01:12:25 PM »
I hate to disagree andy but please don't suggest such an horrible mod. It's incredibly poorly coded and completely full of bugs (some examples, in italian, so you might need a translator: http://www.italiansmf.net/forum/index.php?topic=1206.msg7168#msg7168), no idea at all on how it got reinstated on the site.

As regards SP shoutbox... I have well over 140 mods and it works fine as it always did (except for the topic I linked, lol), and it's a lot better coded than any other shoutbox I have seen. Also, it can be modded to have more features :)

The issue might be people not using utf-8 characters and sticking to ISO in the first place, or a theme js clashing with the shoutbox itself, php version, prettyURLs and more... So we need more info I guess :/
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 Burke Knight

  • Sr. Member
  • ****
  • Posts: 394
  • Gender: Male
  • I tell it how I see it. Don't like it? Hit Alt+F4
    • BurkeKnight Enterprises
  • SMF Version: None
  • SP Version: None
  • Elkarte Version: None
Re: Shoutbox refreshing error
« Reply #112 on: July 05, 2015, 03:31:38 PM »
no idea at all on how it got reinstated on the site.

It got reinstated, due to SMF team's double standards + a little brown nosing.
The team would not reinstate mods of people, (Not just me, I found out) that removed them due to SMF's former attitude about saying support was preferred at the maker's site, yet they reinstated his mods, when he repeatedly cussed people out, and out flat said he'd not give support, especially for his free mods.

I for one, think the SMF team needs to start to stay true to their own policy and for all, not for whom they select.

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 refreshing error
« Reply #113 on: July 05, 2015, 09:04:16 PM »
I think I originally posted this back in 2011:
http://simpleportal.net/index.php?topic=10356.0

It is supposed to work correctly in the last release ( but maybe not the language problem). I have always had trouble with the refresh so cannot use it. I have about 20-30 mods. Its hard to accept as mods do not affect the php of the shoutbox.. So if it is javascript maybe it can be written to avoid clashes...
Everyone is a volunteer here so please try and make a small donation to keep the Simple Portal website running


Offline Elliott

  • Semi Newbie
  • *
  • Posts: 10
  • Gender: Male
  • Life is Life
  • SMF Version: 2.0.9
  • SP Version: 2.3.6
Re: Shoutbox refresh and page reload discrepancy
« Reply #114 on: July 30, 2015, 01:55:06 AM »
¿Could someone tell me how to Solve this problem?
 The shoutbox is not update!

« Last Edit: July 30, 2015, 09:29:11 AM by ♦ Ninja ZX-10RR ♦ »

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 #115 on: July 30, 2015, 09:28:45 AM »
No need to quote everyone who posted before you ;)

Open /Themes/default/PortalShoutbox.template.php

Code: (find) [Select]
<shout>
<id>', $shout['id'], '</id>
<author>', htmlspecialchars($shout['author']['link']), '</author>
<time>', htmlspecialchars($shout['time']), '</time>
<timeclean>', htmlspecialchars(strip_tags($shout['time'])), '</timeclean>
<delete>', !empty($shout['delete_link_js']) ? htmlspecialchars($shout['delete_link_js']) : 0, '</delete>
<content>', htmlspecialchars($shout['text']), '</content>
<is_me>', $shout['is_me'] ? 1 : 0, '</is_me>
</shout>';

Code: (replace with) [Select]
<shout>
<id>', $shout['id'], '</id>
<author>', $smcFunc['htmlspecialchars']($shout['author']['link']), '</author>
<time>', $smcFunc['htmlspecialchars']($shout['time']), '</time>
<timeclean>', $smcFunc['htmlspecialchars'](strip_tags($shout['time'])), '</timeclean>
<delete>', !empty($shout['delete_link_js']) ? $smcFunc['htmlspecialchars']($shout['delete_link_js']) : 0, '</delete>
<content>', $smcFunc['htmlspecialchars']($shout['text']), '</content>
<is_me>', $shout['is_me'] ? 1 : 0, '</is_me>
</shout>';

Regards
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 Elliott

  • Semi Newbie
  • *
  • Posts: 10
  • Gender: Male
  • Life is Life
  • SMF Version: 2.0.9
  • SP Version: 2.3.6
Re: Shoutbox refresh and page reload discrepancy
« Reply #116 on: July 30, 2015, 10:01:33 AM »
Well I made the changes but did not effect !!
  Anything else I can do ??

Offline [SiNaN]

  • Mr. SimplePortal
  • Developer
  • *
  • Posts: 6782
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
Re: Shoutbox refresh and page reload discrepancy
« Reply #117 on: July 30, 2015, 10:04:53 AM »
The issue may not be the same for everyone. I've seen other mods that affected our AJAX actions badly. It would be difficult to debug it unless we have the access. Can you provide us with a link to your forum and temporary test account details? You can send the information to me through the personal messaging system if you want me to take a look at it.
And slowly, you come to realize... It's all as it should be...

Offline [SiNaN]

  • Mr. SimplePortal
  • Developer
  • *
  • Posts: 6782
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
Re: Shoutbox refresh and page reload discrepancy
« Reply #118 on: July 30, 2015, 02:43:52 PM »
This is the error that I see on shoutbox update on your site:

Code: [Select]
<b>Fatal error</b>:  Function name must be a string in <b>/home/accounts/carding1/public_html/Sources/Load.php(2179) : eval()'d code</b> on line <b>271</b><br />
It's not very informative but it's probably because of the latest change you've made. You need to make this following change in addition to that one:

Themes/default/PortalShoutbox.template.php

Code: (Find) [Select]
global $context, $txt;
Code: (Replace) [Select]
global $context, $txt, $smcFunc;
And slowly, you come to realize... It's all as it should be...

Offline Elliott

  • Semi Newbie
  • *
  • Posts: 10
  • Gender: Male
  • Life is Life
  • SMF Version: 2.0.9
  • SP Version: 2.3.6
Re: Shoutbox refresh and page reload discrepancy
« Reply #119 on: July 30, 2015, 03:39:18 PM »
This is the error that I see on shoutbox update on your site:

Code: [Select]
<b>Fatal error</b>:  Function name must be a string in <b>/home/accounts/carding1/public_html/Sources/Load.php(2179) : eval()'d code</b> on line <b>271</b><br />
It's not very informative but it's probably because of the latest change you've made. You need to make this following change in addition to that one:

Themes/default/PortalShoutbox.template.php

Code: (Find) [Select]
global $context, $txt;
Code: (Replace) [Select]
global $context, $txt, $smcFunc;
Well I made the changes but did not effect !!