Page 1 of 1

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

Posted: Wed Jun 24, 2009 6:34 pm
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?

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

Posted: Wed Jun 24, 2009 7:16 pm
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.

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

Posted: Wed Jun 24, 2009 7:39 pm
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..

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

Posted: Wed Jun 24, 2009 10:04 pm
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.

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

Posted: Thu Jun 25, 2009 12:43 am
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

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

Posted: Thu Jun 25, 2009 1:59 am
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

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

Posted: Thu Jul 02, 2009 6:58 pm
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..

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

Posted: Thu Jul 02, 2009 8:18 pm
by Don Chambers
Or, as Homer Simpson would say, DOH!!! :wink:

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

Posted: Fri Jul 03, 2009 3:30 pm
by blog.brockha.us
:lol: