[SOLVED] Unable to add new Menu Items without a white screen (500 error)

Started by SpeedHighway, November 05, 2013, 04:49:41 PM

Previous topic - Next topic

SpeedHighway

I have a relatively new forum running the simpleportal portal and a few none-menu affecting mods and I'm having an issue.

I've looked at every resource for adding a menu item into SMF and it simply does NOT work.  Everytime I add a button, the site will no longer display ANY page and I get a 500 error if I monitor it in Fiddler.  The error logs on the server don't show anything and syntactically I am doing everything correct.  I have to Undo my changes to the file and save to even restore the site to usefulness everytime I try.

It seems EXTREMELY straight forward, but it NEVER works.  I just get a white page everytime I add it to the subs.php.

'serverlist' => array(
'title' => 'Our Game Servers',
'href' => $scripturl . '?page=gameserverlist',
'show' => true
'sub_buttons' => array(
),
),


The end result looks like this, so you can see I didn't mess with anything prior or post.

'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(
),
),
'serverlist' => array(
'title' => 'Our Game Servers',
'href' => $scripturl . '?page=gameserverlist',
'show' => true
'sub_buttons' => array(
),
),
'help' => array(
'title' => $txt['help'],
'href' => $scripturl . '?action=help',
'show' => true,
'sub_buttons' => array(
),
),


Does anyone have any other ideas for me to try?

Arantor

That's because you're missing a comma at the end of the 'show' => true line.
Holder of controversial views, all of which my own.


SpeedHighway

Thanks, just needed another pair of eyes to look at it.  :)

Now, at least I'm no longer getting the server error.

However, it still doesn't "DO" anything.  (Nothing was added to the menu)

Arantor

Holder of controversial views, all of which my own.


SpeedHighway

No, but I missed an instruction in the guide.  Let me try it, then I'll update this if it fixes it.

EDIT:

I didn't empty the file cache.  This is completely resolved now.  Thanks again, Arantor. :)

Advertisement: