Page 1 of 1

Smarty error Warning after installation

Posted: Mon Nov 07, 2005 6:14 pm
by Way
Hello every body
Sorry if that has been topics before but I do search for it in the forum and I didn't find any thing concerning that warning

Warning after installation

I make installation as usual by selecting express installation
Every thing goes fine


But after I start the blog to main page, it don’t work, only this massage appears

Warning: Smarty error: unable to read resource: "" in /home/arabi/public_html/s9/bundled-libs/Smarty/libs/Smarty.class.php on line 1088

Re: Smarty error Warning after installation

Posted: Mon Nov 07, 2005 6:37 pm
by garvinhicking
This means that the "templates_c" directory permissions seem to have changed after you installed s9y.

This directory needs to exist and be writable for the PHP process (i.e. 777).

Regards,
Garvin

Posted: Mon Nov 07, 2005 10:35 pm
by Way
Thanks for your replay, well I made what you said earlier , and still I have the same massage

Posted: Tue Nov 08, 2005 11:26 am
by garvinhicking
This might also happen if you did not properly configure the Serendipity paths (full path to Serendipity). Did you checkk all your path configs in the serendipity admin interface?

Regards,
Garvin

Re: Smarty error Warning after installation

Posted: Tue Nov 08, 2005 12:01 pm
by Way
Way wrote:
I make installation as usual by selecting express installation
Every thing goes fine
As in fires topic I made the default installation, which gives me all the paths automatically, than I flow on setup process.

Is there any file do I need to check it, or should I make new installation

Thanks for your help

Re: Smarty error Warning after installation

Posted: Tue Nov 08, 2005 12:30 pm
by garvinhicking
Please just call your blog via http://yourblog/serendipity_admin.php - you should be able to access that and log in. The go to the path configuration and check which paths were entered there.

Also please make 100% absoultely sure that "templates_c" folder exists and is writable for Apache (your FTP user doesn't suffice!).

Even though we've tried to make the path-autodetection as good as possible, it might in some cases still fail, so you might need to check those.

Regards,
Garvin

Posted: Tue Nov 08, 2005 2:46 pm
by Way
thanks sir and appreciate you help

well, I was able to access control panel, and I checked out paths as you say earlier
all I think in correct manner

/home/arabi/public_html/s9/

even so I recheck "templates_c" folder from main control panel and it has chmed to 777

still no able to work on
Best regards

Posted: Tue Nov 08, 2005 2:54 pm
by garvinhicking
Can you please store this little script as "smartytest.php" in your s9y root:

Code: Select all

<?php
printf('%o', fileperms('/home/arabi/public_html/s9/templates_c'));
echo "<br />\n";
include 'serendipity_config.inc.php';
echo $serendipity['serendipityPath'] . "<br />\n";
echo PATH_SMARTY_COMPILE . "<br />\n";
printf('%o', fileperms($serendipity['serendipityPath'] . PATH_SMARTY_COMPILE));
echo "<br />\n";
?>
Then please call http://yourblog/smartytest.php and tell me the output? This checks the file permissions of the configured dirs, and which dirs are probed.

Hope we'll get it working! :)

Regards,
Garvin

Posted: Tue Nov 08, 2005 3:27 pm
by Way
40777

Warning: Cannot modify header information - headers already sent by (output started at /home/arabi/public_html/s9/smartytest.php:2) in /home/arabi/public_html/s9/include/functions_config.inc.php on line 263
/home/arabi/public_html/s9/
templates_c
40777

Posted: Tue Nov 08, 2005 3:35 pm
by garvinhicking
Hm, okay. This is getting a bit strange now. Are you using a linux server? Are your directories maybe symbolically linked?

I'd like to offer you some debugging help to get this fixed, but I would need FTP privileges to access the s9y directory for that. If you want to do that, please contact me via PM. Else, I could give you a few lines of code to insert at some places to get near the problem?

It would be great if you could help me so that we can get the problem identified and fixed!

Best regards,
Garvin

Posted: Tue Nov 08, 2005 3:49 pm
by Way
well, I use linux server
PM was sent

Thanks
Best regards

Posted: Tue Nov 08, 2005 4:01 pm
by Way
thanks sir and appreciate you help

well,
thanks a lot for your help
I found your weblog is very nice
My next step is to translate it to ARABIC as I do for other blogs
Just I need some time to new it well

Best regards every one Form s9y smarty stuff

Posted: Tue Nov 08, 2005 4:14 pm
by garvinhicking
I found the error! You didn't upload all files in the /templates/ directory! Files like templates/default/index.tpl are missing - without them, Serendipity cannot show any files. :)

So if you upload those missing files frmo the release directory, you should be fine :)

Would be nice to have arabic translation! -)

Best regards,
Garvin

Thanks allot MR expert

Posted: Tue Nov 08, 2005 7:09 pm
by Way
Thanks allot MR expert, and I appreciate all your kindness
really I was shameful of that error, but I may use an old FTP program like me :oops: :shock:

Since I start working with that weblog, I felt that I know it before, ,, really its amazing script and easy to handle and understandable weblog

I need days and I'll translate it to ARABIC

See you again

Re: Thanks allot MR expert

Posted: Tue Nov 08, 2005 7:15 pm
by garvinhicking
Great that we found it out :)

Tell us if you've finished the translation - we have a persian (farsi) language already, maybe that is somehow related? :-D

Best regards,
Garvin