4images Forum & Community
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 18, 2018, 01:58:11 PM

Login with username, password and session length
Search:     Advanced search
You're looking for some 4images templates and styles? Then visit this thread to show websites with 4images templates to download.
Togle to toolbar
Translate this page with =>
Translate this page >
* Home Help Search Login Register
 
+  4images Forum & Community
|-+  4images Issues / Ausgaben
| |-+  Installation, Update & Configuration (Moderators: Acidgod, ivan, Rembrandt)
| | |-+  Uploadfehler nach Update von 1.7.7 auf 1.78
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] 2 3 » »» Print
Author Topic: Uploadfehler nach Update von 1.7.7 auf 1.78  (Read 29944 times)
tramfahrer
Full Member
***
Offline Offline

Posts: 108

Thank You
-Given: 14
-Receive: 3


View Profile WWW
« on: September 01, 2010, 09:25:37 AM »

Hallo an alle,

nach dem ich etliche Stunden verbracht habe das Update http://www.4homepages.de/forum/index.php?topic=27689.msg149753#msg149753 einzupflegen, kam bei einem Testupload eines Bildes die Fehlermeldung dass der Dateityp JPG nich zulässig sei

Error uploading image file:
xyz.JPG : Invalid file type (pjpeg)


lade ich eine Datei xyz.jpg hoch also die Dateiendung kleingeschrieben geht es seltsamerweise.
was dann ABER nicht geht ist die Thumbnailerstellung .

liegt es an der Upload.php??

vorher unter Version 1.7.7 konnte ich JPG bzw JPEG egal ob nun groß oder klein geschrieben ohne Probleme hochladen.

wer kann da helfen?

habe erstmal die Änderungen des Updates Rückgängig gemacht  

mit der 1.7.8 Version neu anzufangen, kann ich leider nicht machen, da ich einige Modifikationen (Kalender, 3 Spalten Template-Mod)  von KurtW drinen habe auf die ich auch angewiesen bin , und hier davon leider NICHTS mehr zu finden ist.

Grüße Tobias

 

Follow members gave a thank to your post:
denisnovikov

For this post, 1 member gave a thank you!
Logged

Rembrandt
Moderator
4images Guru
*****
Offline Offline

Posts: 4187

Thank You
-Given: 116
-Receive: 900

Vienna


View Profile WWW
« Reply #1 on: September 01, 2010, 11:12:26 AM »

...Error uploading image file:
xyz.JPG : Invalid file type (pjpeg)...
ist das jetzt ein schreibfehler von dir, "pjpeg" oder ist das die tatsächliche fehlermeldung.

aber eines solltest du sowieso machen:
alle bildnamen und dateiendungen klein schreiben und keine umlaute verwenden.
das hat aber mehr oder weniger nichts mit 4images zu tun sondern mit dem unix dateisystem.

mfg Andi
Logged

Meine 4Images Modifikationen  Now over 100 Modification Online!    Meine 4images Demo Seite


Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
tramfahrer
Full Member
***
Offline Offline

Posts: 108

Thank You
-Given: 14
-Receive: 3


View Profile WWW
« Reply #2 on: September 01, 2010, 01:23:26 PM »

ja der hatte tatsächlich pjpeg als Fehlermeldung ausgespuckt...

ich werde mal heute Abend die geupdateten Dateien nochmal einspielen und Screenshot anfertigen.

aber bis zur 1.7.7 Version ist es egal gewesen ob die Dateiendung GROß oder klein geschrieben war bei jpg bzw jpeg

selbst meine 15 Aktiven User von 89  hatten bisher nie Probleme mit Groß und Kleinschreibung der Dateinamen und Endungen ...

in der Updateanleitung bei der upload.php steht auch was von pjpeg

find and delete:

1
2
3
4
5
6
7
    $this->accepted_mime_types['thumb'] = array(
      "image/jpg",
      "image/jpeg",
      "image/pjpeg",
      "image/gif",
      "image/x-png"
    );


Logged

Rembrandt
Moderator
4images Guru
*****
Offline Offline

