change of index.tpl seems to be ignored sometimes

Found a bug? Tell us!!
Post Reply
bitwise
Posts: 3
Joined: Thu Jul 26, 2007 6:42 pm

change of index.tpl seems to be ignored sometimes

Post by bitwise »

Hi,

I am about to modify an existing template. This worked fine for a while, but suddenly my changes do not become visible when viewing the blog in the browser. I checked the file content of index.tpl on the server after ftp upload (file was uploaded correctly with my modifications) but the generated html file apparently uses an older version of the index.tpl (I could see some of my earlier modifications in the html source code). If I delete or rename the file, the standard index.tpl is used, so I ensured that I changed the right file.

It seems like a cached version of index.tpl is used, by I have no clue why and where it is taken from. I checked with different browsers, with emptying browser cache, no change.

Does anybody has an idea what could cause this behaviour?

Thanks,
André
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: change of index.tpl seems to be ignored sometimes

Post by garvinhicking »

Hi!

Maybe there's a conflict of the smarty-generated file. You could try to delete the files in your templates_c directory, so that your fresh version will be reloaded?

HTH,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
bitwise
Posts: 3
Joined: Thu Jul 26, 2007 6:42 pm

Post by bitwise »

Hi Garvin,

I deleted the files in the template_c directory, and it worked! But: after another change of the index.tpl in my template directory the problem occured again, no change in the generated html file. Unfortunately, the template_c directory is still empty, nothing more to delete.

Do you have another idea?

André
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Oh, if the directory is empty you seem to be having permission problems. Please check if the directory is writable! If it isn't, your page shouldn't be able to display at all, because with an empty directory, Smarty compiles no templates, and withoput a compiled template nothing can be displayed!

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
bitwise
Posts: 3
Joined: Thu Jul 26, 2007 6:42 pm

Post by bitwise »

Hi Garvin,

sorry, my fault: I had a directory refreshing problem with my ftp program, so the directory wasn't empty. Permissions are ok. Now I can modify the template but have always to delete the index.tpl from the template_c directory. It's a bit circuitous, but a workaround that lets me continue with building the site.

Thanks,
André
Post Reply