4images Forum & Community
4images Issues / Ausgaben => Discussion & Troubleshooting => Topic started 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
-
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
-
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 ...
-
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?
-
... jpeg.html is (must) to find in default 4images installation in folder ...
... /templates/default/media ...
-
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?
-
Lamont1701,
let's see it live, please post url.
-
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.
-
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
-
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!!!
-
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 (http://www.vierstra.com/4images.htm) 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 (http://www.4homepages.de/forum/index.php?topic=13755.0).
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.
-
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
-
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...
-
I do believe that the files provided to me by the persons here have solved the problem!
Thank You