Posts: 4187

Thank You
-Given: 116
-Receive: 900

Vienna


View Profile WWW
« Reply #3 on: September 01, 2010, 02:15:25 PM »

da stimmt was nicht, bau das wieder ein.

ich werde @V@no b.z.w. @kai mal darauf aufmerksam machen.

in dem aktuellen downloadpaket ist das nämlich drinnen, was auch M.m. richtig ist.
1
2
3
4
5
6
$this->accepted_extensions['thumb'] = array(
      "jpg",
      "jpeg",
      "gif",
      "png"
    );
Logged

Meine 4Images Modifikationen  Now over 100 Modification Online!    Meine 4images Demo Seite


Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
denisnovikov
Test group
Full Member
*
Offline Offline

Posts: 125

Thank You
-Given: 3
-Receive: 28


View Profile
« Reply #4 on: September 01, 2010, 08:28:06 PM »

Hi there and thanks for reporting this issue.

Here is the instruction on how to fix it:

file: includes/upload.php
function upload_file()

Find:
1
$this->extension = $regs[2];

And replace with:
1
$this->extension = strtolower($regs[2]);

Should occur twice in the function.

Note: Since allowed extensions contain only basic latin characters we don't need to use any multi-byte safe functions to convert extension to lowercase. This fix is committed and will be released within version 1.7.9.

Follow members gave a thank to your post:
tramfahrer

For this post, 1 member gave a thank you!
Logged

check
tramfahrer
Full Member
***
Offline Offline

Posts: 108

Thank You
-Given: 14
-Receive: 3


View Profile WWW
« Reply #5 on: September 01, 2010, 09:14:41 PM »

hi Thank you

the Imageupload Works, BUT it makes NO Thumbnails  Sad Sad Sad Sad

an i have this put in again in the upload.php,  then made an image upload   no Thumbnail
I put this out , make an image upload  but there is NO Thumbnail


in der Updateanleitung bei der upload.php steht auch was von pjpeg

find and delete:

1
2
3
4
5
6
7
    $this->accepted_mime_types['thumb'] = array(
      "image/jpg",
      "image/jpeg",
      "image/pjpeg",
      "image/gif",
      "image/x-png"
    );


there must be any more mistakes Sad
Logged

denisnovikov
Test group
Full Member
*
Offline Offline

Posts: 125

Thank You
-Given: 3
-Receive: 28


View Profile
« Reply #6 on: September 01, 2010, 09:19:14 PM »

hi Thank you

the Imageupload Works, BUT it makes NO Thumbnails  Sad Sad Sad Sad

Give me few minutes to find a solution.

Edit: nah, for me it works just fine. Probably related to case sensitive file systems, do you have such one?
Logged

check
tramfahrer
Full Member
***
Offline Offline

Posts: 108

Thank You
-Given: 14
-Receive: 3


View Profile WWW
« Reply #7 on: September 01, 2010, 09:24:00 PM »



sorry for my bad english but iam a german people ....
 Embarassed Embarassed




Edit: nah, for me it works just fine. Probably related to case sensitive file systems, do you have such one?

what do you mean ?
Logged

denisnovikov
Test group
Full Member
*
Offline Offline

Posts: 125

Thank You
-Given: 3
-Receive: 28


View Profile
« Reply #8 on: September 01, 2010, 09:29:00 PM »

i have edit my thread above your actual answer ....

sorry for my bad english but iam a german people ....
 Embarassed Embarassed

No problems for English, it's not my native language as well but at least we can somehow communicate using it  Smile

Can you upload your upload.php file so I can repeat your issue locally, please?
Logged

check
tramfahrer
Full Member
***
Offline Offline

Posts: 108

Thank You
-Given: 14
-Receive: 3


View Profile WWW
« Reply #9 on: September 01, 2010, 09:46:09 PM »

i start my gallery with Version 1.7.6 then i put in some Mods, for EG The Moderator Mod, the Bewertungs-Mod from KurtW with the changing color-bar, the Kalandar Mod an the 3 row Database Template Patch.....

