Author Topic: Help. Error message: Template Error: Couldn't open Template...  (Read 15848 times)

0 Members and 1 Guest are viewing this topic.

Offline javier1

  • Pre-Newbie
  • Posts: 1
    • View Profile
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

Offline Lamont1701

  • Newbie
  • *
  • Posts: 22
    • View Profile
    • Seti UNIVERSE
I need the same help!
« Reply #1 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
Seti UNIVERSE:   http://www.setiuniverse.com/

All of the SETI (The SEARCH for EXTRA--TERRESTRIAL INTELLIGENCE)
disciplines in one place. (Radio, Optical, Microwave, Amateur SETI,
and UFO Information)

Stop by Seti UNIVERSE and find out, what you didn't know about SETI.

Seti UNIVERSE also has VIDEOs, MultiMedia, Games, a Forum, Seti News,
BOINC Partners News, a Link to Us, Submit Your Website, SciFi Short
Stories, and Poetry.

http://www.setiuniverse.com/

Offline mawenzi

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: Help. Error message: Template Error: Couldn't open Template...
« Reply #2 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 ...
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline Lamont1701

  • Newbie
  • *
  • Posts: 22
    • View Profile
    • Seti UNIVERSE
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?

Seti UNIVERSE:   http://www.setiuniverse.com/

All of the SETI (The SEARCH for EXTRA--TERRESTRIAL INTELLIGENCE)
disciplines in one place. (Radio, Optical, Microwave, Amateur SETI,
and UFO Information)

Stop by Seti UNIVERSE and find out, what you didn't know about SETI.

Seti UNIVERSE also has VIDEOs, MultiMedia, Games, a Forum, Seti News,
BOINC Partners News, a Link to Us, Submit Your Website, SciFi Short
Stories, and Poetry.

http://www.setiuniverse.com/

Offline mawenzi

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: Help. Error message: Template Error: Couldn't open Template...
« Reply #4 on: April 23, 2008, 09:34:50 AM »
... jpeg.html is (must) to find in default 4images installation in folder ...
... /templates/default/media ...
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline Lamont1701

  • Newbie
  • *
  • Posts: 22
    • View Profile
    • Seti UNIVERSE
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?
Seti UNIVERSE:   http://www.setiuniverse.com/

All of the SETI (The SEARCH for EXTRA--TERRESTRIAL INTELLIGENCE)
disciplines in one place. (Radio, Optical, Microwave, Amateur SETI,
and UFO Information)

Stop by Seti UNIVERSE and find out, what you didn't know about SETI.

Seti UNIVERSE also has VIDEOs, MultiMedia, Games, a Forum, Seti News,
BOINC Partners News, a Link to Us, Submit Your Website, SciFi Short
Stories, and Poetry.

http://www.setiuniverse.com/

Offline Nicky

  • Administrator
  • 4images Guru
  • *****
  • Posts: 3.195
    • View Profile
Re: Help. Error message: Template Error: Couldn't open Template...
« Reply #6 on: April 25, 2008, 09:09:27 AM »
Lamont1701,

let's see it live, please post url.
cheers
Nicky
Your first three "must do" before you ask a question ! (© by V@no)
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

nicky.net 4 4images
Signature stolen from mawenzi

Offline † manurom

  • Full Member
  • ***
  • Posts: 227
    • View Profile
    • manurom's 4images templates
Re: Help. Error message: Template Error: Couldn't open Template...
« Reply #7 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.

  • 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.

Offline slime

  • Full Member
  • ***
  • Posts: 155
    • View Profile
Re: Help. Error message: Template Error: Couldn't open Template...
« Reply #8 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

Offline Janine+Arielle

  • Pre-Newbie
  • Posts: 4
    • View Profile
Re: Help. Error message: Template Error: Couldn't open Template...
« Reply #9 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!!!

Offline † manurom

  • Full Member
  • ***
  • Posts: 227
    • View Profile
    • manurom's 4images templates
Re: Help. Error message: Template Error: Couldn't open Template...
« Reply #10 on: May 03, 2008, 10:25:13 AM »
Hello;

there may be a few reasons for your own problem:

  • First:
    the file exif_bit.html does not exist in your template (Vierstra's 4round) and you use 4images version 1.7.4 or higher. See here Vierstra's site and you will notice that the template 4round was designed for 4images 1.7.1, wich did not included EXIF datas.
    HINT: simply copy the file exif_bit.html from the default template provided in 4images to your 4round template directory.
    Another hint: look at this thread: To Template Developers: Update 1.7.2 -> 1.7.3 -> 1.7.4 -> 1.7.6.
    It will help to update your favourite template.
  • Second:
    while using "Auto-Image-Resizer", maybe the GD Library destroys EXIF Datas on resizing.


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.

Offline Lamont1701

  • Newbie
  • *
  • Posts: 22
    • View Profile
    • Seti UNIVERSE
jpg.html Problem Solved I think???
« Reply #11 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

Seti UNIVERSE:   http://www.setiuniverse.com/

All of the SETI (The SEARCH for EXTRA--TERRESTRIAL INTELLIGENCE)
disciplines in one place. (Radio, Optical, Microwave, Amateur SETI,
and UFO Information)

Stop by Seti UNIVERSE and find out, what you didn't know about SETI.

Seti UNIVERSE also has VIDEOs, MultiMedia, Games, a Forum, Seti News,
BOINC Partners News, a Link to Us, Submit Your Website, SciFi Short
Stories, and Poetry.

http://www.setiuniverse.com/

Offline lil-pita

  • Pre-Newbie
  • Posts: 1
    • View Profile
Re: Help. Error message: Template Error: Couldn't open Template...
« Reply #12 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...

Offline Lamont1701

  • Newbie
  • *
  • Posts: 22
    • View Profile
    • Seti UNIVERSE
Thank You, Alll
« Reply #13 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
Seti UNIVERSE:   http://www.setiuniverse.com/

All of the SETI (The SEARCH for EXTRA--TERRESTRIAL INTELLIGENCE)
disciplines in one place. (Radio, Optical, Microwave, Amateur SETI,
and UFO Information)

Stop by Seti UNIVERSE and find out, what you didn't know about SETI.

Seti UNIVERSE also has VIDEOs, MultiMedia, Games, a Forum, Seti News,
BOINC Partners News, a Link to Us, Submit Your Website, SciFi Short
Stories, and Poetry.

http://www.setiuniverse.com/