Author Topic: Uploadfehler nach Update von 1.7.7 auf 1.78  (Read 41451 times)

0 Members and 1 Guest are viewing this topic.

Offline tramfahrer

  • Full Member
  • ***
  • Posts: 112
    • View Profile
    • Straßenbahn-, Bus- und Eisenbahnbilder
Uploadfehler nach Update von 1.7.7 auf 1.78
« 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

 

Rembrandt

  • Guest
Re: Uploadfehler nach Update von 1.7.7 auf 1.78
« 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

Offline tramfahrer

  • Full Member
  • ***
  • Posts: 112
    • View Profile
    • Straßenbahn-, Bus- und Eisenbahnbilder
Re: Uploadfehler nach Update von 1.7.7 auf 1.78
« 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:

Code: [Select]
    $this->accepted_mime_types['thumb'] = array(
      "image/jpg",
      "image/jpeg",
      "image/pjpeg",
      "image/gif",
      "image/x-png"
    );



Rembrandt

  • Guest
Re: Uploadfehler nach Update von 1.7.7 auf 1.78
« 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.
Code: [Select]
$this->accepted_extensions['thumb'] = array(
      "jpg",
      "jpeg",
      "gif",
      "png"
    );

Offline denisnovikov

  • Test group
  • Full Member
  • *
  • Posts: 125
    • View Profile
Re: Uploadfehler nach Update von 1.7.7 auf 1.78
« 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:
Code: [Select]
$this->extension = $regs[2];
And replace with:
Code: [Select]
$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.
check

Offline tramfahrer

  • Full Member
  • ***
  • Posts: 112
    • View Profile
    • Straßenbahn-, Bus- und Eisenbahnbilder
Re: Uploadfehler nach Update von 1.7.7 auf 1.78
« Reply #5 on: September 01, 2010, 09:14:41 PM »
hi Thank you

the Imageupload Works, BUT it makes NO Thumbnails  :( :( :( :(

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:

Code: [Select]
    $this->accepted_mime_types['thumb'] = array(
      "image/jpg",
      "image/jpeg",
      "image/pjpeg",
      "image/gif",
      "image/x-png"
    );


there must be any more mistakes :-(

Offline denisnovikov

  • Test group
  • Full Member
  • *
  • Posts: 125
    • View Profile
Re: Uploadfehler nach Update von 1.7.7 auf 1.78
« Reply #6 on: September 01, 2010, 09:19:14 PM »
hi Thank you

the Imageupload Works, BUT it makes NO Thumbnails  :( :( :( :(

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?
check

Offline tramfahrer

  • Full Member
  • ***
  • Posts: 112
    • View Profile
    • Straßenbahn-, Bus- und Eisenbahnbilder
Re: Uploadfehler nach Update von 1.7.7 auf 1.78
« Reply #7 on: September 01, 2010, 09:24:00 PM »


sorry for my bad english but iam a german people ....
 :oops: :oops:




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

what do you mean ?

Offline denisnovikov

  • Test group
  • Full Member
  • *
  • Posts: 125
    • View Profile
Re: Uploadfehler nach Update von 1.7.7 auf 1.78
« 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 ....
 :oops: :oops:

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

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

Offline tramfahrer

  • Full Member
  • ***
  • Posts: 112
    • View Profile
    • Straßenbahn-, Bus- und Eisenbahnbilder
Re: Uploadfehler nach Update von 1.7.7 auf 1.78
« 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
Code: [Select]
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

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Uploadfehler nach Update von 1.7.7 auf 1.78
« 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:
    $this->accepted_mime_types['thumb'] = array(
      
"image/jpg",
      
"image/jpeg",
      
"image/pjpeg",
      
"image/gif",
      
"image/x-png",
      
"pjpeg",
    );


never mind there is no such thing in v1.7.8
« Last Edit: September 02, 2010, 03:27:57 PM by V@no »
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)

Offline denisnovikov

  • Test group
  • Full Member
  • *
  • Posts: 125
    • View Profile
Re: Uploadfehler nach Update von 1.7.7 auf 1.78
« 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  :?
check

Offline tramfahrer

  • Full Member
  • ***
  • Posts: 112
    • View Profile
    • Straßenbahn-, Bus- und Eisenbahnbilder
Re: Uploadfehler nach Update von 1.7.7 auf 1.78
« 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:
    $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
Code: [Select]

    $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  :-((

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

My webhoster is www.all-inkl.de

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Uploadfehler nach Update von 1.7.7 auf 1.78
« 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?
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)

Offline denisnovikov

  • Test group
  • Full Member
  • *
  • Posts: 125
    • View Profile
Re: Uploadfehler nach Update von 1.7.7 auf 1.78
« Reply #14 on: September 02, 2010, 03:13:15 PM »
-
check