SimplePortal

Support => English Support => Topic started by: Alyen on September 26, 2009, 03:28:53 AM

Title: Shoutbox block erro
Post by: Alyen on September 26, 2009, 03:28:53 AM
I have a problem with the Shoutbox of the forum, where the block of Shoutbox this active ele forum will not be loading and leaves this msg error:

Code: [Select]
Fatal error: Maximum execution time of 30 seconds exceeded in /var/www/virtual/xpzone.net/htdocs/Sources/Subs.php on line 1870
Title: Re: Shoutbox block erro
Post by: Nathaniel on September 26, 2009, 04:24:37 AM
What is your 'Shouts to display' option set to? If its trying to display 2000 shouts, then that may be the problem.

Are you certain that the shoutbox is the problem? Enable the 'Display time taken to create every page' setting in your Admin panel under 'Features and Options' -> '    Layout and Options'. How long does the portal take to load without the shoutbox.

What was posted in the shoutbox? Does it work if you post the same thing in a normal SMF post?
Title: Re: Shoutbox block erro
Post by: Alyen on September 26, 2009, 06:57:49 AM
Display a 10 shouts.

in SP 2.3 / smf 1.1.10...
Title: Re: Shoutbox block erro
Post by: Alyen on September 29, 2009, 03:09:43 AM
No one knows this because the Shoutbox block has error?   :'(
Title: Re: Shoutbox block erro
Post by: Nathaniel on September 29, 2009, 04:35:42 AM
Could you answer my other questions? The more information you can provide about the issue the easier (and hopefully) the quickier it will be to resolve.

Are you certain that the shoutbox is the problem? Enable the 'Display time taken to create every page' setting in your Admin panel under 'Features and Options' -> 'Layout and Options'. How long does the portal take to load without the shoutbox?

What was posted in the shoutbox? Does it work if you post the same thing in a normal SMF post?
Title: Re: Shoutbox block erro
Post by: Alyen on September 30, 2009, 03:39:54 AM
Com the shoutbox the portal will not burden and then exit 500 error, but without shoutbox the portal burden in seconds.

In the shoutbox this the standard configuration.

And the rarity is q works normal asta x time and then blocks the smf
Title: Re: Shoutbox block erro
Post by: Nathaniel on September 30, 2009, 04:26:07 AM
What mods do you have that add BBC to your forum?

Edit: Moved to the English support area, this does not look like a bug. Most likely an issue with your mods or server config.
Title: Re: Shoutbox block erro
Post by: Alyen on September 30, 2009, 11:37:22 AM
my mod:

1.     Attachment Icon File      1.0      
2.    SimplePortal    2.3    
3.    Full Top 10 Stats    1.0    
4.    MCLegendII.2    3.0    
5.    VisualWarning    1.43    
6.    Post Prefix    1.1    
7.    Aeva ~ Auto-Embed Video & Audio    6.9.101    
8.    Social Bookmarks    2.0    
9.    Thank-O-Matic    1.2.5    
10.    Twitter Field    1.0    
11.    Users Online Today Mod    1.4.0    
12.    Active Members In Topic    1.8    
13.    AJAX Instant Quick Reply    1.0.2    
14.    Pretty URLs    0.9.3    
15.    Registered Links    1.0    
16.    SMF Sitemap    1.2.2    
17.    Twitter mod    1.1    
18.    Ultimate Profile    0.9    
19.    Member Color Link
Title: Re: Shoutbox block erro
Post by: Nathaniel on September 30, 2009, 08:30:15 PM
Try this edit to your 'sources/Subs-Portal.php' file. It disables the Aeva mod for the shoutbox.

Code: ("Find") [Select]
$online_color = !empty($row['member_group_color']) ? $row['member_group_color'] : $row['post_group_color'];
Code: ("Replace") [Select]
// Disable the aeva mod for the shoutbox.
$context['aeva_disable'] = true;
$online_color = !empty($row['member_group_color']) ? $row['member_group_color'] : $row['post_group_color'];
Title: Re: Shoutbox block erro
Post by: Alyen on October 01, 2009, 03:28:59 AM
I switched and now get this error:

Code: [Select]
Fatal error: Maximum execution time of 30 seconds exceeded in /var/www/virtual/xpzone.net/htdocs/Sources/Subs.php on line 1881
Title: Re: Shoutbox block erro
Post by: Nathaniel on October 14, 2009, 01:37:13 AM
Sorry about the wait on this issue.

Perform the edit below, if it stops the problem, then we'll know that there is something going wrong with the parse_bbc function. Its just a temporary check, it will stop the shouts from being parsed as bbc.

