News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

PHP Code in Header

Started by skyhintack, December 22, 2008, 10:20:27 PM

Previous topic - Next topic

skyhintack

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 [nofollow]

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.  ;)

Oldiesmann

What specific error are you getting?
Michael Eshom
Christian Metal Fans

skyhintack

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

Oldiesmann

Ok. That's due to the smfstaff_stafflist language string not being defined.
Michael Eshom
Christian Metal Fans

skyhintack

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.

sherpa サイバー侍

#5
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

greyknight17

skyhintack, is this issue resolved now?

~Killer~

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.

greyknight17

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....:(

Advertisement: