4images Forum & Community

4images Issues / Ausgaben => Discussion & Troubleshooting => Topic started by: javier1 on March 18, 2008, 08:56:59 PM

Title: Help. Error message: Template Error: Couldn't open Template...
Post by: javier1 on March 18, 2008, 08:56:59 PM
Hello everybody,

it´s my first topic here and I need your help.

Today, when I try to get into my 4images gallery, I had this response

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

I don´t know what could be the reason. I haven´t installed any other than the original version 1.7.1 a couple of years ago and I had no problems until now. No mods neither any other thing.

Can you help me to solve it?

Thanks in advance
Title: I need the same help!
Post by: Lamont1701 on April 22, 2008, 04:25:29 AM
I have the same error and the same cause.

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

Did you find a solution to this error?  I need to know.

I thank you in advance for any assistance.

          Thank You
Title: Re: Help. Error message: Template Error: Couldn't open Template...
Post by: mawenzi on April 22, 2008, 08:18:28 AM
Couldn't open Template ./templates/default/media/jpeg.html

... there is no jpeg.html in your template folder ...
... try to upload the default jpeg.html in your new template folder ...
... and then edit this jpeg.html to your needs / design ...
...
... and please don't use this oversized letters ... thank you ...
Title: Error message: Template Error: Couldn't open Template... NO jpeg.html FILE
Post by: Lamont1701 on April 23, 2008, 05:04:43 AM
I get this same error trying to access other locations as well.

I have not been able to find the jpeg.html file en my downloaded unzipped folder.

Why would the program ask for files that it did not even create?

Title: Re: Help. Error message: Template Error: Couldn't open Template...
Post by: mawenzi on April 23, 2008, 09:34:50 AM
... jpeg.html is (must) to find in default 4images installation in folder ...
... /templates/default/media ...
Title: The file is there the permissions are correct, still getting Template Error...
Post by: Lamont1701 on April 25, 2008, 02:53:51 AM
I have checked and the file in the error message below does exist.

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

The file permission is set to 666 as required by the installation instructions.


I do not understand why the file won't open?  Does any one have a clue?
Title: Re: Help. Error message: Template Error: Couldn't open Template...
Post by: Nicky on April 25, 2008, 09:09:27 AM
Lamont1701,

let's see it live, please post url.
Title: Re: Help. Error message: Template Error: Couldn't open Template...
Post by: † manurom on April 25, 2008, 10:56:25 AM
Hello, everybody;
it seems that your website has been hacked. What is your own 4images version, please?

You may correct it, going to your admin panel, or using PhpMyAdmin.

If not, please answer here, mentionning what is your 4images version, and whynot, what is your provider environment: Apache, MySQL, and PHP versions.
Be sure anyone here would like to help you as better as he's been helped.

Anyway, please feel free to contact me by PM. Many members helped me by this way. I've succeeded in helping others by the same way.
In a few words: you have a problem I faced once. I can and must help you. This forum is really a good place to be usefull in the Internet.
No one will never spend my time for nothing. I'd really like to help as much as I've been helped here.

Thanks to Kai, and everybody at 4homepages and DotsUnited.
Title: Re: Help. Error message: Template Error: Couldn't open Template...
Post by: slime on April 29, 2008, 08:17:42 AM
ich habe seit heute auch so einen fehler
Template Error: Couldn't open Template ./templates/default/media/ru.html
aber die datei ru.html gibt es doch garnicht.... hat es ja auch nie gegeben....
von dem was der vorredner sagt versteh ich nur die hälfte war das jetzt ein hakker angriff und was muss ich tun um die seite wieder auf die beine zu stellen....
bittte helft mir
Title: Re: Help. Error message: Template Error: Couldn't open Template...
Post by: Janine+Arielle on May 03, 2008, 10:05:02 AM
Ich bekomme seit ich die Galerie habe bei manchen Bildern diesen Fehler:

Template Error: Couldn't open Template ./templates/4round/exif_bit.html

