Warning: Smarty error: unable to read resource: "index.tpl"

Skinning and designing Serendipity (CSS, HTML, Smarty)
Post Reply
blog.brockha.us
Regular
Posts: 695
Joined: Tue Jul 03, 2007 3:34 am
Location: Berlin, Germany
Contact:

Warning: Smarty error: unable to read resource: "index.tpl"

Post by blog.brockha.us »

I changed my local test blog (updated the bulletproofed theme).

Now my local blog reports

Warning: Smarty error: unable to read resource: "index.tpl" in /var/www/blog/bundled-libs/Smarty/libs/Smarty.class.php on line 1092

and nothing more.. How do I find out *wich* index.tpl is not accessible? Both files (and directories) in bp and default are RWX for *all* so it can't be an file access right problem.

I'm near to reinstalling the whole blog, because I'm absolutely blind in that situation. :(

Someone with an idea where to look into?
- Grischa Brockhaus - http://blog.brockha.us
- Want to make me happy? http://wishes.brockha.us/
Don Chambers
Regular
Posts: 3652
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Re: Warning: Smarty error: unable to read resource: "index.tpl"

Post by Don Chambers »

Did you change the folder name? Can you log into the backend and change templates to something different? Perhaps something with templates_c? I dunno - have never encountered that problem.
=Don=
blog.brockha.us
Regular
Posts: 695
Joined: Tue Jul 03, 2007 3:34 am
Location: Berlin, Germany
Contact:

Re: Warning: Smarty error: unable to read resource: "index.tpl"

Post by blog.brockha.us »

I changed the folder name *later* in the hope, s9y would use the default theme then, what wasn't changed at all. Nothing changed.

And no: I can''t login, because the only thing the blog shows me at the moment is the error message *only*

I think: The only way to restore the blog is to completely rebuild it, as this error message says nothing meaningful to me.. :(

This is bad of course. If this would be my first impression of s9y... omg.. :)

I don't think, something is wrong with the template or s9y itself. But I have no idea, where to search for the problem, as all index.tpl's are there and accessible..
- Grischa Brockhaus - http://blog.brockha.us
- Want to make me happy? http://wishes.brockha.us/
Don Chambers
Regular
Posts: 3652
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Re: Warning: Smarty error: unable to read resource: "index.tpl"

Post by Don Chambers »

log into your site as http://yourtestdomain/serendipity_admin.php. Seems odd to me that you are getting a smarty error saying index.tpl cannot be read - I would think s9y would fall back to templates/default/index.tpl... but perhaps that only happens if a template does not actually have an index.tpl. Hopefully someone else will offer a better suggestion.... or maybe I will see if I can trigger the same error.
=Don=
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Warning: Smarty error: unable to read resource: "index.tpl"

Post by garvinhicking »

Hi!

What exactly did you update?

Such an error would really only occur if you maybe changed anything in the serendipityPath options or if a file is not shell-accessibly.

You could check the serendipity_getTemplateFile function and see what it does...

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/
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: Warning: Smarty error: unable to read resource: "index.tpl"

Post by yellowled »

blog.brockha.us wrote:And no: I can''t login, because the only thing the blog shows me at the moment is the error message *only*
Hmmm. Just a wild guess, but maybe it's neither /templates/bulletproof/index.tpl nor /templates/default/index.tpl, but /templates/default/admin/index.tpl?

I seem to remember a case where someone was unable to log into his blog since he accidentally deleted /templates/default/ altogether ...

YL
blog.brockha.us
Regular
Posts: 695
Joined: Tue Jul 03, 2007 3:34 am
Location: Berlin, Germany
Contact:

Re: Warning: Smarty error: unable to read resource: "index.tpl"

Post by blog.brockha.us »

Thanks to all! The hint of Don leaded me to the solution.. Calling the admin interface directly the blog said, it can't access admin/index.tpl. As this file was accessible too, I searched a little deeper..

It was the folder templates itself, that was not accessible for the webserver... :roll:

Oh man, sometimes I am a DAU, too (DAU is German meaning: most stupid user you can imagine..;))

Sorry for my absolute blindness..
- Grischa Brockhaus - http://blog.brockha.us
- Want to make me happy? http://wishes.brockha.us/
Don Chambers
Regular
Posts: 3652
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Re: Warning: Smarty error: unable to read resource: "index.tpl"

Post by Don Chambers »

Or, as Homer Simpson would say, DOH!!! :wink:
=Don=
blog.brockha.us
Regular
Posts: 695
Joined: Tue Jul 03, 2007 3:34 am
Location: Berlin, Germany
Contact:

Re: Warning: Smarty error: unable to read resource: "index.tpl"

Post by blog.brockha.us »

:lol:
- Grischa Brockhaus - http://blog.brockha.us
- Want to make me happy? http://wishes.brockha.us/
Post Reply