Author Topic: Template Error  (Read 11176 times)

0 Members and 1 Guest are viewing this topic.

Offline StlComics

  • Pre-Newbie
  • Posts: 8
    • View Profile
Template Error
« on: July 31, 2007, 08:32:46 PM »
Hello!

I have been running the 4Images galleries on my site now for some time with no problems.  Today I started getting an error for what seems like no reason.  The error is as follows:

Quote
Template Error: Couldn't open Template ./templates/default/media/php.html

Here is a link to the gallery: http://gallery.stlcomics.com/

Any help would be very much appreciated.

THANKS!

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: Template Error
« Reply #1 on: July 31, 2007, 08:36:37 PM »
Error say as is. Must upload php.html in: templates/default/media. Will work then.
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Jacob

  • Guest
Re: Template Error
« Reply #2 on: July 31, 2007, 08:38:54 PM »
@thunderstrike Right!  :D

@StlComics I think you are trying to add a new extension? If yes check this:
http://www.4homepages.de/forum/index.php?topic=7277.0

manurom

  • Guest
Re: Template Error
« Reply #3 on: August 01, 2007, 01:01:32 AM »
Hello;
I believe that a member has uploaded a file with the PHP extension. Look at this post: php.html

Offline StlComics

  • Pre-Newbie
  • Posts: 8
    • View Profile
Re: Template Error
« Reply #4 on: August 01, 2007, 06:14:43 AM »
That was it.  I hate hackers.  They just make more work I don't need. 

I am still having some problems though. None of my images are showing up.  They are still in the files where they should be, but the software can't find them.  I'm going to upgrade to the newest version (1.7.4) and hopefully that will fix it. 

Offline StlComics

  • Pre-Newbie
  • Posts: 8
    • View Profile
Re: Template Error
« Reply #5 on: August 01, 2007, 06:41:41 AM »
OK, I have upgraded to the newest version (1.7.4), but I am still having problems.  None of the images are showing up.  Any ideas why that might be? 

Here is a link to the gallery again:  http://gallery.stlcomics.com/

Thanks to all who have helped so far! 


Offline KurtW

  • 4images Guru
  • *******
  • Posts: 2.778
    • View Profile
    • Malediven-Bilder ~~Dreams~~
Re: Template Error
« Reply #6 on: August 01, 2007, 06:58:13 AM »
Hi,

have you deleted all images  :?: :?: :?: :?: :oops:
Can't find any images in your category folders


Kurt

Offline StlComics

  • Pre-Newbie
  • Posts: 8
    • View Profile
Re: Template Error
« Reply #7 on: August 01, 2007, 07:09:17 AM »
All of the images are still live, and working just fine.  I just removed the index.html from the media folder so you can see the files are still very active here:

http://gallery.stlcomics.com/data/media/

The software apparently can't find them any longer.   :|

manurom

  • Guest
Re: Template Error
« Reply #8 on: August 01, 2007, 11:13:54 AM »
Hello;
what do you see if you try to edit an image in your Admin Control Panel?

Offline StlComics

  • Pre-Newbie
  • Posts: 8
    • View Profile
Re: Template Error
« Reply #9 on: August 01, 2007, 07:18:09 PM »
Oddly enough, when I try to edit an image, the thumbnail shows up, but not the fullsize image.   :roll:

manurom

  • Guest
Re: Template Error
« Reply #10 on: August 01, 2007, 07:24:05 PM »
Wow;
with 4195 pictures, it will be hard to restore...
Have you got a recent backup of your database?

Offline StlComics

  • Pre-Newbie
  • Posts: 8
    • View Profile
Re: Template Error
« Reply #11 on: August 01, 2007, 08:02:39 PM »
I don't have a recent backup actually, which is a stupid thing, I know.  Why should I need that though?  The rest of the info for each picture is still in place.  It is just the pictures themselves that aren't showing up. 

Offline StlComics

  • Pre-Newbie
  • Posts: 8
    • View Profile
Re: Template Error
« Reply #12 on: August 01, 2007, 08:05:44 PM »
I've just checked the DB, and all the info there seems to also be in place.  Nothing is missing, so a restoration of the DB shouldn't help this problem, right?

Offline StlComics

  • Pre-Newbie
  • Posts: 8
    • View Profile
Re: Template Error
« Reply #13 on: August 02, 2007, 07:02:01 PM »
I've finally just found the problem!  On the admin control panel, under 'General/Settings/Upload Settings/Valid File Extensions' the file extensions were set to only accept PHP files.  Anything else was not recognized.  Apparently when the site was hacked, the hacker first made this change so that the virus file that was uploaded would work.

Anyhow, I'm back in business now.  Thanks again to everyone who helped!   :mrgreen:

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: Template Error
« Reply #14 on: August 02, 2007, 09:54:47 PM »
Quote
Apparently when the site was hacked, the hacker first made this change so that the virus file that was uploaded would work.

Should take consider for 4images owner to make correction !!!  8O
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?