4images Forum & Community
4images Help / Hilfe => FAQ, Tips => Topic started by: Chris on March 17, 2005, 04:15:49 AM
-
I´ve got a problem uploading images or files larger than 2 MB. i have changed the image size in the settings but I still can´t upload more than 2 MB - it doesn´t even give me an error message. Does anyone have an idea of what could be wrong?
This is a limitation of your server's PHP configuration. 2Mb is the default upload file size limit when PHP is installed on a web server. Only your hosting provider can change this setting inside php.ini
The other option is to first upload the file via FTP and then use the "Check New Images" function inside the admin control panel
[UPDATE]
Thanks to techmob (http://www.4homepages.de/forum/index.php?topic=13781.msg77622#msg77622) for additional info on this topic.
The following settings in php.ini affect files upload:file_uploads
1 to accept file uploads, 0 to not accept file uploads. Defaults to 1.
post_max_size
This is the maximum size of a POST request that PHP will accept. The default for PHP 4.3.x is 8M. If the file(s) you are trying to upload have a single or combined size over this value, PHP will exit. This affects the total post data. For example, if this were set to 8M and you are uploading four 3M files, PHP would not accept the files. You could, however, upload the four 3M files individually without a problem from this setting.
upload_max_filesize
This is the maximum size of an individual uploaded file. The default for PHP 4.3.x is 2M.
max_input_time
This is the maximum time PHP will accept input in seconds. The default for PHP 4.3.x is 60.
If you have access/persmission to modify settings directly in php.ini, do that, but if you can't do that AND your server is using Apache or other type of server that support .htaccess then you can insert the following into .htaccess in your gallery:php_flag file_uploads on
php_value post_max_size "8M"
php_value upload_max_filesize "2M"
php_value max_input_time "60"
Change the values to satisfy your needs ;)
-
Another possible sollution is add
php_value upload_max_filesize "8M"
into .htaccess file into your 4images root dir. (in this case it should change the max upload size to 8mb
Note, that this method is not 100% guaranteed working.
-
where do i upload the images to when doing it with ftp?
-
Please continue read FAQ, you almost there :P
P.S. this makes wonder, what in this topic made u ask such unrelated to the topic question?
-
Hi dear friends.
I have been reading this whole week about this "2Mb image problem" and I tryed everything I could.
1. My server provided me a file php.ini where I changed the max file to 15 MB
* Nothing changed...
2.I tryed to make the htaccess file with:
php_value upload_max_filesize "15M" inside.
* the page gets offline with this error message:
Internal Server Error
The server encountered an internal error or misconfiguration and was
unable to complete your request.
Please contact the server administrator, webmaster@yoursite.com and inform
them of the time the error occurred, and anything you might have done that
may have caused the error. 8O
3 I removed the .htaccess and everything came back to normal again. :roll:
This is what my server told me aboout .htaccess:
That's because of phpsuexec, which is incidentially the reason why the php.ini thing works.
More on that subject here:
http://ion-web.com/forum/showthread.php?t=3D1053
So, yank that out of the .htaccess, as it won't work. The php.ini thing should work for you though, just copy the file over.
4.My server Checked out the upload_max_filesize listed on my site
with test.php:
It's currently set to 15 megabytes. That's what it should be, which would indicate that the problem lies not with PHP but perhaps with something else.
5 Do you have any idea of what possibly is going on? Because neither I nor the server knows ??
Thank you for any help :oops:
-
If you can use your own php.ini you must put the custom php.ini in each Folder where the Script is need the changes...
I think is it not enough to put the custom php.ini in the root Folder, then i think the custom php.ini has no recursive effekt...
I hope you understand my bad english... *g*
-
Thanks! I will try this :)
No problem with your english. It is not my first language either :mrgreen:
-
Nope it doesnt work :(
I put the php.ini file EVERYWHERE but nothing happens :(
I put on the data directory, media, all the folders!
Nothing really!
Please could you try to think of something else I could try to do?
This is really making me nuts!
-
A link to your phpinfo could help ;) (refer FAQ for more info)
-
I put on the data directory, media, all the folders!
Not in the data Folder... (o:
You must put them in the Script Folder...
Like this:
/php.ini
/includes/php.ini
/admin/php.ini
-
My php :
http://www.brassar.se/galleria/test/test.php
I am very ashamade to say this, but it didnt worked :(
Please... Is there anything else I could do? :cry:
-
So, how big where the files you tested with? 2mb? 3mb? what is the max size you CAN upload?
-
1,107 is the heaviest so far :oops:
-
I am trying a 3 MB file.. Doesnt work.. Just via ftp :|
-
Ok, lets test it, shall we? ;)
In member.php find:if ($action == "uploadimage") {
Insert below:echo "<pre>";
print_r($HTTP_POST_FILES);
Then upload a small file, then a big file and post the text that should be showed on top of the page for both files. (disregard any warning messages that may appier as well)
-
Hi!
It is like this now. I succeed to upload if I am on the CP, but if I try to upload as an user it gives me this message with a 1,5MB file:
Array
(
[media_file] => Array
(
[name] => Nenhuma Sombra Por Perto.mp3
[type] => audio/mpeg
[tmp_name] => /tmp/phpEGmVIc
[error] => 0
[size] => 1507477
)
[thumb_file] => Array
(
[name] =>
[type] =>
[tmp_name] =>
[error] => 4
[size] => 0
)
)
================
And this with a 7Mb file
Array
(
[media_file] => Array
(
[name] => 06 - Superfcie.mp3
[type] => audio/mpeg
[tmp_name] => /tmp/phpl8vpbI
[error] => 0
[size] => 7010725
)
[thumb_file] => Array
(
[name] =>
[type] =>
[tmp_name] =>
[error] => 4
[size] => 0
)
)
-
Well, as you can see there is no [error] for the media file in both cases, that means PHP accepted it. So, the problem is in 4images settings. How much is the max allowed filesize you set in the settings?
Some how I think the answer will be: "DOH! (http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/40.gif)"
;) :lol:
-
Oh Boy :oops:!
you REALLY know your thing!
"DOH! (http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/40.gif)"
It was the limit on the last menu (under Categories).
Thanks a lot! :D It Works!!!!
PS: I think that now this Faq is complete :mrgreen:
-
mm i dunno if im too dumb but theres no "if ($action == "uploadimage") {" in my member.php file i have Version 4images 1.7.2 installed.
Help would be gratefully apreciated.
-
yes, there is.
-
Mmmm i think im dumb here is my /root member.php file:
http://www.robertojuri.com.ar/downloads/b/member.rar
-
ok i finally found it seems i had it different cause some of the mods i installed, this is the code:
if ($action == "uploadimage" || $action=="multiuploadimage") {
i placed:
echo "<pre>";
print_r($HTTP_POST_FILES);
below it works but got the array error, i set the filezise and thumbnail size to 99000 and i still get the array error
please help. :roll:
Thanx
-
what is array error?
-
Array
(
[media_file] => Array
(
[name] => DSC01330.JPG
[type] => image/pjpeg
[tmp_name] => /tmp/phpF6f2k9
[error] => 0
[size] => 2272608
)
[thumb_file] => Array
(
[name] =>
[type] =>
[tmp_name] =>
[error] => 4
[size] => 0
)
)
-
http://us3.php.net/manual/en/features.file-upload.errors.php
error 4 = file was not uploaded.
-
strange, its the same error jmello got and although it gives me that error still uploads the photo, could it be a thumbnail error?
:?
-
1)
Array
(
[media_file] => Array
(
[name] => DSC01330.JPG
[type] => image/pjpeg
[tmp_name] => /tmp/phpF6f2k9
[error] => 0
[size] => 2272608
)
[thumb_file] => Array
(
[name] =>
[type] =>
[tmp_name] =>
[error] => 4
[size] => 0
)
)
2) I still dont understand what is the problem in the first place...
-
the only problem is that when i upload a file bigger than 2 mb i get that script, i dont know if that is ok or if i did something wrong, besides giving me that script the file is uploaded.
Question are:
1)is this script an error?
2)is there a way to geting rid of it?
Thanx v@no for your help bro :wink:
-
This "script" is what you added from the first page as a debug code. you should remove it as soon as the issue is resolved.
-
hi,
I have godaddy.com as my host.
I used their software called metropolis to install 4images.
I cant find anywhere inside the gallery folder where I installed 4images (in ANY) folder where my php.ini file is.
Anybody successfully set the larger file size. I am really lost here.
-
hi,
I have godaddy.com as my host.
I used their software called metropolis to install 4images.
I cant find anywhere inside the gallery folder where I installed 4images (in ANY) folder where my php.ini file is.
Anybody successfully set the larger file size. I am really lost here.
Please ask your hoster, if and how you can change set settings of php.ini
-
Hallo!
Könnte mir bitte jemand weiterhelfen:
Ich kann nicht keine Fotos (*.jpg), welche grösser als 2100x2100 Pixels sind, uploaden!
Alle kleineren Fotos & andere Dateien (z.B. Videos mit 8MB) kann ich erfolgreich uploaden. Die Dateigrösse spielt keine Rolle, nur die Pixel-Grösse.
Sobald ich ein Foto versuche upzuloaden, kommt nach einiger Zeit (Es wurde in dem Ordner auf dem Server eine temp-Datei erzeugt) einen "Internal Server Error - 500". Das Foto erscheint dann nicht in der Galerie und das Thumbnail kann auch nicht erzeugt werden. Es scheint so, dass ich beim Upload oder GD-Image-Risizer ein Problem habe.
Meine Galerie funktioniert schon seit knapp 1 Jahr, aber seit kurzer Zeit geht dies nicht mer. Es gab einmal ein Update von der PHP Version.
Woran kann dieses Problem liegen?
Ich bin euch sehr dankbar für die Unterstüzung! Es ist so seltsam...
Vielen Dank im Voraus.
Grüsse
Hello!
I need help.
I can't upload all photos.
I can only upload photos with low quality!
When I will upload big photos (*.jpg) with high qualitiy (=> over than 2100x2100 pixels) than it comes "internal server error 500" (=> The server encountered an internal error or misconfiguration and was unable to complete your request.).
All photos with a lower resolution (<2100px & filesize not relevant) and other files (e.g videos with 8MB filesize) can I upload without this error!
My gallery functioned scarcely one year, but recently it does not go any longer.
What is there the problem? Why aren't function my galerie?
Otherwise a very good gallery!!
Thanks a lot!
Greetings
Technical data:
4images version: 1.7.4
PHP version: 4.4.7
phpMyAdmin 2.8.0.3
Installed Mods: Auto image resize upload, checkimages_v2.11, Batch CopyMoveEdit Images v3.7.3 & many more......
Server: Hired Webhosting respectively Shared Webpack (with unlimited traffic).
PHP-Configuration (php_value) => not changeable:
upload_max_filesize 12M
upload_tmp_dir no value
file_uploads on
post_max_size 12M
max_input_time -1
max_execution_time 30
memory_limit 32M
register_globals Off
safe_mode Off
GD Support enabled
GD Version bundled (2.0.28 compatible)
-
hi,
bitte link zu diesem grossen bild.
würde es auf meinem server testen.
-
Hier ist der Link zu einem Beispiel Foto, welches ich mit einer Kamera aufgenommen habe und nicht "funktioniert":
www.scluzern.com/test.jpg (http://www.scluzern.com/test.jpg)
Dieses Foto wurde in die richtige Kategorie (XXX/data/media/XXX/test.jpg) hinaufgeladen, dh. ist auf dem Server vorhanden. Nach dem Uploaden kommt erst der Fehler 500, ohne einen MSQL Eintrag zu machen (dh Bild ist nicht auffindbar) und ohne ein Thumbnail zu erzeugen.
Ich hatte viele Bilder ausprobiert (auch selber gemacht mit einem Grafik-Programm) und dabei festgestellt, dass wie gesagt ab etwa 2100 Pixel den Fehler 500 kommt.
Zusätzlich darf ich auf dem Server nur noch max 0755 CMOD Rechte für Verzeichnisse geben. Dies ist aber nicht der Ursacher, weil bei allem andere geht es ja.
Ich danke vielmals für die Hilfe!!
-
hi,
ich hab das ganze auf meinem server probiert (keine mods vorhanden)
upload über 4images (nicht über ftp) hat funktioniert.
erstellung der thumbnail auch.
http://www.nicky.net/4test/index.php
hast schon mal das ganze ohne mods probiert? wäre nicht schlecht zu wissen, woran es liegt.
am server oder den mods.
-
Ich probierte nochmals:
Zuerst habe ich im ACP den MOD: "Auto-resize image" & "Automatisch Thumbnails erstellen" ausgeschaltet und siehe da, der Upload funktionierte einwandfrei (*Überrrascht* ;) )!
Danach habe ich die Funktion "Automatisch Thumbnails erstellen" = ON & "Auto-resize image" = OFF und es funktionierte nicht mehr... :(
Zuletzt: "Automatisch Thumbnails erstellen" = OFF & "Auto-resize image" = ON und ebenfalls geht es nicht.
Entweder stimmt an den MODs (zB Auto image resize on upload) etwas nicht oder es happert beim GD (Graphics Library) auf meinem Server. Jedoch habe ich das Gefühl, dass es beim Server liegt, da ich sonst beim Upload & Image Resizer keine anderen Mods installiert habe.
Kann das sein, wenn der Server zu lange braucht, um ein Bild mit hoher Pixelanzahl zu verkleinern, dass dann dieser Fehler 500 kommt?
Danke...!
- Nachtrag:
Zum Schluss habe ich noch über das ACP unter "Auto-image-resizer" versucht das hinaufgeladene Bild zu verkleinern auf eine kleinere Grösse. Resulat: "Konvertiere Bild-Datei: test.jpg" im Browser & nach langer Zeit immer noch kein "Fertig" (Zusätzlich ist auf dem FTP-Server unter data/media das Foto "test.JPG" verschwunden und stattdessen eine Datei mit "test.JPG.bak" gespeichert worden.)
-
ja das kann sein.
ich probiere (wieder ohne mods) dein bild zu verkeinern auf 1000 mal 750.
ging schnell
//NACHTRAG
ich würde es trotzdem ohne mods probieren :)
-
Was kann beim PHP-Script auf dem Server falsch eingestellt sein?
Soll ich mal meinen Server-Admin danach fragen?
Gibt es noch eine andere Alternative? Etwas falsch eingestellt?
Kann ich zu Testzwecken einfach ein 2. Mal die orginale Galerie Version 1.7.4 (natürlich nicht öffentlich zugänglich) uploaden & dann nochmals testen. Sonst wird es schwierig ohne Mods zu testen bei mir (ausser ich müsste ein Teil der Seiten einzeln uploaden, jedoch ist dann nicht gewährleistet, dass es dann wirklich ohne Mod ist).
Wie kann ich sonst dieses Problem noch lösen?
1000x Danke für deine Hilfe...
-
PHP Version 5.1.1
einstellung auf meinem server
upload_max_filesize 20M
upload_tmp_dir no value
file_uploads on
post_max_size 20M
max_execution_time 300
max_input_time 60
memory_limit 45M
register_globals On
safe_mode Off
GD
GD Support enabled
GD Version 2.0 or higher
FreeType Support enabled
FreeType Linkage with freetype
FreeType Version 2.1.7
T1Lib Support enabled
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
-
Also es liegt 100%ig am Server!
Habe eine ungeänderte, orginale Galerie auf meinem Server konfiguriert und der selbe Fehler 500 erscheint, nachdem ich das Bild hinaufgeladen habe.
Beim Erstellen einer Thumbnaildatei erscheint dann der Fehler.
Wo spezifisch kann dann der Fehler jetzt noch liegen?
An einer falsch eingestellten Variable bei PHP?
Schönen Tag!
GD Support enabled
GD Version bundled (2.0.28 compatible)
FreeType Support enabled
FreeType Linkage with freetype
T1Lib Support enabled
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled
Informationen vom Server-Admin:
Standardmässig sind safe_mode, register_globals und allow_url_fopen deaktiviert, sowie die Funktionen exec, system und passthru gesperrt.
-
ist eine schwere frage.
am besten du kontaktierst deinen hoster, und besprichts das mal in ruhe mit ihm ob höhere werte in der php.ini möglich wären.
oder du mietest dir einen server für dich ganz alleine :)
-
Ich habe meinen Hoster angefragt.
Er meinte:
Die Limitierung kann wegen der Anzahl der User auf dem System leider nicht erweitert werden.
Ich miete nur ein Webhosting-Packet. Einen ganzen Server wäre etwas zu teuer...
Demnach haben wir das Problem gefunden, aber ich kann es nicht beheben. Muss halt mit dem so leben in der Zukunft...
Vielen Dank für die Hilfe!
Grüsse
-
I am experiencing something odd.
I uploaded my first mp3 with no problems. It was 8MB.
I then tried to upload another mp3 which is less than 3MB, but I am getting the following error message:
Error uploading image file:
Payiferen.mp3: Invalid file type (mp3, application/x-unknown)
So I tried uploading various other mp3s, but none of them will upload.
Why is this happening?
p.s. I just tried uploading the first file again, and now that is also giving me the error message. 8O
-
hi...
try to upload your mp3 files here
http://www.nicky.net/4test/categories.php?cat_id=12
user and password is test
working for you?
-
No, Nicky. I was unable to upload any mp3s to your test site.
Here is a link to one of the files I attempted to upload:
http://www.mindbabies.com/soap.mp3 (http://www.mindbabies.com/soap.mp3)
-
hi...
here it is.. http://www.nicky.net/4test/details.php?image_id=225
upload via link
my bandwith connection: 6mbit down 768kbit up.
-
So I can only upload mp3s via URL link then?
If that is the case, I will have to find something else. It's not very convenient to have to upload somewhere else first and then create a link to it.
Why was I able to upload an mp3 file directly from my computer the first time I tried, but then it stopped letting me do it that way? Is there a problem with my browser?