Page 1 of 1

change of index.tpl seems to be ignored sometimes

Posted: Thu Jul 26, 2007 7:04 pm
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é

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

Posted: Fri Jul 27, 2007 9:29 am
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

Posted: Fri Jul 27, 2007 10:27 am
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é

Posted: Fri Jul 27, 2007 10:38 am
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

Posted: Tue Jul 31, 2007 2:41 pm
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é