SimplePortal

Support => English Support => Topic started by: Aw06 on January 31, 2009, 08:51:34 PM

Title: My error Logs
Post by: Aw06 on January 31, 2009, 08:51:34 PM
seeing these in my error logs ...

Using SP 2.1 with SMF 1.1.7
Quote
8: Undefined index: block_info
File: /home/xxxxx/public_html/forum/Sources/SPortalAdmin1-1.php
Line: 382

Quote
8: Undefined index: sp-forum
File: /home/xxxxx/public_html/forum/Themes/default/Login.template.php (eval?)
Line: 329

Quote
8: Undefined index: DESCRIPTION
File: /home/xxxxx/public_html/forum/Sources/SPortal1-1.php
Line: 2222

Quote
8: Undefined index: LINK
File: /home/xxxxx/public_html/forum/Sources/SPortal1-1.php
Line: 2221

Quote
8: Undefined index: TITLE
File: /home/xxxxx/public_html/forum/Sources/SPortal1-1.php
Line: 2221

Quote
8: Undefined index: sp-forum
File: /home/xxxxx/public_html/forum/Themes/default/Login.template.php (eval?)
Line: 329

Any Ideas ?
Title: Re: My error Logs
Post by: Aw06 on February 03, 2009, 07:10:09 AM
BUMP BUMP  :0
Title: Re: My error Logs
Post by: [SiNaN] on February 03, 2009, 07:14:32 AM
Is it 2.1 or 2.1.1?
Title: Re: My error Logs
Post by: Aw06 on February 03, 2009, 08:20:03 AM
2.1.1
Title: Re: My error Logs
Post by: [SiNaN] on February 03, 2009, 08:33:11 AM
Can you attach your SPortal1-1.php file and list all your installed mods?
Title: Re: My error Logs
Post by: Aw06 on February 03, 2009, 10:06:53 AM
Mods
Quote
Mod Name     Version     
1.    View Only Boards    1.1    [ Uninstall ]
2.    SMF Trader System    1.2    [ Uninstall ]
3.    Auto Embed Video Clips    2.1.5    [ Uninstall ]
4.    Titled Links    1.1c    [ Uninstall ]
5.    Karma Buttons    1.1    [ Uninstall ]
6.    RSS Feed Icon    1.1    [ Uninstall ]
7.    MCLegendII.2    2.0    [ Uninstall ]
8.    Simple ImageShack    2.0.3    [ Uninstall ]
9.    RemoveQuotedImages    1.0    [ Uninstall ]
10.    Wrap Text Around Image    1.0    [ Uninstall ]
11.    Invite    1.14    [ Uninstall ]
12.    Remove Post Modified Time    1.2    [ Uninstall ]
13.    Eliana Mod    2.0    [ Uninstall ]
14.    Users Online Today Mod    1.4.0    [ Uninstall ]
15.    SimplePortal    2.1.1    [ Uninstall ]
Title: Re: My error Logs
Post by: [SiNaN] on February 03, 2009, 10:41:01 AM
Attached file should solve errors 2,3 and 4.

For error 1, can you attach your SPortalAdmin1-1.php file?

For error 2 and 6; does it appear all the time?
Title: Re: My error Logs
Post by: Aw06 on February 03, 2009, 10:50:43 AM
Attached file should solve errors 2,3 and 4.

For error 1, can you attach your SPortalAdmin1-1.php file?

For error 2 and 6; does it appear all the time?

yes, the appear daily ... seems whenever i eidt a block, i get that error

attched SPortalAdmin1-1.php
Title: Re: My error Logs
Post by: [SiNaN] on February 04, 2009, 03:39:27 AM
Did you make any modifications to your files? I'm unable to reproduce those two errors on a fresh SP 2.1.1.
Title: Re: My error Logs
Post by: Aw06 on February 04, 2009, 05:46:12 AM
I have 14 other mods installed ,,,, plus some other little edits ...
Title: Re: My error Logs
Post by: Aw06 on February 06, 2009, 02:02:20 AM
Anything further on this ....
Title: Re: My error Logs
Post by: [SiNaN] on February 06, 2009, 02:10:29 AM
For 2 and 6 try this:

SPortal1-1.php

Find and remove:

