instalation: Warning: Smarty error: unable to read resource
-
lavoir107
instalation: Warning: Smarty error: unable to read resource
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...
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
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
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/
# 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
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
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
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
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/
# 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
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?
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
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:
with this:
Maybe this gives us some clues...
Regards,
Garvin
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);
}
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);
}
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/
# 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
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?
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:
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
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/
# 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
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).
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:
Maybe your FTP upload had problems with large filenames or so? I've seen that happen once.
Regards,
Garvin
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/
# 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
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.
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:
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
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/
# 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
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
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:
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
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/
# 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