SimplePortal

Support => English Support => Topic started by: Brian on October 11, 2010, 04:43:58 AM

Title: Errors with all members online
Post by: Brian on October 11, 2010, 04:43:58 AM
Hi, could someone offer some help as to where to start looking for the following errors:

http://xxxxxxxxxx.xx.xx/index.php?action=portal;sa=shoutbox;shoutbox_id=4;time=1286784379;xml8: Undefined index: cb_default_6File: /home/xxxxxx/public_html/Sources/Subs.php
Line: 4084

http://xxxxxxxxxx.xx.xx/index.php?action=portal;sa=shoutbox;shoutbox_id=4;time=1286784379;xml8: Undefined index: cb_default_5File: /home/xxxxxx/public_html/Sources/Subs.php
Line: 4057

http://xxxxxxxxxx.xx.xx/index.php?action=portal;sa=shoutbox;shoutbox_id=4;time=1286784379;xml8: Undefined index: cb_default_4File: /home/xxxxxx/public_html/Sources/Subs.php
Line: 4030

http://xxxxxxxxxx.xx.xx/index.php?action=portal;sa=shoutbox;shoutbox_id=4;time=1286784379;xml8: Undefined index: arcadeFile: /home/xxxxxx/public_html/Sources/Subs.php
Line: 3942


All members online keep showing the same errors. Every morning I clear about 1600+ errors, all the same as the above 4

Running SMF RC3
Simple Portal 2.3.2
Title: Re: Errors with all members online
Post by: 130860 on October 11, 2010, 10:34:00 AM
it looks like those errors are related with other mods, can you attach your /Sources/Subs.php
Title: Re: Errors with all members online
Post by: Brian on October 12, 2010, 04:09:54 AM
Hi, I have the following mods, some installed, some not.


1.   Info Center Permissions    1.0     [ Uninstall ] [ List Files ] [ Delete ]
2.   Custom Greeting Mod    1.1.1     [ Uninstall ] [ List Files ] [ Delete ]
3.   PM Readed    1.1   [ Install Mod ] [ List Files ] [ Delete ]
4.   Effectively Remove SMF Logo    1.1   [ Install Mod ] [ List Files ] [ Delete ]
5.   Premiumbeat Flash MP3 Player For SMF Forums    1.6   [ Install Mod ] [ List Files ] [ Delete ]
6.   6 Custom buttons / tabs with Sub Menus (4)    0.5     [ Uninstall ] [ List Files ] [ Delete ]
7.   Do not enter    1.1   [ Install Mod ] [ List Files ] [ Delete ]
8.   Birthday Posts    0.12.1 Beta     [ Uninstall ] [ List Files ] [ Delete ]
9.   Most Popular Topic Today    2.0   [ Install Mod ] [ List Files ] [ Delete ]
10.   Welcome Topic Mod    2.1     [ Uninstall ] [ List Files ] [ Delete ]
11.   SimplePortal    2.3.2     [ Uninstall ] [ List Files ] [ Delete ]
12.   Remove Help From Menu    1.0     [ Uninstall ] [ List Files ] [ Delete ]
13.   Random Banner (Above Forum)    0.6   [ Install Mod ] [ List Files ] [ Delete ]
14.   SMF Arcade    2.5 RC1     [ Uninstall ] [ List Files ] [ Delete ]
15.   Header Rotator    2.1   [ Install Mod ] [ List Files ] [ Delete ]
16.   Post History    0.3     [ Uninstall ] [ List Files ] [ Delete ]
17.   Watermark.light    1.5     [ Uninstall ] [ List Files ] [ Delete ]
18.   Users Online Today    1.5.6     [ Uninstall ] [ List Files ] [ Delete ]
19.   Zuper Admin RC1    1.5   [ Install Mod ] [ List Files ] [ Delete ]
20.   SMF Gallery Lite    3.0.1   [ Install Mod ] [ List Files ] [ Delete ]
21.   Disable Right Click    4.0     [ Uninstall ] [ List Files ] [ Delete ]
22.   Ad Managment    2.3.6.2     [ Uninstall ] [ List Files ] [ Delete ]
23.   Join date and Location in Posts    1.1     [ Uninstall ] [ List Files ] [ Delete ]
24.   Login Logger    1.0     [ Uninstall ] [ List Files ] [ Delete ]
25.   More Spiders    1.2     [ Uninstall ] [ List Files ] [ Delete ]
Title: Re: Errors with all members online
Post by: AngelinaBelle on October 12, 2010, 09:34:49 AM
The problems *SEEM* to be do to with stuff related to SMF Arcade and 6 custom buttons.
In your Subs.php file, the line numbers are all in function setupMenuContext. These are $txt entries buttons for those 2 mods, and have not being initialized.
I assume that the URL in question is actually
Code: [Select]
http://xxxxxxxxxx.xx.xx/index.php?action=portal;sa=shoutbox;shoutbox_id=4;time=1286784379;xmlThis is the URL used by the shoutbox refresh (you can see it in portal.js).