then i made the manual Update to 1.7.7

the next mod i used in 1.7.7 is the short URL Mod tha you have links like that
1
http://www.tram-und-bahnbilder.de/img3585.htm
http://www.tram-und-bahnbilder.de/img3585.htm

an the Top 100 Mod and one mod which lists all Categories  like a Sitemap

and now i made the update to 1.7.8

my actual Template  was a Joomla Template what i made work an 4 Images... and it doesnt work without the 3 Row Patch ...

i put the old  one and the actual upload php

* 1_7_8_upload.php (9.63 KB - downloaded 5 times.)
* 1_7_6_to_1_7_7_upload.php (9.96 KB - downloaded 3 times.)
Logged

V@no
If you don't tell me what to do, I won't tell you where you should go :)
Administrator
4images Guru
*****
Offline Offline

Posts: 17849

Thank You
-Given: 47
-Receive: 578

mmm PHP...


View Profile WWW
« Reply #10 on: September 02, 2010, 02:39:22 PM »

It's the way your server detects MIME type, which seems to be "wrong", not standard. Not a bug in 4images.

You need add pjpeg MIME type in upload.php:
1
2
3
4
5
6
7
8
    $this->accepted_mime_types['thumb'] = array(
      
"image/jpg",
      
"image/jpeg",
      
"image/pjpeg",
      
"image/gif",
      
"image/x-png",
      
"pjpeg",
    );
[/s]
never mind there is no such thing in v1.7.8
« Last Edit: September 02, 2010, 03:27:57 PM by V@no » Logged

Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)
denisnovikov
Test group
Full Member
*
Offline Offline

Posts: 125

Thank You
-Given: 3
-Receive: 28


View Profile
« Reply #11 on: September 02, 2010, 02:43:07 PM »

Oh damn, looks like I fixed another bug less related to this issue. My pure-pure German  Confused
Logged

check
tramfahrer
Full Member
***
Offline Offline

Posts: 108

Thank You
-Given: 14
-Receive: 3


View Profile WWW
« Reply #12 on: September 02, 2010, 03:02:23 PM »

It's the way your server detects MIME type, which seems to be "wrong", not standard. Not a bug in 4images.

You need add pjpeg MIME type in upload.php:
1
2
3
4
5
6
7
8
    $this->accepted_mime_types['thumb'] = array(
      
"image/jpg",
      
"image/jpeg",
      
"image/pjpeg",
      
"image/gif",
      
"image/x-png",
      
"pjpeg",
    );



I have test ist now, because i have in the fresh installed 1.7.8 the same problem

Fehler beim Upload der Bild-Datei: IMG_5985.JPG
IMG_5985.JPG: Die Datei hat ein ungültiges Format (JPG, image/pjpeg)

Daten nicht in die Datenbank geschrieben


in the actual Upload.php at Line 254 is this code
1
2
3
4
5
6
7
8

    $this->accepted_extensions['thumb'] = array(
      "jpg",
      "jpeg",
      "gif",
      "png"

    );

i put "pjpeg" in but i doesnt work tooo

i replace this with your posted Code and it doesnt work tooo  Sad(

so i have the same problem in my manual updated an in the fresh installed 4Images system.

My webhoster is www.all-inkl.de
Logged

V@no
If you don't tell me what to do, I won't tell you where you should go :)
Administrator
4images Guru
*****
Offline Offline

Posts: 17849

Thank You
-Given: 47
-Receive: 578

mmm PHP...


View Profile WWW
« Reply #13 on: September 02, 2010, 03:10:58 PM »

Now you are getting different error message, for this you'll need follow these instructions:
How can I add more allowed file extensions?
Logged

Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)
denisnovikov
Test group
Full Member
*
Offline Offline

Posts: 125

Thank You
-Given: 3
-Receive: 28


View Profile
« Reply #14 on: September 02, 2010, 03:13:15 PM »

-
Logged

check
Pages: [1] 2 3 » »» Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.06 seconds with 23 queries.
Post your comments here