instalation: Warning: Smarty error: unable to read resource

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
lavoir107

instalation: Warning: Smarty error: unable to read resource

Post by lavoir107 »

Hi

I just made a fresh installation of serendipity. Everything seem to work properly except the fact that I am uneable to view any post. Instead, I got the following message:

Warning: Smarty error: unable to read resource: "file:" in /home/www/euresis/generic/bundled-libs/Smarty/libs/Smarty.class.php on line 1088

I have spent hours in reading previous posts and trying to fix the problem, but I did not succeed. Probably because installing serendipity I entered a new world, some kind of "terre incognita" (for me).

Up to now, I have checked the following:
- the templates_c directory is existing and having the correct rights
- all the files contained in the *.zip file have been copied

I'd be please to get some help...
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: instalation: Warning: Smarty error: unable to read resou

Post by garvinhicking »

Usually you can only get this error message, if Smarty is not able to write to your templates_c directory. Please check the permissions carefully!

The other possibility of failure is if you somehow configured wrong Serendipity paths do use. Which paths did you enter for "absolute path to serendipity"?

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/
lavoir107

instalation: Warning: Smarty error: unable to read resource

Post by lavoir107 »

Of course, I have checked the templates_c rights. I even have executed the create.php script you have adviced some time ago to somebody else. According to the interface of my provider, the chmod value for this directory is 777.
For the configuration, I used the automatic installation process. I assume then that everything has been installed accurately.
The absolute path to serendipity is actually set to: /home/www/euresis/generic/.

Does these information help you in finding the reason of my problem?

Thank for your help.

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

Re: instalation: Warning: Smarty error: unable to read resou

Post by garvinhicking »

The error message could also mean, that your templates/default/ folder is missing some files. Can you check if you uploaded them all properly and all the files in there are readable?

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/
lav

instalation: Warning: Smarty error: unable to read resou

Post by lav »

To make sure all the files were correctly in the default directory, I have copy the entire directory again. But it does not help.
Concerning the rights on the files in the default directory, apparently they are set to 644. Is that correct?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: instalation: Warning: Smarty error: unable to read resou

Post by garvinhicking »

Hm, sadly Smarty is very generic about the error messages it emits.

My guess is still that there is some template or image file missing. Did you select any other template, or changed anything with the template files after uploading?

Maybe you can edit your Smarty.class.php file, and at line 1086 replace this:

Code: Select all

    function trigger_error($error_msg, $error_type = E_USER_WARNING)
    {
        trigger_error("Smarty error: $error_msg", $error_type);
    }
with this:

Code: Select all

    function trigger_error($error_msg, $error_type = E_USER_WARNING)
    {
        trigger_error("Smarty error: $error_msg. Backtrace: " . print_r(debug_backtrace(), true), $error_type);
    }
Maybe this gives us some clues...

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/
lavoir107

Post by lavoir107 »

Have done it. Here is the new message:

Warning: Smarty error: unable to read resource: "file:". Backtrace: Array ( [0] => Array ( [file] => /home/www/euresis/generic/bundled-libs/Smarty/libs/Smarty.class.php [line] => 1584 [function] => trigger_error [class] => smarty [type] => -> [args] => Array ( [0] => unable to read resource: "file:" ) ) [1] => Array ( [file] => /home/www/euresis/generic/bundled-libs/Smarty/libs/Smarty.class.php [line] => 1410 [function] => _fetch_resource_info [class] => smarty [type] => -> [args] => Array ( [0] => Array ( [resource_name] => file: [get_source] => 1 [quiet] => ) ) ) [2] => Array ( in /home/www/euresis/generic/bundled-libs/Smarty/libs/Smarty.class.php on line 1088

Does it help you?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

It seems that the backtrace tells us that the Smarty framework itself could not be properly initialized.

Can you please see if all Smarty files were properly uploaded and the permissions ofr the Smarty files are all okay?

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/
lavoir107

Post by lavoir107 »

Done.
For so far I can judge, the number of directories and files under the /Smarty/ directory are OK. And the permissions seem also o be OK (chmod = 755). I have checked the file size, but they all are different.
Nevertheless, the install files are the same as those I used for a local install (which is properly running).
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Maybe your FTP upload had problems with large filenames or so? I've seen that happen once.

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/
lavoir107

Post by lavoir107 »

I have used another ftp software in order to make me sure that the filesize were the same and to reload some files.
That has change the results. I get now a much longer error message. You could perhaps go to http://generic.euresis.com/index.php and discover it by yourself.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Reading your page I can see an awesome often amount of "?>" php tags scattered around. That is a sign of a bad FTP upload and upload problems, or garbaged files.

Now I can see that smarty dies when trying to include the "plugin_calendar.tpl". It seems this file is missing from your default template folder, too.

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/
lavoir107

Post by lavoir107 »

Hi Garvin

I hope you had a nice WE.

I have spent some time during the WE to check the downloads, but it seems that it does not solve my problem. I also spent time in trying to get another installation working properly, but I did not get any valuable results.
I am still wondering why Serendipity is working fine locally but not on my provider's server.

What could we try to get it finally working?

Thanks for your help
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

The only thing left to do is, you could give me temporary FTP access to your server and I can check the details?

If you want to do that, drop me a mail.

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/
lavoir107

Post by lavoir107 »

Thank you for the proposition
i am ready to give you a temporary access, but where can I find your email address?
Post Reply