Smarty error: unable to read resource: "404.tpl"

Found a bug? Tell us!!
Post Reply
Myrddin
Posts: 3
Joined: Tue Feb 26, 2008 11:22 pm

Smarty error: unable to read resource: "404.tpl"

Post by Myrddin »

Hello everyone.

I was using serendipity for three blogs on my url, and everything worked fine until now. I want to underline the quality of this software, thank you so much for the great job.

But suddenly, all the instances of the blogs I had put on my FTP account suddenly stopped working, for an unknown reason. You can see the problem here for example :

http://noces.emrys.be
http://poker.emrys.be

On both sites, though installed in different directories, using different databases, different users, stopped working at the same time and gave me that error instead.

Could you help me by telling me what to do to fix these things ?

Thank you in advance.
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

Sounds like the server config changed.

I'd bring this up with my provider as quickly as possible. It'll probably wind up being something with the PHP include path. Your provider will know what changed, and should be able to instruct you on exactly how to modify your php.ini -- or whatever else restores the modification they made.
Judebert
---
Website | Wishlist | PayPal
Myrddin
Posts: 3
Joined: Tue Feb 26, 2008 11:22 pm

Post by Myrddin »

Thanx for the help.

I received a reply from my support.

It seems a physical path to the location of my files have been stored somewhere by the install of the script. They migrated the server, and the physical path has then changed. I know what to change to, but I don't know where I should change it, as I can't access to the administration page anymore.

Could you provide me some help ?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

They should tell you about changes in the physical path layout, it's bad behaviour of a provider to changes things without notifications.

You need to search your Database for references of the physical path (make a SQL dump). As a quickstart, you should be able to open your admin login:

http://noces.emrys.be/serendipity_admin.php

and then go to the configuration to change your paths. Some other path references might be within the serendipity_config DB table and/or inside the configuration of all your event plugins.

However, the directory listing of http://noces.emrys.be/ indicates there are many missing serendipity files, seems like your provider only copied part of the files. Beat him with a rythm stick. :-)

Best 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/
Myrddin
Posts: 3
Joined: Tue Feb 26, 2008 11:22 pm

Post by Myrddin »

Ok, when I changed the main path, it worked again (I just removed noces.emrys.be from the server, be quiet, poker.emrys.be is working now).

Fun thing is : their support tells me that recording physical absolute paths is wrong, and you tell me that changing physical paths without warning is wrong also.

As a developer, I can understand both points of view ;). But I was sandwiched between these :roll:

Anyway, thanks for the quick and precise help ; keep up the good job !
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Recording of physical paths is not the best thing to do, I agree. But there are circumstances in s9y (shared installations) where this is required.

But that doesn't change the fact that a provider should inform their users about ANY changes that MIGHT have an effect on scripts. Serendipity is not the only PHP tool that will go havoc if physical path layouts are changed.

Best 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/
Post Reply