I have not traced through these two mods to find out why, for this URL, their txt strings don't get loaded, where the txt strings for other buttons are loaded. I also don't understand why setupMenuContext runs at all for this URL.
 
I will ask why setupMenuContext is run for a purely XML URL.
 
---------------
Please
* find out where/when/why those $txt strings for your 2 mods get loaded.
* Tell us if you are running SimplePortal in standalone, frontpage, or integration mode.

Thanks
 
 
Title: Re: Errors with all members online
Post by: Brian on October 12, 2010, 11:16:24 AM
The problems *SEEM* to be do to with stuff related to SMF Arcade and 6 custom buttons.
In your Subs.php file, the line numbers are all in function setupMenuContext. These are $txt entries buttons for those 2 mods, and have not being initialized.
I assume that the URL in question is actually
Code: [Select]
http://xxxxxxxxxx.xx.xx/index.php?action=portal;sa=shoutbox;shoutbox_id=4;time=1286784379;xmlThis is the URL used by the shoutbox refresh (you can see it in portal.js).

I have not traced through these two mods to find out why, for this URL, their txt strings don't get loaded, where the txt strings for other buttons are loaded. I also don't understand why setupMenuContext runs at all for this URL.
 
I will ask why setupMenuContext is run for a purely XML URL.
 
---------------
Please
* find out where/when/why those $txt strings for your 2 mods get loaded.
* Tell us if you are running SimplePortal in standalone, frontpage, or integration mode.

Thanks

have no clue
Simple Portal is running in frontpage now, but errors were there when running in integration mode while I was still setting up. I had installed "custom top menu_1.3.zip", but that did not work properly, , so I uninstalled and deleted it. I then Installed 6 Custom buttons / tabs with Sub Menus (4)    0.5
Title: Re: Errors with all members online
Post by: AngelinaBelle on October 12, 2010, 12:34:25 PM
To find out where, when, how, and why those $txt strings get loaded, you could either walk through the code yourself, or you could ask the mods' author.  I believe that 6bc is small and straightforward, and that the author is still a SimplePortal user, so that might be a good one to start with.
 
You might let him know you are asking for this information to solve an interoperability issue with SimplePortal. If he has not run into this problem, maybe it is triggered by something else. You might find it instructional to make a test install of SMF with only 2 mods: SimplePortal and 6 custom menues, and then enable a shoutbox blockto see if you still have the problem.
 
Thanks for the info on portal mode. So there is only one place where that function setupMenuContext should be called -- when the theme is loaded.  But since XML output does not use a theme...  Maybe the devs can shed some light on this one.
 
Title: Re: Errors with all members online
Post by: Brian on October 13, 2010, 12:48:21 PM
After checking around and uninstalling and reinstalling some of the mods I get the following errors.

http://www.xxxxxxxxxx.xx.xx/index.php? action=portal;sa=shoutbox;shoutbox_id=4;time=1286987706;xml8: Undefined index: cb_default_6File: /home/ctfish/public_html/Sources/Subs.php
Line: 4259
   