Code: ("Find(sources/PortalShoutbox.php)") [Select]
'text' => parse_bbc($row['body'], true, '', $bbc),
Code: ("Replace") [Select]
'text' => $row['body'],
Also, could you please attach your Subs.php file?
Title: Re: Shoutbox block erro
Post by: Alyen on October 14, 2009, 03:48:25 AM

Code: ("Find(sources/PortalShoutbox.php)") [Select]
'text' => parse_bbc($row['body'], true, '', $bbc),
Code: ("Replace") [Select]
'text' => $row['body'],

I do not have this line in my PortalShoutbox.php

Title: Re: Shoutbox block erro
Post by: Nathaniel on October 14, 2009, 04:42:57 AM
Whoops, sorry, that code is in the Subs-Portal.php file.
Title: Re: Shoutbox block erro
Post by: Novi on October 19, 2009, 07:53:46 AM
Hey there.

I actually had this same exact problem.  The shoutbox ended up taking my server down (10 httpd threads, all using 9-10% cpu).  I had to restart apache, and edit the settings file to put it in maint mode.

The error we were getting was in Subs.php.

Code: [Select]
PHP Fatal error:  Maximum execution time of 30 seconds exceeded in /public_html/Sources/Subs.php on line 1881
The line in question:

Code: [Select]
$message = substr($message, 0, $last_pos) . $data . substr($message, $pos + 1);
List of mods installed:

Code: [Select]
Pretty URLs 1.0RC
Global Headers Footers 1.4.1
DonationCoder.com SMF Search Enhancement Mod 1.8.2
Aeva ~ Auto-Embed Video & Audio 7.0
AutoKeywords 1.1
SimplePortal 2.3.1

The error seemed to happen after I tried posting an email address in the shoutbox (example@example.com).  At the time. SP 2.3 was installed.  I installed 2.3.1 in the hopes that it would fix it, but no such luck.

Any advice would be greatly appreciated.  I really love your guys' software!
Title: Re: Shoutbox block erro
Post by: Alyen on October 20, 2009, 03:39:17 AM
Forgive the delay in reply, my problem is solved, with the change in the file Subs-Portal.php no longer leaves no error.

Thanks Nathaniel by the aid !
Title: Re: Shoutbox block erro
Post by: Nathaniel on October 20, 2009, 04:24:18 AM
Forgive the delay in reply, my problem is solved, with the change in the file Subs-Portal.php no longer leaves no error.

Thanks Nathaniel by the aid !

That edit just confirms where the issue is, it doesn't actually solve the problem. ;) Your shouts will no longer be parse for bbc, which is undesirable. Undoing the edit will make them be parsed again.

Can you try uninstalling the AEVA mod temporarily? That is the only common link between the user who have had issues. So that could be the problem.
Title: Re: Shoutbox block erro
Post by: Novi on November 02, 2009, 06:29:54 AM
Forgive the delay in reply, my problem is solved, with the change in the file Subs-Portal.php no longer leaves no error.

Thanks Nathaniel by the aid !

That edit just confirms where the issue is, it doesn't actually solve the problem. ;) Your shouts will no longer be parse for bbc, which is undesirable. Undoing the edit will make them be parsed again.

Can you try uninstalling the AEVA mod temporarily? That is the only common link between the user who have had issues. So that could be the problem.

Sorry it took me so long to get back to you on this.  It took me awhile to get the gumption to enable the shoutbox again (and I had to deal with a nice DDoS as well).

Disabling Aeva did not fix the issue.  Enabling the shoutbox still takes my server down (now using lighttpd instead of apache).

The offending message still seems to be the email address.  does Aeva change the format of the actual post, or just when it displays the post ?
Title: Re: Shoutbox block erro
Post by: [SiNaN] on January 20, 2010, 12:29:28 PM
Try this fix:

http://simpleportal.net/index.php?topic=4126.msg26219#msg26219
Title: Re: Shoutbox block erro
Post by: Alyen on January 21, 2010, 03:38:50 AM
thks
Title: Re: Shoutbox block erro
Post by: [SiNaN] on January 21, 2010, 03:40:28 AM
So did that fix the issue?
Title: Re: Shoutbox block erro
Post by: Alyen on January 22, 2010, 04:24:28 AM
if you fix the problem but now I tro problem quando uma message someone sends out the message is not cardardo and nothing out.

out the message that you have to press F5.
Title: Re: Shoutbox block erro
Post by: [SiNaN] on January 22, 2010, 08:12:20 AM
You mean to be able to see the posted shout you need to refresh the page? Can you provide a link to your website along with a test account to check it?
SimplePortal 2.3.8 © 2008-2024, SimplePortal