Closed (fixed)
Project:
Exif
Version:
6.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
2 May 2009 at 21:26 UTC
Updated:
5 Oct 2009 at 22:20 UTC
Jump to comment: Most recent file
enabled exif module, added fields to photo content type using examples in readme, (php_exif extention enabled),
went to admin/settings/exif and received this error:
Fatal error: Call to undefined function read_exif_data() in C:\wamp\www\drupal 6.11\drupal-6.11-views-carousel\sites\all\modules\exif\exif.module on line 175
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | SAP-logo.jpg | 66.66 KB | ingomueller.net |
Comments
Comment #1
asb commentedHi,
I'm getting a similar error with the stable release version 5.x-1.2:
This error prevents images from being uploaded, thus setting the priority to "critical".
System environment: Drupal 5.17, LightTPD 1.4.19, Server API: FastCGI, PHP 5.2.6-1+lenny3, MySQL 5.0.51a @ Debian GNU/Linux "Lenny"
EXIF section from phpinfo:
Thanks & greetings, -asb
Comment #2
ingomueller.net commentedThis doesn't seem to happen with every JPG file. Here's one that produces the error. HTH
Comment #3
asb commented> This doesn't seem to happen with every JPG file.
Right! Here's another example: http://photobatch.wdfiles.com/local--files/start/Screenshot-Phatch3d.jpg
Greetings, -asb
Comment #4
dman commentedRE the OP (but not #1)
"Undefined function" would probably indicate that the appropriate PHP extension is not available.
For sure, the install process or admin pages should be more careful about that and at least do a
if(function_exists('read_exif_data'))and refer to a little more help in an INSTALL.txtOn a fresh machine, I'm getting WSOD on admin/settings/exif, and I assume it may be this dependancy... (actually no, I have --enable-exif and "exif support".
Anyway, I still see that the code does not have a lot of paranoia about checking that a vital prerequisite does in fact exist, so probably a more friendly fallback/warning would be a good addition.
Comment #5
rapsli commentedpatches are always welcome :)
Comment #6
yoeld commentedI have the same problem. Can somebody provide some hints on how to solve this?
Thanks, Yoel.
Comment #7
rapsli commentedyou have to enable the exif module in apache.
Comment #8
asb commented> you have to enable the exif module in apache.
Do you mean php.ini? I've never heard of an EXIF module for apache, and my Debian repository doesn't offer one.
BTW, what about people running other webservers (like Lighttpd or IIS)?
Greetings, -asb
Comment #9
rapsli commentedhttp://us3.php.net/manual/en/book.exif.php is what you need.
Comment #10
asb commentedAh, so it *is* php.ini you were referring to. Please see #1, "EXIF section from phpinfo()":
Greetings, -asb
Comment #11
rapsli commentedwow wow... these are two completely different things: The issue is about the 6er version. @asb your bug is for the 5er version. ... I'm going to close this issue. Please open a new issue for the 5.x version.
Comment #12
rapsli commentedlets make this task here:
Better message for "atal error: Call to undefined function read_exif_data() in C:\wamp\www\drupal 6.11\drupal-6.11-views-carousel\sites\all\modules\exif\exif.module on line 175"
Comment #13
yoeld commentedThanks! #9 solved my problem.
I am using WAMP local webserver and both php_exif.dll & php_mbstring.dll where activated ... but in the wrong order! First must be php_mbstring.dll activated.
Comment #14
rapsli commentedmade some changes
Comment #15
asb commentedOpened a new issue for 5.x-1.2: #583958: Fatal error: Call to a member function getEntry() on a non-object