Page 1 of 1

Preview/save Smarty error

Posted: Sat Dec 31, 2005 4:44 am
by bconnolly
I've get an error when previewing or saving an entry:
Warning: Smarty error: unable to read resource: "" in /home/views/public_html/bundled-libs/Smarty/libs/Smarty.class.php on line 1088

When I hack out the lines... it saves... but no preview.

Thoughts?

Brian

Re: Preview/save Smarty error

Posted: Sat Dec 31, 2005 4:23 pm
by garvinhicking
that can happen if you either specified a wrong smarty template / serendipity directory, or if your templates_c directory is not writable for the webserver user.

Regards,
Garvin

Posted: Sat Dec 31, 2005 9:10 pm
by Guest
ummmm.

I seem to have all paths specified correctly. Full path: /home/views30g/public_html/ and template: /templates.

As to wrong smarty template... if I understand correctly... I am using joshua.

Lastly, templates_c is writable.

?

Other thoughts or am I misunderstanding your comments?

Thanks Garvin.

Brian

Posted: Sun Jan 01, 2006 4:00 pm
by garvinhicking
The error messages comes from "/home/views/public_html/bundled-libs/Smarty/libs/Smarty.class.php", so if you specified "/home/views30g" as your directory, this seems to be not consistent?

The error message effectively means, that templates_c cannot be found or not written/read. This folder holds the Smarty PHP parsed template files, which it needs to render the display.

Regards and a good 2006,
Garvin

Posted: Sun Jan 01, 2006 4:40 pm
by Guest
First the directories are indeed consistant. I had edited "views" to just be a little cryptic.

With regard to templates_c not being writeable, it is set to 777.

Lastly, I am not certain why smarty is not finding the folder (if that's the issue). The paths are properly set. ALL other functions are working properly.

What else could it be?

Brian

PS And a good 2006 to you, as well. Thanks Garvin. You're the best.

Posted: Sun Jan 01, 2006 6:25 pm
by garvinhicking
Hi Brian!

Maybe you could give me (temporary) FTP access to your blog? Then I could investigate this thorougly...you know my mail address, so please contact me if you'd like that :)

Best regards,
Garvin

Posted: Sun Jan 01, 2006 10:57 pm
by bconolly
Garvin 'ole friend,

Fixed it. I used the reinstall-twice-beat-the-table-4-cocktails method.
Seriously, reinstalled from scratch with the latest nightly build.; and it worked.

If I were to guess, I believe the global setting for WYSWYG screws up the preview function on my system. When that's off and activated for individual users... all works well. That's my guess.

Anyway, again, just your presence seems to help. I appreciate it greatly.

Brian