Smarty error Warning after installation

Having trouble installing serendipity?
Post Reply
Way
Regular
Posts: 59
Joined: Mon Nov 07, 2005 12:39 am
Location: SA
Contact:

Smarty error Warning after installation

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

Re: Smarty error Warning after installation

Post 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
# 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/
Way
Regular
Posts: 59
Joined: Mon Nov 07, 2005 12:39 am
Location: SA
Contact:

Post by Way »

Thanks for your replay, well I made what you said earlier , and still I have the same massage
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# 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/
Way
Regular
Posts: 59
Joined: Mon Nov 07, 2005 12:39 am
Location: SA
Contact:

Re: Smarty error Warning after installation

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

Re: Smarty error Warning after installation

Post 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
# 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/
Way
Regular
Posts: 59
Joined: Mon Nov 07, 2005 12:39 am
Location: SA
Contact:

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

Post 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
# 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/
Way
Regular
Posts: 59
Joined: Mon Nov 07, 2005 12:39 am
Location: SA
Contact:

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

Post 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
# 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/
Way
Regular
Posts: 59
Joined: Mon Nov 07, 2005 12:39 am
Location: SA
Contact:

Post by Way »

well, I use linux server
PM was sent

Thanks
Best regards
Way
Regular
Posts: 59
Joined: Mon Nov 07, 2005 12:39 am
Location: SA
Contact:

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

Post 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
# 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/
Way
Regular
Posts: 59
Joined: Mon Nov 07, 2005 12:39 am
Location: SA
Contact:

Thanks allot MR expert

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

Re: Thanks allot MR expert

Post 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
# 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/
Post Reply