Page 1 of 2
Smarty errors on Comments
Posted: Sat Oct 15, 2005 7:54 pm
by iwbwemf
Fresh install. Someone added comments to a blog and when you try to view the comments in the blog area, you get this:
Warning: Smarty error: unable to read resource: "file:" in /serendipity/bundled-libs/Smarty/libs/Smarty.class.php on line 1088
But if I view the comments in the admin section, the comments display as normal. Any ideas?
Re: Smarty errors on Comments
Posted: Sat Oct 15, 2005 8:04 pm
by garvinhicking
Did you check and make sure that your templates_c directory and all files therein are chmod 777?
Best regards,
garvin
Posted: Sat Oct 15, 2005 10:55 pm
by iwbwemf
I did and they are. I saw that in another post. Anything else I can try?
Posted: Mon Oct 17, 2005 8:44 am
by garvinhicking
Can you send the actual output of the directory listing of your templates_c directory?
This error can really only happen if the directory is not writable, or if you configured a wrong directory in the s9y configuration (this is stored in the serendipity_config table for values like serendipityPath).
Best regards,
Garvin
Posted: Mon Oct 17, 2005 9:45 pm
by iwbwemf
Here it is:
-rwxrwxrwx 1 iwbwemf inetuser 16251 Oct 11 16:34 blue^%%1B^1BC^1BCF14D2%%entries.tpl.php
-rwxrwxrwx 1 iwbwemf inetuser 4182 Oct 11 16:34 blue^%%72^726^726DD0BD%%plugin_calendar.tpl.php
-rwxrwxrwx 1 iwbwemf inetuser 3885 Oct 11 16:34 blue^%%96^967^9670EBB1%%index.tpl.php
-rwxrwxrwx 1 iwbwemf inetuser 1035 Oct 11 16:34 blue^%%C1^C11^C118443C%%sidebar.tpl.php
-rwxrwxrwx 1 iwbwemf inetuser 357 Oct 11 16:34 blue^%%FC^FC7^FC7E3260%%content.tpl.php
-rwxrwxrwx 1 iwbwemf inetuser 16251 Oct 3 13:26 default^%%1B^1BC^1BCF14D2%%entries.tpl.php
-rwxrwxrwx 1 iwbwemf inetuser 4182 Oct 3 13:26 default^%%72^726^726DD0BD%%plugin_calendar.tpl.php
-rwxrwxrwx 1 iwbwemf inetuser 4281 Oct 11 16:12 default^%%83^836^83669DDE%%commentform.tpl.php
-rwxrwxrwx 1 iwbwemf inetuser 3885 Oct 3 13:26 default^%%96^967^9670EBB1%%index.tpl.php
-rwxrwxrwx 1 iwbwemf inetuser 2569 Oct 13 16:50 default^%%BD^BDD^BDD222C5%%trackbacks.tpl.php
-rwxrwxrwx 1 iwbwemf inetuser 1035 Oct 3 13:26 default^%%C1^C11^C118443C%%sidebar.tpl.php
-rwxrwxrwx 1 iwbwemf inetuser 4271 Oct 15 10:42 default^%%F9^F9E^F9EAEC7A%%commentform.tpl.php
-rwxrwxrwx 1 iwbwemf inetuser 357 Oct 3 13:26 default^%%FC^FC7^FC7E3260%%content.tpl.php
-rwxrwxrwx 1 iwbwemf inetuser 16251 Oct 11 16:28 idea^%%1B^1BC^1BCF14D2%%entries.tpl.php
-rwxrwxrwx 1 iwbwemf inetuser 4182 Oct 11 16:28 idea^%%72^726^726DD0BD%%plugin_calendar.tpl.php
-rwxrwxrwx 1 iwbwemf inetuser 3885 Oct 11 16:28 idea^%%96^967^9670EBB1%%index.tpl.php
-rwxrwxrwx 1 iwbwemf inetuser 1035 Oct 11 16:28 idea^%%C1^C11^C118443C%%sidebar.tpl.php
-rwxrwxrwx 1 iwbwemf inetuser 357 Oct 11 16:28 idea^%%FC^FC7^FC7E3260%%content.tpl.php
-rwxrwxrwx 1 iwbwemf inetuser 17682 Oct 11 16:28 kubrick^%%0E^0E6^0E608215%%entries.tpl.php
-rwxrwxrwx 1 iwbwemf inetuser 4004 Oct 11 16:28 kubrick^%%47^475^475D2A73%%index.tpl.php
-rwxrwxrwx 1 iwbwemf inetuser 4182 Oct 11 16:28 kubrick^%%72^726^726DD0BD%%plugin_calendar.tpl.php
-rwxrwxrwx 1 iwbwemf inetuser 652 Oct 11 16:28 kubrick^%%D4^D4B^D4B7D2FB%%sidebar.tpl.php
-rwxrwxrwx 1 iwbwemf inetuser 357 Oct 11 16:28 kubrick^%%FC^FC7^FC7E3260%%content.tpl.php
-rwxrwxrwx 1 iwbwemf inetuser 16251 Oct 11 16:14 moz-modern^%%1B^1BC^1BCF14D2%%entries.tpl.php
-rwxrwxrwx 1 iwbwemf inetuser 4182 Oct 11 16:14 moz-modern^%%72^726^726DD0BD%%plugin_calendar.tpl.php
-rwxrwxrwx 1 iwbwemf inetuser 4168 Oct 11 16:14 moz-modern^%%9A^9AB^9AB902AC%%index.tpl.php
-rwxrwxrwx 1 iwbwemf inetuser 1035 Oct 11 16:14 moz-modern^%%C1^C11^C118443C%%sidebar.tpl.php
-rwxrwxrwx 1 iwbwemf inetuser 357 Oct 11 16:14 moz-modern^%%FC^FC7^FC7E3260%%content.tpl.php
-rwxrwxrwx 1 iwbwemf inetuser 16251 Oct 11 16:31 mt-clean^%%1B^1BC^1BCF14D2%%entries.tpl.php
-rwxrwxrwx 1 iwbwemf inetuser 4182 Oct 11 16:31 mt-clean^%%72^726^726DD0BD%%plugin_calendar.tpl.php
-rwxrwxrwx 1 iwbwemf inetuser 3885 Oct 11 16:31 mt-clean^%%96^967^9670EBB1%%index.tpl.php
-rwxrwxrwx 1 iwbwemf inetuser 1035 Oct 11 16:31 mt-clean^%%C1^C11^C118443C%%sidebar.tpl.php
-rwxrwxrwx 1 iwbwemf inetuser 357 Oct 11 16:31 mt-clean^%%FC^FC7^FC7E3260%%content.tpl.php
-rwxrwxrwx 1 iwbwemf inetuser 16251 Oct 11 16:27 mt3-chalkboard^%%1B^1BC^1BCF14D2%%entries.tpl.php
-rwxrwxrwx 1 iwbwemf inetuser 4182 Oct 11 16:27 mt3-chalkboard^%%72^726^726DD0BD%%plugin_calendar.tpl.php
-rwxrwxrwx 1 iwbwemf inetuser 3885 Oct 11 16:27 mt3-chalkboard^%%96^967^9670EBB1%%index.tpl.php
-rwxrwxrwx 1 iwbwemf inetuser 1035 Oct 11 16:27 mt3-chalkboard^%%C1^C11^C118443C%%sidebar.tpl.php
-rwxrwxrwx 1 iwbwemf inetuser 357 Oct 11 16:27 mt3-chalkboard^%%FC^FC7^FC7E3260%%content.tpl.php
-rwxrwxrwx 1 iwbwemf inetuser 16251 Oct 11 16:27 newspaper^%%1B^1BC^1BCF14D2%%entries.tpl.php
-rwxrwxrwx 1 iwbwemf inetuser 4182 Oct 11 16:27 newspaper^%%72^726^726DD0BD%%plugin_calendar.tpl.php
-rwxrwxrwx 1 iwbwemf inetuser 3885 Oct 11 16:27 newspaper^%%96^967^9670EBB1%%index.tpl.php
-rwxrwxrwx 1 iwbwemf inetuser 1035 Oct 11 16:27 newspaper^%%C1^C11^C118443C%%sidebar.tpl.php
Posted: Tue Oct 18, 2005 9:41 am
by garvinhicking
Your listing does not contain the output for the "templates_c" directory (only the files inside there are shown in your listing), can you also check that?
Best regards,
Garvin
Posted: Tue Oct 18, 2005 4:13 pm
by Guest
Sorry, guess I'm not sure what you mean.
Posted: Tue Oct 18, 2005 4:58 pm
by garvinhicking
Not only files have permissions, also directories have permissions. You could list them on linux like this:
This is what I need now, the permissions of the directory -- not the files inside that.
Regards,
Garvin
Posted: Tue Oct 18, 2005 8:06 pm
by iwbwemf
How's this?
drwxrwxrwx 2 iwbwemf inetuser 8192 Oct 15 10:42 templates_c
Posted: Tue Oct 18, 2005 9:31 pm
by garvinhicking
Okay, that's great. But it'S right, so the error must be something else.
Can you check your serendipity_config table and see what paths settings are there? Especially serendipityPath is important to be the right directory with a trailing slash...best, post your path settings here!
Best regards,
Garvin
Posted: Wed Oct 19, 2005 3:59 am
by iwbwemf
Here is what I have:
serendipityPath - home/content/i/w/b/iwbwemf/html/serendipity/
uploadPath - uploads/
serendipityHTTPPath - /serendipity/
templatePath - templates/
uploadHTTPPath - uploads/
Posted: Wed Oct 19, 2005 11:00 am
by garvinhicking
Your serendipityPath is wrong, it needs to read:
Code: Select all
/home/content/i/w/b/iwbwemf/html/serendipity/
(Slash at the beginning!)
Best regards,
Garvin
Posted: Wed Oct 19, 2005 6:09 pm
by iwbwemf
Sorry, I must have cut that off when I copied the paths to send to you, because when I went into the config, the slash is there.
Posted: Wed Oct 19, 2005 6:20 pm
by garvinhicking
Hm, okay. Then my last guess is that you try to delete all files from your templates_c directory and see if it works then? The files there are cached, so they will be recreated without a problem.
You might also need to check if your server has a central Installation of Smarty that might be included instead of the s9y bundled one?
Regards,
Garvni
Posted: Mon Oct 24, 2005 3:49 pm
by iwbwemf
Ok, I tried that and still no difference. I also checked with my host and they cannot offer any help because they offer Serendipity with one of their higher hosting packages. So I tried some things on your idea of the templates. I kept changing the templates to see if that would make a difference. Looks like the only on that displays the comments is the Kubrick 1.2.6 port template. All of the others give me the error. Does that tell you anything? Thanks.