Aber wie gesagt nicht bei jedem Bild und es ist da auch egal, wer diese hoch läd. Bis jetzt ging der Fehler zu beheben, wenn ich den "Auto-Image-Resizer" verwendet habe. Danach gingen die Bilder dann immer. Jetzt hilft aber auch das nicht bei 3 neuen Bildern.

Bitte dringend um Hilfe!!!
Title: Re: Help. Error message: Template Error: Couldn't open Template...
Post by: † manurom on May 03, 2008, 10:25:13 AM
Hello;

there may be a few reasons for your own problem:



Anyway, keep on posting here. Many members are awaiting to give any help.

By the way, I've upgraded a few Vierstra's templates for some members. Please look at your 4round template directory. If the file exif_bit.html does not exist, you can PM me and I will provide you an updated 4round template very soon.

Kindly salutations.
Title: jpg.html Problem Solved I think???
Post by: Lamont1701 on May 09, 2008, 10:40:13 PM
There is a file named "./templates/default/media/jpg.html"  but not a "./templates/default/media/jpeg.html"   (a jpg.html file but no jpeg.html file)

So I concluded that the programmers must have meant to call the file jpg.html but make a mistake and called the file jpeg.html in some locations in their programming.

So my Solution to the problem was to copy the jpg.html file, then rename the file jpeg.html.  Therefore I now have two versions of the same file in the "/templates/default/media" folder.

1)  jpg.html    (the orginal file)
2)  jpeg.html  (the copy file)

Eveything seems to be working fine now;  "so far."     :D

Title: Re: Help. Error message: Template Error: Couldn't open Template...
Post by: lil-pita on May 13, 2008, 06:41:08 AM
Hello, everybody;
it seems that your website has been hacked. What is your own 4images version, please?

You may correct it, going to your admin panel, or using PhpMyAdmin.

  • Using your own admin panel:
    Connect to your website administration panel (eg: http://www.your_site.com/admin/)
    Please then log in with your own administrator's datas.

    Once logged, you are in the administration environment.
    Please click, on the right side, on "Settings".
    Then, please, go to "Upload Settings", in the left side.

    Have a look of what is described in the item "Valid file extensions". It maybe only "php".

    Anyway, replace the existing value with that new one: "jpg,gif,png,aif,au,avi,mid,mov,mp3,mpg,swf,wav,ra,rm,zip,pdf".

    Once done, please launch your FTP client, go to your own website, and try to find a file, with .php extension, that you've never uploaded. Don't look only in your 4images root. Look also in your 4images/data/ directory. This php file must be hidden in any place.

    Please also, upgrade your script to the last version. Many security holes have been solved.


  • Using PhpMyAdmin, for advanced users that have done a previous backup:
    Go to your database administration.
    Then choose your own database.
    Please then edit your database entry: 4images_settings, where 4images is your database name.
    Then edit your entry "allowed_mediatypes", and change the existing value to: "jpg,gif,png,aif,au,avi,mid,mov,mp3,mpg,swf,wav,ra,rm,zip,pdf"
    Save and try to browse your own website. Your own problem should be then solved.

If not, please answer here, mentionning what is your 4images version, and whynot, what is your provider environment: Apache, MySQL, and PHP versions.
Be sure anyone here would like to help you as better as he's been helped.

Anyway, please feel free to contact me by PM. Many members helped me by this way. I've succeeded in helping others by the same way.
In a few words: you have a problem I faced once. I can and must help you. This forum is really a good place to be usefull in the Internet.
No one will never spend my time for nothing. I'd really like to help as much as I've been helped here.

Thanks to Kai, and everybody at 4homepages and DotsUnited.


You just saved me a wole nights worth of headaches... thanks soooo much...
Title: Thank You, Alll
Post by: Lamont1701 on May 22, 2008, 08:21:26 AM
I do believe that the files provided to me by the persons here have solved the problem!

        Thank You