News:

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

Main Menu

Template Parse Error!

Started by Powerslaved, December 22, 2012, 09:18:34 AM

Previous topic - Next topic

Powerslaved

Hi

Ive just started my first forum and i have this problem on my smf 2.0.3 themes


Template Parse Error!
There was a problem loading the /Themes/default/BoardIndex.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.
syntax error, unexpected '&'

Can someone please advise me how to fix this pls

Shambles

Did you just try to install a mod? If so, which one?

If the worst comes to the worst, you can attach that file here and we'll have a look at fixing it for you, sm.org style :)

Powerslaved

Hi

Ive attached the file.Would really appreciate your help fixing this

Shambles

Did you try to install an rss feeder mod? There's a corruption on line 159; looks like come code is missing

157:                     <td class="info">
158:                         <a class="subject" href="', $board['href'], '" name="b', $board['id'], '">', $board['name'], '</a>&nbsp;<a href="' . $scripturl . '?action=.xml;board=' . $board['id'] . ';type=rss"><img src="' . $settings['images_url'] . '/rss.png" alt="rss" /></a>';
159: &nbsp;<a href="' . $scripturl . '?action=.xml;board=' . $board['id'] . ';type=rss"><img src="' . $settings['images_url'] . '/rss.png" alt="rss" /></a>
160:



Actually, scrub that - try the attached file instead:

Powerslaved

Yes i did try but ive uninstalled it

Shambles

Quote from: Powerslaved on December 22, 2012, 09:52:54 AM
Yes i did try but ive uninstalled it

The corrected file is in my post above.

Powerslaved

Great thank you for the help,however i get this message Unable to load the 'BoardIndex' template.

Shambles

Hmm.. I just replaced my BoardIndex.template.php file with the one I attached and it all worked fine, including the oustanding rss link fields (which could be removed from line 158).

Did you replace your existing file with the updated one?

Do you have any other mods installed on your "first forum"? If not, might be a good idea to simply replace the BoardIndex file from the installation package as a virgin copy, tho what I supplied should work fine.

Powerslaved

I removed it and reloaded it again,works fine now thanks so much for your help

Powerslaved

Ok theres another problem,i now i have this error

There was a problem loading the /Themes/default/MessageIndex.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.
syntax error, unexpected '&'

mashby

Can you attach that file in a reply similar to what you did for the BoardIndex file?
Always be a little kinder than necessary.
- James M. Barrie

Powerslaved


mashby

I think this might work. Let us know!
Always be a little kinder than necessary.
- James M. Barrie

Powerslaved

Theres another error

Template Parse Error!
There was a problem loading the /Themes/default/MessageIndex.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.
syntax error, unexpected T_STRING, expecting ',' or ';'

mashby

I'll look again. Just curious, how did these files get messed up?

EDIT: This might be better.
Always be a little kinder than necessary.
- James M. Barrie

Powerslaved

I think its because i tried to install some mods i think

RSS
Gallery
Ezportal

I have since uninstalled these mods

mashby

OK, from Shambles detective work, it looks like the RSS mod is the one causing the issues. Is it truly uninstalled? Can you provide a link to the specific mod in question? Thanks!
Always be a little kinder than necessary.
- James M. Barrie

Powerslaved

I had these installed

RSS Feed Icon for boards    http://custom.simplemachines.org/mods/index.php?mod=376

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

Im sure i tried to use the RSS in ezportal

mashby

#18
OK, if you have it uninstalled, try this file out.

EDIT:
I shouldn't edit code and watch TV at the same time...
Always be a little kinder than necessary.
- James M. Barrie

Powerslaved

Template Parse Error!
There was a problem loading the /Themes/default/MessageIndex.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.
syntax error, unexpected T_STRING, expecting ',' or ';'

Advertisement: