Smarty Broke

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
techiem2
Regular
Posts: 35
Joined: Sun Feb 15, 2004 6:59 am
Contact:

Smarty Broke

Post by techiem2 »

So my site http://techiem2.no-ip.com:444 was working fine.
I had s9y setup and working and all was well.
And then I decided to update the server.
Apparently that was a mistake.
After updating (apache, php, etc.) several things on the web site broke.
A couple were fixed by simple reinstalls.
S9y (.8 alpha 10 I believe), however, wasn't.
I now get the following error where the blog data should be:

Code: Select all

Warning: Smarty error: (secure mode) accessing "/home/httpd/localhost/htdocs/templates/default/index.tpl" is not allowed in /home/httpd/localhost/htdocs/bundled-libs/Smarty/libs/Smarty.class.php on line 1084
I tried upgrading to the latest cvs version, which didn't change anything.
I deleted the config php file to force the setup wizard to run again and made sure I had everything set as recommended.
That seemed to go fine, but didn't fix the error.

So I'm at a loss as to what smarty is complaining about and how to fix it.

Any suggestions?

Thanks.

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

Re: Smarty Broke

Post by garvinhicking »

This just looks like a simple permission error. Please check file/directory ownership and whether your PHP safe mode is enabled.

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/
Marinmo
Regular
Posts: 11
Joined: Tue Feb 15, 2005 1:11 pm

Post by Marinmo »

This is a permissions error, chmod the dir so that your webserver-account (usually nobody) can read from the specified directory.
255 characters is not enough.
Guest

Post by Guest »

The webserver user/group are both apache.

I made sure I changed ownership on everything to them.

PHP safe mode is off.

I thought it looked like a perm error, and I even did a chmod -R 777 on the templates and templates_c dirs, but that didn't help.

Any more ideas on where to look/what to tweak?

Thanks.

I'm a bit confused as to how just updating stuff would break smarty (I'm pretty careful not to let my config files get nuked with updates), but ya never know.

Mark II
techiem2
Regular
Posts: 35
Joined: Sun Feb 15, 2004 6:59 am
Contact:

Post by techiem2 »

^oops. Guess I timed out before posting that.

Anyhow, I nuked s9y and did a fresh install.

My content shows up now, but now I have other wierdness.
But I'll start a fresh topic for that.
:)

Thanks.

Mark II
Post Reply