Magento Forum

Image won´t upload while permissions are 777
 
tester666
Jr. Member
 
Total Posts:  6
Joined:  2010-02-17
 

Hello,

After snooping around the forums and google I couldn´t find any answers.
After installing Magento 1.6.0.0. I tried to upload file trough adding a new iphone app.
After saving a error appears : Fatal error: Call to undefined function exif_imagetype() in ... app/code/core/Mage/XmlConnect/Helper/Image.php
I set the permission, tried differen img formats, but no luck. Do you know what’s going on?

Thanks !!

Serdar

 
Magento Community Magento Community
Magento Community
Magento Community
 
Enase
Jr. Member
 
Total Posts:  19
Joined:  2010-05-11
 

exif_imagetype is standard php function. Probably you have too old php version or something set up wrong. Try to follow this article to troubleshoot issue.

 
Magento Community Magento Community
Magento Community
Magento Community
 
tester666
Jr. Member
 
Total Posts:  6
Joined:  2010-02-17
 

Hello,

Thanks for the quick reply. I have performed a check and it shows that I have PHP 5.2.0 (or greater).
However, it gives a error that shellexec is disable for the following reasons: You need MySQL 4.1.20 (or greater).
Is this in relation to my problems?

Regards,
Serdar

 
Magento Community Magento Community
Magento Community
Magento Community
 
Enase
Jr. Member
 
Total Posts:  19
Joined:  2010-05-11
 

There\’s only one reason. You have an issue because your php is not compiled with exif.

Try to run the following script on your server:

<?php
phpinfo
();

There have to be EXIF extension and something like: EXIF - Support enabled.

So you have two ways to solve an issue:
1. Enable exif extension in php
2.  Find and replace code:

$fileType exif_imagetype($file[\'tmp_name\']);

to

list($x$x$fileType) = getimagesize($file[\'tmp_name\']);
 
Magento Community Magento Community
Magento Community
Magento Community
 
Enase
Jr. Member
 
Total Posts:  19
Joined:  2010-05-11
 

disregard backslashes please

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top