can't save entries

Found a bug? Tell us!!
d_cee
Regular
Posts: 603
Joined: Wed Jan 18, 2006 6:32 pm
Location: UK
Contact:

can't save entries

Post 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
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: can't save entries

Post 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
# 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/
d_cee
Regular
Posts: 603
Joined: Wed Jan 18, 2006 6:32 pm
Location: UK
Contact:

Post 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
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post 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?
Judebert
---
Website | Wishlist | PayPal
d_cee
Regular
Posts: 603
Joined: Wed Jan 18, 2006 6:32 pm
Location: UK
Contact:

Post 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
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# 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/
d_cee
Regular
Posts: 603
Joined: Wed Jan 18, 2006 6:32 pm
Location: UK
Contact:

Post 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
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# 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/
d_cee
Regular
Posts: 603
Joined: Wed Jan 18, 2006 6:32 pm
Location: UK
Contact:

Post by d_cee »

Hi Garvin

I'll mail you FTP access.

cheers

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

Post by garvinhicking »

It seems the solution was that the file "preview_iframe.tpl" in the templates/default/ folder was missing. :)

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/
d_cee
Regular
Posts: 603
Joined: Wed Jan 18, 2006 6:32 pm
Location: UK
Contact:

Post by d_cee »

Thanks Garvin

you're a star - as always :-)

Dave
SHRIKEE
Regular
Posts: 128
Joined: Tue Feb 21, 2006 2:49 am
Location: Netherlands
Contact:

Post 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
My kingdom For i am king of my heap of trash

Developing code on:
Workstation: Windows 2000 sp4, TSW webcoder 2005
Server: fedora core 4 amd64, apache 2.0.54, php 5.0.4, mysql 4.1.11.
d_cee
Regular
Posts: 603
Joined: Wed Jan 18, 2006 6:32 pm
Location: UK
Contact:

Post 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
SHRIKEE
Regular
Posts: 128
Joined: Tue Feb 21, 2006 2:49 am
Location: Netherlands
Contact:

Post by SHRIKEE »

my server is at linux...

it can be done from any shell with root (or high level) access using the chown command
My kingdom For i am king of my heap of trash

Developing code on:
Workstation: Windows 2000 sp4, TSW webcoder 2005
Server: fedora core 4 amd64, apache 2.0.54, php 5.0.4, mysql 4.1.11.
d_cee
Regular
Posts: 603
Joined: Wed Jan 18, 2006 6:32 pm
Location: UK
Contact:

Post by d_cee »

thanks SHRIKEE :-)

Dave
Post Reply