exif_imagetype() Error

18 views
Skip to first unread message

Mathew Marulla

unread,
Apr 7, 2016, 11:25:39 AM4/7/16
to flyspray
Just got this when trying to upload a GIF image to replace the default Flyspray logo:

Completely unexpected exception: Call to undefined function exif_imagetype()
This should never happend, please inform Flyspray Developers

This is a new install of 1.0 RC via composer, running on PHP 7.0.3 / Ubuntu.

Mathew Marulla

unread,
Apr 7, 2016, 11:30:29 AM4/7/16
to flyspray
Same when trying to upload PNG.

Mathew Marulla

unread,
Apr 7, 2016, 11:31:21 AM4/7/16
to flyspray
Assuming a missing library?  Got no errors from Composer during install.

peterdd

unread,
Apr 12, 2016, 10:53:06 AM4/12/16
to flyspray
I added a check for exif extension for Flyspray 1.0 RC1 .

The exif_imagetype() is currently only used one time in the whole Flyspray source for uploading the Flyspray logo and is not "superimportant" if you are the only admin.
So if your webhosting does not have the php exif extension enabled, you can remove that exif_imagetype() function call as a quickfix.

Around includes/modify.inc.php line 1163:

replace

if($_FILES["logo"]["error"] == 0 && exif_imagetype($_FILES["logo"]["tmp_name"]) ) {

with

if($_FILES["logo"]["error"] == 0) {

You can write also a bug report on bugs.flyspray.org, so this issue can be addressed in the right manner in future releases and the section gets reviewed.

Reply all
Reply to author
Forward
0 new messages