Page 1 of 1

Smarty Broke

Posted: Tue Mar 01, 2005 1:28 pm
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

Re: Smarty Broke

Posted: Tue Mar 01, 2005 3:30 pm
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

Posted: Tue Mar 01, 2005 4:22 pm
by Marinmo
This is a permissions error, chmod the dir so that your webserver-account (usually nobody) can read from the specified directory.

Posted: Tue Mar 01, 2005 4:47 pm
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

Posted: Tue Mar 01, 2005 5:40 pm
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