http://www.xxxxxxxxxx.xx.xx/index.php?action=portal;sa=shoutbox;shoutbox_id=4;time=1286987706;xml8: Undefined index: cb_default_5File: /home/ctfish/public_html/Sources/Subs.php
Line: 4232
   
http://www.xxxxxxxxxx.xx.xx/index.php?action=portal;sa=shoutbox;shoutbox_id=4;time=1286987706;xml8: Undefined index: cb_default_4File: /home/ctfish/public_html/Sources/Subs.php
Line: 4205
   
http://capetownfishing.co.za/index.php?action=portal;sa=shoutbox;shoutbox_id=4;time=1286987706;xml8: Undefined index: cb_default_6File: /home/ctfish/public_html/Sources/Subs.php
Line: 4089
   
http://www.xxxxxxxxxx.xx.xx/index.php?action=portal;sa=shoutbox;shoutbox_id=4;time=1286987706;xml8: Undefined index: cb_default_5File: /home/ctfish/public_html/Sources/Subs.php
Line: 4062
   
http://www.xxxxxxxxxx.xx.xx/index.php?action=portal;sa=shoutbox;shoutbox_id=4;time=1286987706;xml8: Undefined index: cb_default_4File: /home/ctfish/public_html/Sources/Subs.php
Line: 4035
 

Now I see that a lot of these errors happend while I was not at my pc. After changing one or two settings and checking my error log, it seems that the shoutbox for Simple Portal is the problem, not the others. Whenever I do a refresh these errors occur. I have disabled auto refresh for now and would really appreciate some help. I still get these errors when I do a manual refresh.

Attached is copy of subs.php

Thanks
Title: Re: Errors with all members online
Post by: AngelinaBelle on October 13, 2010, 01:26:31 PM
Yes.  This error occurs during the shoutbox refresh call.
This should not be happening, though.
 
I can think of two different approaches to fixing it:
1) Get the mods to populate their $txt strings even during a shoutbox refresh
2) Stop doing a setupMenuContext for a shoutbox refresh (since it isn't used in the XML output)
 
Those errors are actually not harming anything, so you are safe to run your shoutbox, if you wish.
I've asked for a little help from the developers.  When they have a chance to look into it and puzzle through it, I think we'll learn which is the best approach to take. I don't know how long that will take.
Title: Re: Errors with all members online
Post by: ccbtimewiz on October 14, 2010, 01:08:14 AM
I don't know why SMF bothers with reporting those trivial errors anyways.

You could disable the error log if so be it.
Title: Re: Errors with all members online
Post by: Brian on October 14, 2010, 03:00:21 AM
Yes.  This error occurs during the shoutbox refresh call.
This should not be happening, though.
 
I can think of two different approaches to fixing it:
1) Get the mods to populate their $txt strings even during a shoutbox refresh
2) Stop doing a setupMenuContext for a shoutbox refresh (since it isn't used in the XML output)
 
Those errors are actually not harming anything, so you are safe to run your shoutbox, if you wish.
I've asked for a little help from the developers.
  When they have a chance to look into it and puzzle through it, I think we'll learn which is the best approach to take. I don't know how long that will take.

Thanks, appreciate your help. Would prefer the developers look into it.
I don't know why SMF bothers with reporting those trivial errors anyways.

You could disable the error log if so be it.

I am  very sure the developers put it there for a reason. (like a spare tyre on a motor vehicle)
From my side, tells me at a glance if there are any errors on forum
Title: Re: Errors with all members online
Post by: AngelinaBelle on October 14, 2010, 07:03:35 AM
Sooner or later, the devs will have a chance to look at it.
 
In the meantime, these errors will not cause any harm.
Title: Re: Errors with all members online
Post by: Brian on October 14, 2010, 07:39:17 AM
Thanks for all your help
Title: Re: Errors with all members online
Post by: 130860 on October 14, 2010, 05:34:50 PM
I don't know why SMF bothers with reporting those trivial errors anyways.

You could disable the error log if so be it.


those errors actually are great when you have another language besides English.
SimplePortal 2.3.8 © 2008-2024, SimplePortal