Topic: Smarty error: unable to read resource

Warning: Smarty error: unable to read resource: "adm_header.tpl" in /home/class/public_html/admin/libs/Smarty.class.php on line 1087

After changing permissions on the template files to 644 as suggested in another thread to stop pron spammers I now get this error when trying to login to admin.

I've changed permissions on adm_header.tpl back to 744, then 755 and even 777 but the error remains.

How can I fix it?

There are also errors on the main page:

Warning: Smarty error: unable to read resource: "catcol.tpl" in /home/class/public_html/admin/libs/Smarty.class.php on line 1087

Thumbs up Thumbs down

Re: Smarty error: unable to read resource

Please check that the file exists in the folder. If it exists try to reupload file to the server.

Re: Smarty error: unable to read resource

BTW: Chaning file permissions to something else on template files will not stop spammers.

Check your servers error-log, it will often tell you what is wrong. Did you perhaps change the chmod on the templates_src also?

What user where you when you changed chmod? If you change chmod when you are logged in as root or similar, it will change owner of the files also.

Re: Smarty error: unable to read resource

Problem solved, got the hosting company to overwrite the site with a backup from a couple of days ago.

Thumbs up Thumbs down