SimplePortal
Support => English Support => Topic started 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
8: Undefined index: block_info
File: /home/xxxxx/public_html/forum/Sources/SPortalAdmin1-1.php
Line: 382
8: Undefined index: sp-forum
File: /home/xxxxx/public_html/forum/Themes/default/Login.template.php (eval?)
Line: 329
8: Undefined index: DESCRIPTION
File: /home/xxxxx/public_html/forum/Sources/SPortal1-1.php
Line: 2222
8: Undefined index: LINK
File: /home/xxxxx/public_html/forum/Sources/SPortal1-1.php
Line: 2221
8: Undefined index: TITLE
File: /home/xxxxx/public_html/forum/Sources/SPortal1-1.php
Line: 2221
8: Undefined index: sp-forum
File: /home/xxxxx/public_html/forum/Themes/default/Login.template.php (eval?)
Line: 329
Any Ideas ?
-
BUMP BUMP :0
-
Is it 2.1 or 2.1.1?
-
2.1.1
-
Can you attach your SPortal1-1.php file and list all your installed mods?
-
Mods
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 ]
-
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?
-
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
-
Did you make any modifications to your files? I'm unable to reproduce those two errors on a fresh SP 2.1.1.
-
I have 14 other mods installed ,,,, plus some other little edits ...
-
Anything further on this ....
-
For 2 and 6 try this:
SPortal1-1.php
Find and remove:
// Why bother for wireless? Its not worth it. ;D
if(WIRELESS)
return;
Find:
//Why not? We need it anyway 8)
Replace:
// 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.
-
error 2 and 6 solved ...
Your request for error 1
8: Undefined index: selected_type
File: /home/xxxxx/public_html/forum/Sources/SPortalAdmin1-1.php
Line: 380
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" }
-
Now do the same with the attached file.
-
results
8: Undefined index: block_info
File: /home/xxxx/public_html/forum/Sources/SPortalAdmin1-1.php
Line: 386
8: Undefined index: selected_type
File: /home/xxxx/public_html/forum/Sources/SPortalAdmin1-1.php
Line: 382
Selected type: NULL
newBlock: bool(false)
block_info: NULL
-
At exactly which point you get this text?
Like:
Selected the type and clicked "Select". Then this appeared...
----
Now try with the attached file.
-
This time .. i dont get the white text ..
Just these in the error log
8: Undefined index: block_info
File: /home/xxxx/public_html/forum/Sources/SPortalAdmin1-1.php
Line: 382
2: Invalid argument supplied for foreach()
File: /home/xxxx/public_html/forum/Themes/default/languages/SPortalHelp.english-utf8.php (eval?)
Line: 942
-
hmmm, not quite there yet .... new error in logs
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
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
-
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 ..
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 :-[
-
Try this:
Find:
// 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:
//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;
-
Try this:
Find:
// 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:
//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
//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;
-
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.
-
This is for editing a block
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 ..
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
-
I juss realise .. the error is pointing to something in my costum theme
8: Undefined index: sp-forum
File: /home/xxxxx/public_html/forum/Themes/Anecdota117/index.template.php
Line: 331
In bold is on line 331
// 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>';
-
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.
-
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
-
You can provide me an admin and FTP account via pm. I'll check it tomorrow.
Sent VIA PM
-
Blue Dream, did you take a look at my site as yet ?
-
No, not yet unfortunately. I'll hopefully check it later today.
-
No, not yet unfortunately. I'll hopefully check it later today.
ok thanks
-
Applied a fix. Let me know if you will see errors again in your Error Log in the following days.
-
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 :-[
-
Ok, i think i see one change that you made 8)
the code i had
echo '<li', $current_action == 'forum' ? ' id="chosen"' : '', '><a href="', $scripturl, '?action=forum"><span>' , $txt['sp-forum'] , '</span></a></li>';
Your code
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
8: Undefined index: block_info
File: /home/xxxxx/public_html/forum/Sources/SPortalAdmin1-1.php
Line: 382
-
Yeah, I added a fallback for that string.
Hmmm, I'll check that today then.
-
Blue Dream, did you get a chance to check the other issue ?
-
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.
-
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
-
Well, of course if you are happy with 2.1.1. Can you copy the error message here you currently are having?
-
This is editing the Quick Stats Block
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