Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: ~DS~ on February 07, 2010, 11:44:00 PM

Title: Endless errors...
Post by: ~DS~ on February 07, 2010, 11:44:00 PM
I am getting many errors every sec.

8: Undefined index: active_button
8: Undefined index: herf
8: Undefined index: title

it's in index.template.php around Line: 686 and 687
Title: Re: Endless errors...
Post by: Matthew K. on February 08, 2010, 12:11:34 AM
First of all, you attached "index.php" instead of "index.template.php", you may want to check Subs.php to see if there is a button without those defined...
Title: Re: Endless errors...
Post by: ~DS~ on February 08, 2010, 12:19:39 AM
Quote from: Labradoodle-360 on February 08, 2010, 12:11:34 AM
First of all, you attached "index.php" instead of "index.template.php", you may want to check Subs.php to see if there is a button without those defined...
It's a index.template.php but was renamed when downloaded, so don't worry. I will rename them when I upload it. But someone told me i'm looking at the wrong place so indeed it might be subs.php. What should I am looking for in there? Sorry, I am no expert.
Title: Re: Endless errors...
Post by: Matthew K. on February 08, 2010, 12:52:07 AM
Somewhere inside this: // All the buttons we can possible want and then some, try pulling the final list of buttons from cache first.
if (($menu_buttons = cache_get_data('menu_buttons-' . implode('_', $user_info['groups']) . '-' . $user_info['language'], $cacheTime)) === null || time() - $cacheTime <= $modSettings['settings_updated'])
{
$buttons = array(
'home' => array(
'title' => $txt['home'],
'href' => $modSettings['sp_portal_mode'] == 3 && empty($context['disable_sp']) ? $modSettings['sp_standalone_url'] : $scripturl,
'show' => true,
'sub_buttons' => array(
),
'is_last' => $context['right_to_left'],
// 'target' => '_blank',
),
                        //Start SiteMenu
                        'sitemenu' => array(
                            'title' => $modSettings['smenu_main_tab_title'],
                            'href' => $modSettings['smenu_main_tab_url'],
                            'show' => !empty($modSettings['smenu_enabled']) && !empty($modSettings['smenu_main_tab_title']) && !empty($modSettings['smenu_main_tab_url']),
                                'sub_buttons' => array(
                                    'link1' => array(
                                        'title' => $modSettings['smenu_sub_tab_title0'],
                                        'href' => $modSettings['smenu_sub_tab_url0'],
                                        'show' => !empty($modSettings['smenu_sub_tab_enabled']) && !empty($modSettings['smenu_sub_tab_title0']) && !empty($modSettings['smenu_sub_tab_url0']),
                                        'target' => !empty($modSettings['smenu_enabled']) ? !empty($modSettings['smenu_enable_new_window']) : '_blank',
                                     ),
                                     'link2' => array(
                                        'title' => $modSettings['smenu_sub_tab_title1'],
                                        'href' => $modSettings['smenu_sub_tab_url1'],
                                        'show' => !empty($modSettings['smenu_sub_tab_enabled']) && !empty($modSettings['smenu_sub_tab_title1']) && !empty($modSettings['smenu_sub_tab_url1']),
                                        'target' => !empty($modSettings['smenu_enabled']) ? !empty($modSettings['smenu_enable_new_window']) : '_blank',
                                     ),
                                     'link3' => array(
                                         'title' => $modSettings['smenu_sub_tab_title2'],
                                         'href' => $modSettings['smenu_sub_tab_url2'],
                                         'show' => !empty($modSettings['smenu_sub_tab_enabled']) && !empty($modSettings['smenu_sub_tab_title2']) && !empty($modSettings['smenu_sub_tab_url2']),
                                         'target' => !empty($modSettings['smenu_enabled']) ? !empty($modSettings['smenu_enable_new_window']) : '_blank',
                                     ),
                                     'link4' => array(
                                         'title' => $modSettings['smenu_sub_tab_title3'],
                                         'href' => $modSettings['smenu_sub_tab_url3'],
                                         'show' => !empty($modSettings['smenu_sub_tab_enabled']) && !empty($modSettings['smenu_sub_tab_title3']) && !empty($modSettings['smenu_sub_tab_url3']),
                                         'target' => !empty($modSettings['smenu_enabled']) ? !empty($modSettings['smenu_enable_new_window']) : '_blank',
                                     ),
                                     'link5' => array(
                                         'title' => $modSettings['smenu_sub_tab_title4'],
                                         'href' => $modSettings['smenu_sub_tab_url4'],
                                         'show' => !empty($modSettings['smenu_sub_tab_enabled']) && !empty($modSettings['smenu_sub_tab_title4']) && !empty($modSettings['smenu_sub_tab_url4']),
                                         'target' => !empty($modSettings['smenu_enabled']) ? !empty($modSettings['smenu_enable_new_window']) : '_blank',
                                     ),
                                ),
                        ),
                        //End SiteMenu
'forum' => array(
'title' => empty($txt['sp-forum']) ? 'Forum' : $txt['sp-forum'],
'href' => $scripturl . ($modSettings['sp_portal_mode'] == 1 && empty($context['disable_sp']) ? '?action=forum' : ''),
'show' => in_array($modSettings['sp_portal_mode'], array(1, 3)) && empty($context['disable_sp']),
'sub_buttons' => array(
),
),
'help' => array(
'title' => $txt['help'],
'href' => $scripturl . '?action=help',
'show' => true,
'sub_buttons' => array(
),
),
'rules' => array(
'title' => !empty($modSettings['rules_tab_label']) ? $modSettings['rules_tab_label'] : $txt['rules'],
'href' => $scripturl . '?action=rules',
'show' => $user_info['is_guest'] ? !empty($modSettings['rules_enable_guest_access']) : !empty($modSettings['rules_enable_member_access']),
'sub_buttons' => array(
),
),
'projects' => array(
'title' => $txt['projects'],
'href' => $scripturl . '?action=projects',
'show' => $context['allow_project'],
'sub_buttons' => array(),
), 'search' => array(
'title' => $txt['search'],
'href' => $scripturl . '?action=search',
'show' => $context['allow_search'],
'sub_buttons' => array(
),
),
'teampage' => array(
'title' => (!empty($txt['team']) ? $txt['team'] : 'Team'),
'href' => $scripturl . '?action=teampage',
'show' => true,
'sub_buttons' => array(
),
),'paypal' => array(
'title' => $txt['paypal'],
'href' => $scripturl . '?action=paypal',
'show' => $context['allow_paypal'],
'sub_buttons' => array(
),
),
'admin' => array(
'title' => $txt['admin'],
'href' => $scripturl . '?action=admin',
'show' => $context['allow_admin'],
'sub_buttons' => array(
'featuresettings' => array(
'title' => $txt['modSettings_title'],
'href' => $scripturl . '?action=admin;area=featuresettings',
'show' => allowedTo('admin_forum'),
),
'packages' => array(
'title' => $txt['package'],
'href' => $scripturl . '?action=admin;area=packages',
'show' => allowedTo('admin_forum'),
),
'errorlog' => array(
'title' => $txt['errlog'],
'href' => $scripturl . '?action=admin;area=logs;sa=errorlog;desc',
'show' => allowedTo('admin_forum') && !empty($modSettings['enableErrorLogging']),
),
'permissions' => array(
'title' => $txt['edit_permissions'],
'href' => $scripturl . '?action=admin;area=permissions',
'show' => allowedTo('manage_permissions'),
),
),
),
'moderate' => array(
'title' => $txt['moderate'],
'href' => $scripturl . '?action=moderate',
'show' => $context['allow_moderation_center'],
'sub_buttons' => array(
'modlog' => array(
'title' => $txt['modlog_view'],
'href' => $scripturl . '?action=moderate;area=modlog',
'show' => !empty($modSettings['modlog_enabled']),
),
'poststopics' => array(
'title' => $txt['mc_unapproved_poststopics'],
'href' => $scripturl . '?action=moderate;area=postmod;sa=posts',
'show' => $modSettings['postmod_active'],
),
'attachments' => array(
'title' => $txt['mc_unapproved_attachments'],
'href' => $scripturl . '?action=moderate;area=attachmod;sa=attachments',
'show' => $modSettings['postmod_active'],
),
'reports' => array(
'title' => $txt['mc_reported_posts'],
'href' => $scripturl . '?action=moderate;area=reports',
'show' => true,
),
),
),
'profile' => array(
'title' => $txt['profile'],
'href' => $scripturl . '?action=profile',
'show' => $context['allow_edit_profile'],
'sub_buttons' => array(
'summary' => array(
'title' => $txt['summary'],
'href' => $scripturl . '?action=profile',
'show' => true,
),
'account' => array(
'title' => $txt['account'],
'href' => $scripturl . '?action=profile;area=account',
'show' => allowedTo(array('profile_identity_any', 'profile_identity_own', 'manage_membergroups')),
),
'profile' => array(
'title' => $txt['forumprofile'],
'href' => $scripturl . '?action=profile;area=forumprofile',
'show' => allowedTo(array('profile_extra_any', 'profile_extra_own')),
),
),
),
'pm' => array(
'title' => $txt['pm_short'],
'href' => $scripturl . '?action=pm',
'show' => $context['allow_pm'],
'sub_buttons' => array(
'pm_read' => array(
'title' => $txt['pm_menu_read'],
'href' => $scripturl . '?action=pm',
'show' => allowedTo('pm_read'),
),
'pm_send' => array(
'title' => $txt['pm_menu_send'],
'href' => $scripturl . '?action=pm;sa=send',
'show' => allowedTo('pm_send'),
),
),
),
'notepad' => array(
'title' => $txt['notepad'],
'href' => $scripturl . '?action=notepad',
'show' => $context['allow_notepad'],
'target' => $context['browser']['is_firefox'] ? '_new' : '_blank',
'sub_buttons' => array(
'notes_popup' => array(
'title' => $txt['notes_popup'],
'href' => 'javascript:void(0)" onclick="window.open(\'' . $scripturl . '?action=notepad\',\'PopupWindow\',\'height=600,width=750,scrollbars=1,resizable=1\');return false;',
'show' => $context['allow_notepad'],
),
),
),
'calendar' => array(
'title' => $txt['calendar'],
'href' => $scripturl . '?action=calendar',
'show' => $context['allow_calendar'],
'sub_buttons' => array(
'view' => array(
'title' => $txt['calendar_menu'],
'href' => $scripturl . '?action=calendar',
'show' => allowedTo('calendar_post'),
),
'post' => array(
'title' => $txt['calendar_post_event'],
'href' => $scripturl . '?action=calendar;sa=post',
'show' => allowedTo('calendar_post'),
),
),
),

// End Aeva Media changes
// Begin SMFShop code
// !!! Add subactions?
'shop' => array(
'title' => $txt['shop_menu_button'],
'href' => $scripturl . '?action=shop',
'show' => true,
),
// End SMFShop code

// Aeva Media changes
'media' => array(
'title' => $txt['aeva_gallery'] . (!allowedTo('aeva_access_unseen') || empty($user_info['aeva_unseen']) || $user_info['aeva_unseen'] == -1 ? '' : ' [<b>' . $user_info['aeva_unseen'] . '</b>]'),
'href' => $scripturl . '?action=media',
'show' => allowedTo('aeva_access'),
'sub_buttons' => !allowedTo('aeva_access_unseen') || empty($user_info['aeva_unseen']) || $user_info['aeva_unseen'] == -1 ? array() : array(
'aeva_home' => array(
'title' => $txt['aeva_home'],
'href' => $scripturl . '?action=media',
'show' => true,
),
'aeva_unseen' => array(
'title' => $txt['aeva_unseen'],
'href' => $scripturl . '?action=media;sa=unseen',
'show' => true,
),
),
),
// End Aeva Media changes
'mlist' => array(
'title' => $txt['members_title'],
'href' => $scripturl . '?action=mlist',
'show' => $context['allow_memberlist'],
'sub_buttons' => array(
'mlist_view' => array(
'title' => $txt['mlist_menu_view'],
'href' => $scripturl . '?action=mlist',
'show' => true,
),
'mlist_search' => array(
'title' => $txt['mlist_search'],
'href' => $scripturl . '?action=mlist;sa=search',
'show' => true,
),
),
), // SMFBlog button
'blog' => array(
'title' => $txt['blog'],
'href' => $scripturl . '?action=blog',
'show' => true,
'icon' => '',
),
// [Contact Page] button
'contact' => array(
'title' => $txt['smfcontact_contact'],
'href' => $scripturl . '?action=contact',
'show' => $context['allow_view_contact'],
'icon' => '',
),

'login' => array(
'title' => $txt['login'],
'href' => $scripturl . '?action=login',
'show' => $user_info['is_guest'],
'sub_buttons' => array(
),
),
'register' => array(
'title' => $txt['register'],
'href' => $scripturl . '?action=register',
'show' => $user_info['is_guest'],
'sub_buttons' => array(
),
'is_last' => !$context['right_to_left'],
),

              'logout2' => array(
'title' => $txt['logout'],
'href' => '#" onclick="doLoggedOutFacebookUser();"',
'show' => !$user_info['is_guest'] && !empty($modSettings['fb_app_facebook_log_out']),
'sub_buttons' => array(
),
'is_last' => !$context['right_to_left'],

),

'logout' => array(
'title' => $txt['logout'],
'href' => $scripturl . '?action=logout;%1$s=%2$s',
'show' => !$user_info['is_guest'] && empty($modSettings['fb_app_facebook_log_out']),
'sub_buttons' => array(
),
'is_last' => !$context['right_to_left'],
),

);


is most likely your issue.
Title: Re: Endless errors...
Post by: ~DS~ on February 11, 2010, 01:43:21 PM
I couldn't find anything wrong with the subs.php

I guess I need to be more specific.

This happened when uninstalling enofity, I believed.
I am on the default curve theme.
1. Team Page 3.5.1  Today at 02:22:35 PM [ Uninstall ] [ List Files ] [ Delete ]
2. SMF Project Tools 0.4002  Today at 05:47:32 AM [ Uninstall ] [ List Files ] [ Delete ]
3. Karma Description Mod 2.6.7  Today at 05:01:30 AM [ Uninstall ] [ List Files ] [ Delete ]
4. Google Member Map 2.0 2.0 beta 1 Today at 01:18:16 AM [ Uninstall ] [ List Files ] [ Delete ]
5. Stop Spammer 2.3.7  February 08, 2010, 06:26:45 AM [ Uninstall ] [ List Files ] [ Delete ]
6. RSS Feed Icon 1.1  February 07, 2010, 10:27:00 PM [ Uninstall ] [ List Files ] [ Delete ]
7. Book of Unknown Action 1.0  February 05, 2010, 03:51:34 AM [ Uninstall ] [ List Files ] [ Delete ]
8. Dynamic_Memberlist 2.0.2  February 04, 2010, 12:33:54 PM [ Uninstall ] [ List Files ] [ Delete ]
9. Member NotePad 1.0.0  February 04, 2010, 11:55:13 AM [ Uninstall ] [ List Files ] [ Delete ]
10. Aeva Media 1.0 Beta 5 February 04, 2010, 11:26:23 AM [ Uninstall ] [ List Files ] [ Delete ]
11. SMFBlog 2.0  January 31, 2010, 12:38:08 AM [ Uninstall ] [ List Files ] [ Delete ]
12. Menu Order 0.2.1  January 30, 2010, 12:08:24 AM [ Uninstall ] [ List Files ] [ Delete ]
13. OS & Browser Detection 1.4  January 29, 2010, 06:29:01 PM [ Uninstall ] [ List Files ] [ Delete ]
14. Topic Solved 1.1  January 26, 2010, 02:32:20 PM [ Uninstall ] [ List Files ] [ Delete ]
15. Hide ip stuff for users 1.0  January 24, 2010, 10:26:37 PM [ Uninstall ] [ List Files ] [ Delete ]
16. Restricted Debugging 1.0  January 24, 2010, 05:41:46 AM [ Uninstall ] [ List Files ] [ Delete ]
17. View Agreement Mod 0.1  January 24, 2010, 03:38:43 AM [ Uninstall ] [ List Files ] [ Delete ]
18. The Rules 1.3  January 24, 2010, 03:35:43 AM [ Uninstall ] [ List Files ] [ Delete ]
19. SMF Multi Quote 1.1  January 24, 2010, 02:37:29 AM [ Uninstall ] [ List Files ] [ Delete ]
20. ResizeImagesToFitScreen 0.1.5  January 21, 2010, 04:08:34 AM [ Uninstall ] [ List Files ] [ Delete ]
21. Site Menu 1.0  January 21, 2010, 12:26:46 AM [ Uninstall ] [ List Files ] [ Delete ]
22. Global Headers Footers 2.0  January 20, 2010, 02:43:06 PM [ Uninstall ] [ List Files ] [ Delete ]
23. Language Drop 1.0  January 20, 2010, 04:27:19 AM [ Uninstall ] [ List Files ] [ Delete ]
24. Hide or Display Registration Dates on Memberlist 1.1  January 18, 2010, 11:28:43 PM [ Uninstall ] [ List Files ] [ Delete ]
25. Yet Another Global Announcements Mod 2.5  January 18, 2010, 11:13:55 PM [ Uninstall ] [ List Files ] [ Delete ]
26. SimplePortal 2.3.1  January 18, 2010, 10:36:03 PM [ Uninstall ] [ List Files ] [ Delete ]
27. More Spiders 1.2  January 16, 2010, 02:17:05 PM [ Uninstall ] [ List Files ] [ Delete ]
28. Custom Copyright 1.2  January 15, 2010, 07:07:29 AM [ Uninstall ] [ List Files ] [ Delete ]
29. DisableTemplateEval 1.2  January 15, 2010, 05:50:32 AM [ Uninstall ] [ List Files ] [ Delete ]
30. SMF Ranks 1.1  January 15, 2010, 01:05:02 AM [ Uninstall ] [ List Files ] [ Delete ]
31. Contact Page 2.0  January 15, 2010, 12:55:48 AM [ Uninstall ] [ List Files ] [ Delete ]
32. Welcome Topic Mod 2.0.3  January 15, 2010, 12:27:41 AM [ Uninstall ] [ List Files ] [ Delete ]
33. Add Honey Pot to Track IP 1.1  January 15, 2010, 12:26:44 AM [ Uninstall ] [ List Files ] [ Delete ]
34. Spoiler Tag 0.7  January 15, 2010, 12:26:23 AM [ Uninstall ] [ List Files ] [ Delete ]
35. NiceTooltips 1.5  January 15, 2010, 12:25:27 AM [ Uninstall ] [ List Files ] [ Delete ]
36. Boilerplates for posts 2.0.2  January 15, 2010, 12:21:01 AM [ Uninstall ] [ List Files ] [ Delete ]
37. Last Users In 24 Hours 1.0  January 15, 2010, 12:19:37 AM [ Uninstall ] [ List Files ] [ Delete ]
38. Ad Managment 2.3.6  January 15, 2010, 12:17:49 AM [ Uninstall ] [ List Files ] [ Delete ]
39. SMFShop 3.1.5  January 15, 2010, 12:17:10 AM [ Uninstall ] [ List Files ] [ Delete ]
40. SMF for iPhone 1.0  January 14, 2010, 10:43:02 PM [ Uninstall ] [ List Files ] [ Delete ]
41. Avatar On Board RC2 2.1  January 14, 2010, 10:16:19 PM [ Uninstall ] [ List Files ] [ Delete ]
42. Page Management 1.4  January 14, 2010, 09:31:36 PM [ Uninstall ] [ List Files ] [ Delete ]
43. PaypalDonations 2.0  January 14, 2010, 09:07:49 PM [ Uninstall ] [ List Files ] [ Delete ]
44. PM Attachments 1.4  January 14, 2010, 09:05:52 PM [ Uninstall ] [ List Files ] [ Delete ]
45. Curve mobile mod 1.1.1  January 14, 2010, 08:51:45 PM [ Uninstall ] [ List Files ] [ Delete ]
46. SA FBConnect 0.1 RC1-2 January 14, 2010, 08:25:31 PM [ Uninstall ] [ List Files ] [ Delete ]
47. Post and Change as Alternate User 2.5  January 14, 2010, 07:12:18 PM [ Uninstall ] [ List Files ] [ Delete ]
48. MultiForum Mod 1.1  January 13, 2010, 11:42:37 PM [ Uninstall ] [ List Files ] [ Delete ]
49. Sortable Packages (and Installed Time) 1.1  January 13, 2010, 11:42:08 PM [ Uninstall ] [ List Files ] [ Delete ]


The errors are random in any url links:
http://thetwoworldsforum.com/index.php?action=admin;area=packages;sa=browse;4f7769b9757a35d5353e62068d76df47=d301a887e350;sort[mods]=time_desc;sort[avatars]=name_asc;sort[languages]=name_asc;sort[other]=name_asc
8: Undefined index: title
File: /home/user/public_html/forum/Themes/default/index.template.php
Line: 689


http://thetwoworldsforum.com/index.php?action=admin;area=packages;sa=browse;4f7769b9757a35d5353e62068d76df47=d301a887e350;sort[mods]=time_desc;sort[avatars]=name_asc;sort[languages]=name_asc;sort[other]=name_asc
8: Undefined index: href
File: /home/user/public_html/forum/Themes/default/index.template.php
Line: 688


http://thetwoworldsforum.com/index.php?action=admin;area=packages;sa=browse;4f7769b9757a35d5353e62068d76df47=d301a887e350;sort[mods]=time_desc;sort[avatars]=name_asc;sort[languages]=name_asc;sort[other]=name_asc
8: Undefined index: active_button
File: /home/user/public_html/forum/Themes/default/index.template.php
Line: 688


Not the error comes from the same url...

http://thetwoworldsforum.com/index.php?action=admin;area=logs;sa=errorlog;desc;start=30

http://thetwoworldsforum.com/index.php?action=admin;area=logs;sa=errorlog;desc;start=15

http://thetwoworldsforum.com/index.php?action=admin;area=logs;sa=errorlog;desc;d301a887e350=4f7769b9757a35d5353e62068d76df47

http://thetwoworldsforum.com/index.php?http://thetwoworldsforum.com/favicon.ico

I could go on...and it seem to come from the same source....index.template.php
I was told it was not but in the subs.php
Title: Re: Endless errors...
Post by: ~DS~ on February 12, 2010, 12:56:40 AM
My issue had been resolved. The errors was cause by the menu order mod. I uninstalled it. Shame it is a great mod.

http://custom.simplemachines.org/mods/index.php?mod=2348

My error logs is clean.