News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

[Free] Template parse error, how to reset?

Started by DSeyir, January 27, 2011, 05:08:28 PM

Previous topic - Next topic

DSeyir

Hi,
I'm using Darkmark theme on SMF 2.0 RC4 and when I tried to modify something on the index.template.php the forum stop showing and shows the folowing message?
Template Parse Error!
It seems something has gone sour on the forum with the template system. This problem should only be temporary, so please come back later and try again.
If you continue to see this message, please contact the administrator.

You can also try refreshing this page.


I returned the original index.template.php and refreshed the page, but it stils showing that?

Any help please?

Thank you
Stop dreamin, start living!

Illori

try clearing the files in the cache folder on your server leave index.php and .htaccess if they exist on your server. next time please post in the support board for your version of smf instead of this board.

DSeyir

Hi, I empty the cache folder, and left the .htaccess, but no results. any more ideas¿

(do you want me to start the post on the support board?)

thank you
Stop dreamin, start living!

Illori

this post should get moved once a mod sees it. is that error message still the same you see now?

Suki

in the meantime, can you attach your index.template and tell us what changes you were making.
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

smtek

I also faced this problem once with the default theme.... Then i uploaded the default theme with a differenet name to ftp then i extracted it then using repair-settings.php i changed the theme directory... This will surely help man.
http://thetekwar.com

^ Your entry to the best tech community

Aleksi "Lex" Kilpinen

Quote from: DSeyir on January 27, 2011, 05:08:28 PM
I returned the original index.template.php and refreshed the page, but it stils showing that?
The file may be owned by Apache, and so editable from the admin panel - but not simply replaceable from FTP.
This way, uploading a backup file may fail, and one might just not notice this.
Did you make sure the file got replaced with your backup copy?
Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

DSeyir

Quotethis post should get moved once a mod sees it. is that error message still the same you see now?
yes, same message, even after clearing PC cache.

Quote from: Miss All Sunday on January 27, 2011, 08:22:49 PM
in the meantime, can you attach your index.template and tell us what changes you were making.
I was trying to change the default link on the logo, from:
<a href="'.$scripturl.'?action=forum" title=""><span id="logo"> </span></a>';
to
<a href="'http://www.website.com" title=""><span id="logo"> </span></a>';

Atached you have my index.template

ps.: yes, I did returned the good backup
Stop dreamin, start living!

DSeyir

Quote from: LexArma on January 28, 2011, 01:11:35 AM
Quote from: DSeyir on January 27, 2011, 05:08:28 PM
I returned the original index.template.php and refreshed the page, but it stils showing that?
The file may be owned by Apache, and so editable from the admin panel - but not simply replaceable from FTP.
This way, uploading a backup file may fail, and one might just not notice this.
Did you make sure the file got replaced with your backup copy?

I returned a backup that was on the server, a .bak file created by me before the modification. Not by FTP.
Stop dreamin, start living!

Arantor

The code you needed was:
<a href="http://www.website.com" title=""><span id="logo"> </span></a>';

The extra ' in it broke it.

DSeyir

Quote from: Arantor on January 28, 2011, 06:48:33 AM
The code you needed was:
<a href="http://www.website.com" title=""><span id="logo"> </span></a>';

The extra ' in it broke it.
yes, thanks.
but I'm really getting crazy trying to make it work again, and even by clearing cache folder or having everything back to older files it doesn't work.

any help from SMF support please?¿
Stop dreamin, start living!

Arantor

Clearing the cache would make no difference at this point.

So you've edited the file and it hasn't saved. What permissions does it have? Who's the file owner?


* Arantor used to be an SMF Support Specialist, as well as a Customizer, btw.

DSeyir

yes, it has saved. and has 666 as permissions.
Stop dreamin, start living!

Arantor

So if it's saved, with the changes, either something's broken elsewhere, or the changes were wrong.

Want to attach the file here and I'll take a look?

DSeyir

please have a look.
I've uploaded repair_settings.php and it shows the correct url for the default theme, should I reupload a new default theme?
Stop dreamin, start living!

Arantor

Well, the file's physically broken, it's missing half its content - which explains why you can't get it to work.

That's not from the default theme, so reupload the index.template.php for your custom theme into the custom theme's folder.

DSeyir

:) I used the index.template from another theme which is the same, I mean, this them DARKMARK, I'm using as the main theme, right! but there's a sub-forum that I wanted to use the same theme with another background, so I copied the theme and renamed the folder, so it's basically the same theme.
I used now the index.template from this second and it seems to be ok now.

on the settings.repair file it shows that the default theme is on folder "default", is it any better to place the theme I'm using inside it?

thanks a lot
Stop dreamin, start living!

Arantor

Quoteis it any better to place the theme I'm using inside it?

No. Put the theme where it was installed, i.e. Themes/DarkMark or whatever the folder is called. SMF has a system in place - don't mess with it.

DSeyir

Stop dreamin, start living!

Advertisement: