Hopefully this is the right board for this question, if not please move it... thanks.
My host server (1and1) had problems for most of yesterday causing my forum and website to be slow to load, or not load pages at all and then in the afternoon/evening it was completly shut down for about 4 hours. The 'tech' on their phone help line told me that it was indeed the server.
Now whenever trying to access the TP admin funtions I get an error page below, no changes have been made to the TP, or SMF installs for the forum for at least two weeks before and they were working just fine untill the server issues.
Helios is set as the forum default theme, but the error occurs when using the SMF default Core theme as well.
Reading the code I am not able to see where it needs to be repaired, TIA for any help.
Site url: http://www.mykimbrell.com/FamilyForum/index.php
SMF 1.1 RC3
TP
The error page:
"Template Parse Error!
There was a problem loading the /Themes/default/TPortalAdmin.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.
You may want to try to refresh this page or use the default theme."
" Parse error: parse error, unexpected '[', expecting ',' or ';' in .../Themes/default/TPortalAdmin.template.php on line 37"
28: <tr>
29: <td>
30: <a href="' . $scripturl . '?action=tpadmin;sa=news"> ' ,$subaction=='news' ? '<b>'.$txt['tp-latest_news'].'</b>' : $txt['tp-latest_news'] , '</a> <img style="margin: 0; " border="0" alt="" src="'.$settings['images_url'].'/divider.gif" />
31: <a href="' . $scripturl . '?action=tpadmin;sa=settings">' ,$subaction=='settings' ? '<b>'.$txt['tp-generalsettings'].'</b>' : $txt['tp-generalsettings'] , '</a> <img style="margin: 0; " border="0" alt="" src="'.$settings['images_url'].'/divider.gif" />
32: <a href="' . $scripturl . '?action=tpadmin;sa=frontpage">' ,$subaction=='frontpage' ? '<b>'.$txt['tp-frontpage_settings'].'</b>' : $txt['tp-frontpage_settings'] , '</a> <img style="margin: 0; " border="0" alt="" src="'.$settings['images_url'].'/divider.gif" />
33: <a href="' . $scripturl . '?action=tpadmin;sa=categories">' ,$subaction=='categories' ? '<b>'.$txt['tp-editcategories'].'</b>' : $txt['tp-editcategories'] , '</a> <img style="margin: 0; " border="0" alt="" src="'.$settings['images_url'].'/divider.gif" />
34: <a href="' . $scripturl . '?action=tpadmin;sa=articles">' ,$subaction=='articles' ? '<b>'.$txt['tp-editarticles'].'</b>' : $txt['tp-editarticles'] , '</a> <img style="margin: 0; " border="0" alt="" src="'.$settings['images_url'].'/divider.gif" />
35: <a href="' . $scripturl . '?action=tpadmin;sa=submission">' ,$subaction=='submission' ? '<b>'.$txt['tp-submissionsettings'].'</b>' : $txt['tp-submissionsettings'] , ' (',$context['TPortal']['submissions'],')</a> <img style="margin: 0; " border="0" alt="" src="'.$settings['images_url'].'/divider.gif" />
36: <a href="' . $scripturl . '?action=tpadmin;sa=clist">' ,$subaction=='clist' ? '<b>'.$txt['tp-tabs11'].'</b>' : $txt['tp-tabs11'] , '</a> <img style="margin: 0; " border="0" alt="" src="'.$settings['images_url'].'/divider.gif" />
37: <a href="' . $scripturl . '?action=tpadmin;sa=blocks">' ,$subaction=='blocks' ? '<b>'.$txt['tp-editblocks'].'</b>' : $txt['tp-editblocks'] , '</a> <img style="margin: 0; " border="0" alt="" src="'.$setti.gs['images_url'].'/divider.gif" />38: <a href="' . $scripturl . '?action=tpadmin;sa=menubox">' ,$subaction=='menubox' ? '<b>'.$txt['tp-menumanager'].'</b>' : $txt['tp-menumanager'] , '</a> <img style="margin: 0; " border="0" alt="" src="'.$settings['images_url'].'/divider.gif" />
39: <a href="' . $scripturl . '?action=tpadmin;sa=modules">' ,$subaction=='modules' ? '<b>'.$txt['tp-modules'].'</b>' : $txt['tp-modules'] , '</a> <img style="margin: 0; " border="0" alt="" src="'.$settings['images_url'].'/divider.gif" />
40: <a href="' . $scripturl . '?action=tpadmin;sa=shoutbox">' ,$subaction=='shoutbox' ? '<b>'.$txt['tp-editshoutbox'].'</b>' : $txt['tp-editshoutbox'] , '</a> <img style="margin: 0; " border="0" alt="" src="'.$settings['images_url'].'/divider.gif" />
41: <a href="' . $scripturl . '?action=tpadmin;sa=credits">' ,$subaction=='credits' ? '<b>'.$txt['tp-credits'].'</b>' : $txt['tp-credits'] , '</a>
I'm not able to access your site at all. If you'd like you can post your index.template here and I'll see if I can spot an error.
Quote from: IchBinÃ,â,,¢ on January 04, 2007, 09:44:33 PM
I'm not able to access your site at all. If you'd like you can post your index.template here and I'll see if I can spot an error.
Thanks IchBin, my hosting server appears to be down again, so it will have to wait for a while. I will post the index.template as soon as the site is back up.
It was not easy, but I was finally able to pull a copy. ;D
line 37 has:
src="'.$setti.gs['images_url']
there's a period where an 'n' should be ('$settings[').
Also it seems like line 38 are plased on the same line as 37 ???
@ J.A.Cortina,
I didn't see the line as you describe it (line 37= "if this is 'never' or isn't set at all, images from the default theme will not be used. */"
But I did find this on line 389, "<img src="'.$settings['images_url'].'" (all others look like this= "<img src="', $settings['images_url']," ...is the ".' in front of '$' wrong?
@ G6,
Sorry, but I don't understand? ???
EDIT: Whoops!!! Are we talking about two different files? I was responding based on the index.template.php that IchBin had me upload. :)
We're talking about the code you pasted in your first post.
Scroll up and take a look.
Quote from: J.A.Cortina on January 04, 2007, 11:24:24 PM
We're talking about the code you pasted in your first post.
Scroll up and take a look.
OK... see my edit above.
I'll check on the code now... thanks
Again my server is down! ::)
I will follow up on the TPortalAdmin.template.php file whenever the server lets me back in and will post the result.
Thanks for all the help, you are all the best. :up:
It appears to be fixed by making the correction that J.A.Cortina pointed out, but the server is acting so poorly that it will likely be tomorrow before I can go through all the functions to be sure.
Thanks to everyone... Ken
My server issues seem to have been solved, with that and the code repair tip from J.A.Cortina my problems are hopefully over for now.
Thanks... Ken