Page 1 of 2

can't save entries

Posted: Fri Apr 07, 2006 11:01 pm
by d_cee
Hi

when I try to save an entry in one of my blogs I'm getting the following error and the entry doesn't save.

Warning: Smarty error: unable to read resource: "" in /var/www/vhosts/mydomain/subdomains/mysubdomain/httpdocs/bundled-libs/Smarty/libs/Smarty.class.php on line 1088

mydomain - being my domain
mysubdomain - being my subdomain

Any advice gratefully received

Dave

Re: can't save entries

Posted: Sat Apr 08, 2006 5:53 pm
by garvinhicking
Hi!

Such an error can happen if either your templates_C directory is not writable, or if *.tpl files are missing in your templates/default/ directory...?

Best regards,
Garvin

Posted: Sat Apr 08, 2006 8:50 pm
by d_cee
Hi Garvin

I've checked and templates_c is 777 and just in case there were any .tpl files missing from the default theme I copied it across from another blog that does work but I'm still getting the same error. :(

Any other ideas?

Dave

Posted: Sun Apr 09, 2006 4:41 am
by judebert
No big advice, just a couple of observations: first, many webhosts seem to hate 777 and block anything with those permissions. Sometimes 775 will work. Second, even if the directory is writeable, are the files inside it writeable? If it's trying to overwrite something that it can't, we could get this error, too.

Does it work with the default theme?

Posted: Sun Apr 09, 2006 10:13 am
by d_cee
Hi Jude

I've no problems with my host and 777 - my themes site is set up exactly the same, just in a different subdomain.

Everything inside templates_c is 644 - again exactly the same as on my themes site.

And I just got the same error with the default template set :cry:

Dave

Posted: Sun Apr 09, 2006 1:56 pm
by garvinhicking
Hi!

Did you check that your "bundled-libs/Smarty" directory is in place and has all the file with correct sizes? Sadly Smarty emits this error message for all errors that include missing or non-writable files. :-/

Regards,
Garvin

Posted: Sun Apr 09, 2006 9:49 pm
by d_cee
Hi Garvin

I've just compared the smarty folders from the two sites and they are identical - contents, file sizes and permissions.

The only difference is the versions of Serendipity - the broken one is 1.1alpha1; the worker is 0.9.1.

Dave

Posted: Mon Apr 10, 2006 9:34 am
by garvinhicking
Hi Dave!

I can offer to have a look at that install, if you might provide me with FTP details (mail them to me)? Usually, Smarty should not be started when you save an entry at all, just when viewing or previewing it. Maybe some plugin is interfering...?!

Regards,
Garvin

Posted: Mon Apr 10, 2006 11:07 am
by d_cee
Hi Garvin

I'll mail you FTP access.

cheers

Dave

Posted: Mon Apr 10, 2006 12:16 pm
by garvinhicking
It seems the solution was that the file "preview_iframe.tpl" in the templates/default/ folder was missing. :)

Regards,
Garvin

Posted: Mon Apr 10, 2006 4:08 pm
by d_cee
Thanks Garvin

you're a star - as always :-)

Dave

Posted: Tue Apr 11, 2006 7:16 am
by SHRIKEE
bear in mind the apache must be the owner of the folders. ive ran into similiar problems because some folder (like the template_c) where owned by root...

when i changed it to apache (this must be 'nobody' on some servers) it worked fine

Posted: Tue Apr 11, 2006 10:00 am
by d_cee
Hi SHRIKEE

I guess the problem was a result upgrading and folders belonging to root.

How did you change the owner of the folders/files to apache?

Dave

Posted: Tue Apr 11, 2006 11:41 am
by SHRIKEE
my server is at linux...

it can be done from any shell with root (or high level) access using the chown command

Posted: Tue Apr 11, 2006 1:05 pm
by d_cee
thanks SHRIKEE :-)

Dave