Code: [Select]
// Why bother for wireless? Its not worth it. ;D
if(WIRELESS)
return;

Find:

Code: [Select]
//Why not? We need it anyway 8)
Replace:

Code: [Select]
// Why bother for wireless? Its not worth it. ;D
if(WIRELESS)
return;

//Why not? We need it anyway 8)
if(loadLanguage('SPortal', '', false) === false)
loadLanguage('SPortal', 'english', false);

For 1:

Take a back-up of your original file and replace it with the attached. Then edit a block. At some point, you should see a white screen with only a few lines of text. Copy the text here and put your original file back.

And please understand that it is really hard for us to identify such an issue when we cannot reproduce it in any way, and do not have much debugging options.
Title: Re: My error Logs
Post by: Aw06 on February 06, 2009, 02:24:04 AM
error 2 and 6 solved ...


Your request for error 1

Code: [Select]
8: Undefined index: selected_type
File: /home/xxxxx/public_html/forum/Sources/SPortalAdmin1-1.php
Line: 380

Code: [Select]
Selected type: NULL
newBlock: bool(false)
block_info: array(13) { ["id"]=> string(2) "24" ["label"]=> string(3) "Ads" ["type"]=> string(6) "sp_bbc" ["type_text"]=> string(9) "BBC Block" ["content"]=> string(349) "[move][color=red][b]Advertise Here .. Reserve Your Banner Spot now !![/b][/color][/move] [center][url=http://badnerd.shopinja.com][img]http://www.shopinja.com/images/adtop/BNlogo.gif[/img][/url][/center] [center][url=http://shopinja.com/forum/index.php?topic=325.msg1044#msg1044][img]http://shopinja.com/images/Shop164.gif[/img][/url][/center]" ["parameters"]=> string(9) "0,0,0,0,0" ["column"]=> string(1) "4" ["row"]=> string(2) "12" ["state"]=> int(1) ["force_view"]=> string(1) "1" ["allowed_groups"]=> string(0) "" ["permission_type"]=> string(1) "2" ["display"]=> string(309) "portal, forum, recent, unread, unreadreplies, profile, pm, calendar, login, register, post, stats, search, mlist, help, who, 4, 29, 23, 16, 2, 51, 31, 64, 62, 50, 47, 57, 17, 24, 55, 22, 15, 13, 48, 32, 35, 33, 26, 3, 53, 52, 58, 34, 25, 21, 59, 14, 20, 5, 6, 49, 56, 60, 36, 37, 30, 1, 63, 42, 41, 40, 39, 38" }
Title: Re: My error Logs
Post by: [SiNaN] on February 06, 2009, 02:53:30 AM
Now do the same with the attached file.
Title: Re: My error Logs
Post by: Aw06 on February 06, 2009, 03:06:11 AM
results

Code: [Select]
8: Undefined index: block_info
File: /home/xxxx/public_html/forum/Sources/SPortalAdmin1-1.php
Line: 386

Code: [Select]
8: Undefined index: selected_type
File: /home/xxxx/public_html/forum/Sources/SPortalAdmin1-1.php
Line: 382

Code: [Select]
Selected type: NULL
newBlock: bool(false)
block_info: NULL
Title: Re: My error Logs
Post by: [SiNaN] on February 06, 2009, 03:18:15 AM
At exactly which point you get this text?

Like:


Quote
Selected the type and clicked "Select". Then this appeared...

----

Now try with the attached file.
Title: Re: My error Logs
Post by: Aw06 on February 06, 2009, 03:29:38 AM
This time .. i dont get the white text ..

Just these in the error log
Code: [Select]
8: Undefined index: block_info
File: /home/xxxx/public_html/forum/Sources/SPortalAdmin1-1.php
Line: 382

Code: [Select]
2: Invalid argument supplied for foreach()
File: /home/xxxx/public_html/forum/Themes/default/languages/SPortalHelp.english-utf8.php (eval?)
Line: 942
Title: Re: My error Logs
Post by: Aw06 on February 06, 2009, 07:15:10 AM
hmmm, not quite there yet .... new error in logs

Code: [Select]
http://shopinja.com/forum/index.php?action=.xml;board=5;type=rss
 Only show the errors with the same message
