Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: skyhintack on December 22, 2008, 10:20:27 PM

Title: PHP Code in Header
Post by: skyhintack on December 22, 2008, 10:20:27 PM
After installing some modifications, the php code of about 3 of them seem to display in the header throughout my forum. When in maintenance mode, it doesn't display for the logged in user, only for guests, but out of maintenance mode, it shows for everyone. On my previous site (before a fresh install), this didn't occur. No updates to any of the modifications took place either. This is a fresh install after my other site crashed.

My Site (http://www.techtroubles.net23.net/)

I'm getting an error in my log on line 3886 of Subs.php

The line is:

'title' => $txt['downloads_menu'],

Which is part of:

// [Downloads] button
'downloads' => array(
'title' => $txt['downloads_menu'],
'href' => $scripturl . '?action=downloads',
'show' => $context['allow_downloads_view'],
'icon' => '',
),


Any help is appreciated.  ;)
Title: Re: PHP Code in Header
Post by: Oldiesmann on December 23, 2008, 11:42:04 AM
What specific error are you getting?
Title: Re: PHP Code in Header
Post by: skyhintack on December 23, 2008, 01:15:25 PM
Please excuse me for my error. The line is actually 3879, which reads:

'title' => $txt['smfstaff_stafflist'],

And is part of:

), // [Staff] button
'staff' => array(
'title' => $txt['smfstaff_stafflist'],
'href' => $scripturl . '?action=staff',
'show' => $context['allow_view_stafflist'],
'icon' => '',
),
.

The specific error is:

eda588e7c21ee6fd07f8a82f29df51d9

URL's Recieved: After filtering through the specific error, it appears all but the ACP
8: Undefined index: smfstaff_stafflist
File: /home/a8973141/public_html/Sources/Subs.php
Line: 3879
Title: Re: PHP Code in Header
Post by: Oldiesmann on December 23, 2008, 01:44:53 PM
Ok. That's due to the smfstaff_stafflist language string not being defined.
Title: Re: PHP Code in Header
Post by: skyhintack on December 23, 2008, 09:24:54 PM
Is that something that I need to change/add or is that for the mod creator? I don't know a thing about php other than how to edit settings.
Title: Re: PHP Code in Header
Post by: sherpa サイバー侍 on December 24, 2008, 02:14:35 AM
If I am not wrong Oldiesmann said the smfstaff_stafflist is not pulling from you language file.

Edit: Added link of mod parse
http://custom.simplemachines.org/mods/index.php?action=parse
Title: Re: PHP Code in Header
Post by: greyknight17 on January 16, 2009, 04:57:02 PM
skyhintack, is this issue resolved now?
Title: Re: PHP Code in Header
Post by: ~Killer~ on January 16, 2009, 05:09:37 PM
It may or may not be, but I am having a similar issue with my website.
http://ikorp.net/forums/forums/index.php

Aswell as that, the text within a topic becomes very big.
Title: Re: PHP Code in Header
Post by: greyknight17 on January 22, 2009, 12:01:13 AM
I don't see anything wrong with your site ~Killer~ besides the text on top having the url BBC tag showing instead of making it a register link. Also, try not to post in another user's topic next time. We know the issues may be related, but to avoid confusion, try to create your own topic so we can handle each issue on a case by case basis.

skyhintack, do you have any update on this as well? I see your site is down now....:(