Support Forum
Although commenting it out might work, I doubt it's the source of the problem. exif_imagetype simply checks to make sure the image being uploaded holds the correct image type value, e.g .gif = 1, jpeg = 2, png = 3. SP Only supports these first 3 formats. Bypassing this I'm guessing will just allow you to upload whatever image you like as long as it is a web format (although I could be wrong).
I'm guessing you managed to use the same picture here, where you have uploaded the same image as an attachment, and also for your avatar, so there is nothing wrong with the image itself. Also the image would have been run through the same '# check image file mimetype' process when you did this here..
Did you check to see if your PHP tmp folder was correctly set up as Andy suggested? Also have you checked your PHP error log?
It would be worth noting that commenting out the code is probably not the solution. Also, It will most likely revert or be overwritten the next time you have an update from SP.
The tmp directory is ok.
The Apache error log indicates this :
[Mon Sep 08 16:40:48.954010 2014] [:error] [pid 804:tid 1128] [client 31.34.57.3:63702] PHP Warning - getimagesize(C:\\Program%20Files%20(x86)\\EasyPHP-12.1\\tmp\\phpA440.tmp): failed to open stream: No such file or directory - file: /simple-press/forum/profile/ahah/sp-ahah-profile-save.php - line: 16 - function: getimagesize
, referer: http://www.aceos-93-95.fr/forum/profile
[Mon Sep 08 16:40:48.954010 2014] [:error] [pid 804:tid 1128] [client 31.34.57.3:63702] PHP Warning - getimagesize(): Filename cannot be empty - file: /simple-press/forum/profile/ahah/sp-ahah-profile-save.php - line: 16 - function: getimagesize
, referer: http://www.aceos-93-95.fr/forum/profile
[Mon Sep 08 16:40:48.954010 2014] [:error] [pid 804:tid 1128] [client 31.34.57.3:63702] PHP Warning - getimagesize(): Filename cannot be empty - file: /simple-press/forum/profile/ahah/sp-ahah-profile-save.php - line: 16 - function: spHandleShutdown
, referer: http://www.aceos-93-95.fr/forum/profile
Well the warnings generated regarding sp-ahah-profile-save.php are only generated as a result of the original error, in which I would assume it was trying to access a folder that didn't exist, or didn't have access to. Although I'm sure someone who has a bit more experience with this side of things will enlighten us to the exact reason!
but in any case, glad you have it working
1 Guest(s)