8: Undefined index: sp-forum
File: /home/xxxxxx/public_html/forum/Themes/default/Login.template.php (eval?)
Line: 331

Code: [Select]
http://shopinja.com/forum/index.php?topic=288.msg895
Only show the errors with the same message
8: Undefined index: sp-forum
File: /home/xxxx/public_html/forum/Themes/default/Login.template.php (eval?)
Line: 331
Title: Re: My error Logs
Post by: Aw06 on February 12, 2009, 07:13:54 AM
I can live with the error i get when i edit some blocks as i dont do that often ... but these errors are driving me nuts as they are triggerd often ..

Code: [Select]
http://shopinja.com/forum/index.php?topic=44.msg46
Apply Filter: Only show the errors with the same message
8: Undefined index: sp-forum
File: /home/xxxxx/public_html/forum/Themes/default/Login.template.php (eval?)
Line: 331

Please Help  :-[
Title: Re: My error Logs
Post by: [SiNaN] on February 12, 2009, 07:28:12 AM
Try this:

Find:

Code: [Select]
   // Why bother for wireless? Its not worth it. ;D
   if(WIRELESS)
      return;

   //Why not? We need it anyway 8)
   if(loadLanguage('SPortal', '', false) === false)
      loadLanguage('SPortal', 'english', false);

Replace:

Code: [Select]
   //Why not? We need it anyway 8)
   if(loadLanguage('SPortal', '', false) === false)
      loadLanguage('SPortal', 'english', false);

   // Why bother for wireless? Its not worth it. ;D
   if(WIRELESS)
      return;
Title: Re: My error Logs
Post by: Aw06 on February 12, 2009, 08:30:26 AM
Try this:

Find:

Code: [Select]
   // Why bother for wireless? Its not worth it. ;D
   if(WIRELESS)
      return;

   //Why not? We need it anyway 8)
   if(loadLanguage('SPortal', '', false) === false)
      loadLanguage('SPortal', 'english', false);

Replace:

Code: [Select]
   //Why not? We need it anyway 8)
   if(loadLanguage('SPortal', '', false) === false)
      loadLanguage('SPortal', 'english', false);

   // Why bother for wireless? Its not worth it. ;D
   if(WIRELESS)
      return;

Thats exactly what i have there already

Code: [Select]
//Why not? We need it anyway 8)
if(loadLanguage('SPortal', '', false) === false)
loadLanguage('SPortal', 'english', false);

// Why bother for wireless? Its not worth it. ;D
if(WIRELESS)
return;
Title: Re: My error Logs
Post by: [SiNaN] on February 12, 2009, 08:41:26 AM
Try disabling template eval using the instructions here:

http://www.simplemachines.org/community/index.php?topic=290186.0

Then check error logs agin. You will see the exact line giving error.

And please note that the problem is, I *never* seen this error occuring with me.
Title: Re: My error Logs
Post by: Aw06 on February 12, 2009, 08:58:49 AM
This is for editing a block

Code: [Select]
8: Undefined index: block_info
File: /home/xxxxx/public_html/forum/Sources/SPortalAdmin1-1.php
Line: 382

I dont see any differece in errors since i disable eval ..

Code: [Select]
8: Undefined index: sp-forum
File: /home/xxxxxx/public_html/forum/Themes/Anecdota117/index.template.php
Line: 331

Maybe i have not disabled it correctly :|

BlueDream ... can we arrage something .. I'll set up an admin account for you and give you access to my cpanel as well so you can help me fix things... PM me if your willing
Title: Re: My error Logs
Post by: Aw06 on February 12, 2009, 03:34:26 PM
I juss realise .. the error is pointing to something in my costum theme

Code: [Select]
8: Undefined index: sp-forum
File: /home/xxxxx/public_html/forum/Themes/Anecdota117/index.template.php
Line: 331

In bold is on line 331

Quote
   // Show the [home] button.
   echo '<li', $current_action == 'home' ? ' id="chosen"' : '', '><a href="', $scripturl, '"><span>' , $txt[103] , '</span></a></li>';

   // Show the [forum] button.
   echo '<li', $current_action == 'forum' ? ' id="chosen"' : '', '><a href="', $scripturl, '?action=forum"><span>' , $txt['sp-forum'] , '</span></a></li>';

   // Show the [help] button.
   echo '<li', $current_action == 'help' ? ' id="chosen"' : '', '><a href="', $scripturl, '?action=help"><span>' , $txt[119] , '</span></a></li>';
Title: Re: My error Logs
Post by: [SiNaN] on February 12, 2009, 04:45:27 PM
Yeah, disabling template eval will give you the exact file and line.

You can provide me an admin and FTP account via pm. I'll check it tomorrow.
Title: Re: My error Logs
Post by: Aw06 on February 12, 2009, 04:48:57 PM
Yeah, disabling template eval will give you the exact file and line.

You can provide me an admin and FTP account via pm. I'll check it tomorrow.

OK kool, but for now it seems the error is trigged each time the forum button is clicked. i posted the code on the particular line
Title: Re: My error Logs
Post by: Aw06 on February 18, 2009, 09:24:19 AM
You can provide me an admin and FTP account via pm. I'll check it tomorrow.

Sent VIA PM
Title: Re: My error Logs
Post by: Aw06 on February 21, 2009, 10:37:11 AM
Blue Dream, did you take a look at my site as yet ?
Title: Re: My error Logs
Post by: [SiNaN] on February 21, 2009, 10:47:19 AM
No, not yet unfortunately. I'll hopefully check it later today.
Title: Re: My error Logs
Post by: Aw06 on February 21, 2009, 11:22:28 AM
No, not yet unfortunately. I'll hopefully check it later today.

ok thanks
Title: Re: My error Logs
Post by: [SiNaN] on February 21, 2009, 01:07:25 PM
Applied a fix. Let me know if you will see errors again in your Error Log in the following days.
Title: Re: My error Logs
Post by: Aw06 on February 21, 2009, 01:34:10 PM
Applied a fix. Let me know if you will see errors again in your Error Log in the following days.

Ok will do  :applause:

can you tell me what you changed if  you dont mind  :-[
Title: Re: My error Logs
Post by: Aw06 on February 21, 2009, 08:20:20 PM
Ok, i think i see one change that you made  8)

the code i had
Quote
echo '<li', $current_action == 'forum' ? ' id="chosen"' : '', '><a href="', $scripturl, '?action=forum"><span>' , $txt['sp-forum'] , '</span></a></li>';

Your code
Quote
echo '<li', $current_action == 'forum' ? ' id="chosen"' : '', '><a href="', $scripturl, '?action=forum"><span>' , !empty($txt['sp-forum']) ? $txt['sp-forum'] : 'Forum' , '</span></a></li>';

So far the error logs are clean, i still get errors when i edit some blocks

Quote
8: Undefined index: block_info
File: /home/xxxxx/public_html/forum/Sources/SPortalAdmin1-1.php
Line: 382
Title: Re: My error Logs
Post by: [SiNaN] on February 22, 2009, 03:39:06 AM
Yeah, I added a fallback for that string.

Hmmm, I'll check that today then.
Title: Re: My error Logs
Post by: Aw06 on February 28, 2009, 09:40:12 AM
Blue Dream, did you get a chance to check the other issue ?
Title: Re: My error Logs
Post by: [SiNaN] on April 08, 2009, 01:31:04 AM
I'm sorry Aw06, I never had chance to check this issue. Upgrading to 2.2 will solve all these issues. Feel free to ask if you'll need any help about that.
Title: Re: My error Logs
Post by: Aw06 on April 08, 2009, 10:30:31 AM
well everthing is stable, i have just about everthing fixed, excpect i still get error when editing some blocks ....

not qute ready for 2.2  :O
Title: Re: My error Logs
Post by: [SiNaN] on April 09, 2009, 03:53:38 AM
Well, of course if you are happy with 2.1.1. Can you copy the error message here you currently are having?
Title: Re: My error Logs
Post by: Aw06 on April 09, 2009, 01:24:38 PM
This is editing the Quick Stats Block

Quote
http://xxxxxxxx/forum/index.php?action=spadmin;sa=blockedit

8: Undefined index: block_info
File: /home/xxxxxxx/public_html/forum/Sources/SPortalAdmin1-1.php
Line: 382
SimplePortal 2.3.8 © 2008-2024, SimplePortal