Upload image error

More
14 years 10 months ago #2316 by pkrev
Upload image error was created by pkrev
Hello everyone

I have a small problem with image field
when I select image I instantly get error message bellow.

First I thought this error happened because ImageMagick (convert) wasn't installed but it was the same after install.

Thanks for your help,

regards

BTW - Good work!

This is what I see in apache error log
Code:
PHP Notice: Undefined index: desc in /srv/www/htdocs/samson/plugins/flexicontent_fields/image.php on line 225, referer: http://www.xxxxxxx.com/sa/administrator/index.php?option=com_flexicontent&controller=items&task=edit&cid[]=333
Code:
Failed2: phpThumb() v1.7.9-200805132119 "" does not exist phpThumb() v1.7.9-200805132119 in file "phpthumb.class.php" on line 216 setSourceFilename(/srv/www/htdocs/samson/components/com_flexicontent/uploads/08122006133.jpg) set $this->sourceFilename to "/srv/www/htdocs/samson/components/com_flexicontent/uploads/08122006133.jpg" in file "phpthumb.class.php" on line 243 file_exists() = 0 in file "phpthumb.class.php" on line 1105 is_executable() = 0 in file "phpthumb.class.php" on line 1106 using ImageMagick path from `which convert` (/usr/bin/convert) in file "phpthumb.class.php" on line 1125 ImageMagick version checked with "convert --version" in file "phpthumb.class.php" on line 1152 ImageMagick convert --version says "Version: ImageMagick 6.4.0 06/04/09 Q16 http:" in file "phpthumb.class.php" on line 1160 Addding ImageMagick formats to $AvailableImageOutputFormats (text;ico;bmp;wbmp;gif;png;jpeg) in file "phpthumb.class.php" on line 882 $AvailableImageOutputFormats = array(text;ico;bmp;wbmp;gif;png;jpeg) in file "phpthumb.class.php" on line 888 $this->thumbnailFormat set to $this->config_output_format "jpeg" in file "phpthumb.class.php" on line 899 $this->thumbnailQuality set to "90" in file "phpthumb.class.php" on line 916 !$this->config_allow_src_above_docroot therefore setting "/srv/www/htdocs/samson/components/com_flexicontent/uploads/08122006133.jpg" (outside "/srv/www/htdocs/xxxxxxxx.com") to null in file "phpthumb.class.php" on line 1070 $this->sourceFilename set to "" in file "phpthumb.class.php" on line 817 phpThumb() v1.7.9-200805132119 "" does not exist in file "phpthumb.class.php" on line 3709 setCacheDirectory() starting with config_cache_directory = "" in file "phpthumb.class.php" on line 923 $this->config_cache_directory () is not a directory in file "phpthumb.class.php" on line 959 SetCacheFilename() failed because $this->config_cache_directory is empty in file "phpthumb.class.php" on line 3076 starting ExtractEXIFgetImageSize() in file "phpthumb.class.php" on line 2920 skipping GetImageSize() because $this->sourceFilename is empty in file "phpthumb.class.php" on line 2932 GetImageSize("") failed in file "phpthumb.class.php" on line 2959 $this->useRawIMoutput=true after checking $UnAllowedParameters in file "phpthumb.class.php" on line 1252 ImageMagickThumbnailToGD() aborting because $this->sourceFilename is empty in file "phpthumb.class.php" on line 1295 ImageMagickThumbnailToGD() failed in file "phpthumb.class.php" on line 2966 SetOrientationDependantWidthHeight() starting with ""x"" in file "phpthumb.class.php" on line 2899 SetOrientationDependantWidthHeight() setting w="600", h="600" in file "phpthumb.class.php" on line 2915 exif_thumbnail() does not exist, cannot extract EXIF thumbnail in file "phpthumb.class.php" on line 3010 EXIF thumbnail extraction: (size=0; type=""; 0x0) in file "phpthumb.class.php" on line 3015 starting SourceImageToGD() in file "phpthumb.class.php" on line 3273 $this->useRawIMoutput=true after checking $UnAllowedParameters in file "phpthumb.class.php" on line 1252 ImageMagickThumbnailToGD() aborting because $this->sourceFilename is empty in file "phpthumb.class.php" on line 1295 Not using EXIF thumbnail data because $this->exif_thumbnail_data is empty in file "phpthumb.class.php" on line 3329 $this->gdimg_source is still empty in file "phpthumb.class.php" on line 3381 ImageMagickThumbnailToGD() failed in file "phpthumb.class.php" on line 3383 phpThumb() v1.7.9-200805132119 Unable to create image, neither filename nor image data suppplied in SourceImageToGD() [3490] in file "phpthumb.class.php" on line 3709 SourceImageToGD() failed in file "phpthumb.class.php" on line 323

Please Log in or Create an account to join the conversation.

More
14 years 10 months ago #2442 by vistamedia
Replied by vistamedia on topic Upload image error
Hi,
It happens on some servers (5% of the servers). Most of the time it concerns local servers.
It can be related to two problems:
* Image Magick is installed but not propely configured on your server (by default phpThumb will always try to use image magick)
* The document root cannot be found

To fix that you have to edit two files and try to play with the conf manually.
component/com_flexicontent/librairies/phpthumb/phpthumb.config.php (for dynamic thumbnail and caching - eg: blog view)
component/com_flexicontent/librairies/phpthumb/phpthumb.class.php (for resize and watermark on upload - eg: image field upload in backend)

In the second file you can try that:
Replace line 119-120:
Code:
var $config_prefer_imagemagick = true; var $config_imagemagick_use_thumbnail = true;
By
Code:
var $config_prefer_imagemagick = false; var $config_imagemagick_use_thumbnail = false;

If it still doesn't function set the document root manually on line 75 - for example:
Code:
var $config_document_root = '/var/www/vhosts/my.domain.tld/.......';
And replace line 219 by
Code:
$this->config_document_root = $this->config_document_root);

NOTE: the first file will have no effect on upload feature as upload functions with object mode.

Cheers,
Emmanuel.

FLEXIcontent lead developer.
www.vistamedia.fr web agency and custom development.
www.joomla.fr co-administrator.
Please no PM for support request, use the forum for that!!!

Please Log in or Create an account to join the conversation.

More
14 years 10 months ago #2446 by pkrev
Replied by pkrev on topic Upload image error
Hello,

thanks for your help!

With your hint I found the problem, It was in my apache conf for this domain. I used alias folder that was outside of domain root. (development)

Thanks again.
Code:
Alias /sa /srv/www/htdocs/samson <Directory "/srv/www/htdocs/samson"> Order allow,deny Allow from 192.168.0.0/24 AllowOverride all Options +FollowSymLinks Options +Indexes </Directory>

Please Log in or Create an account to join the conversation.

More
14 years 8 months ago #4400 by jpcote
Replied by jpcote on topic Upload image error
If, like us, you elected to change the default thumbnail directory, make sure your custom location is writable. This was our problem. It had nothing to do with imagemagick or the document root although it displayed the same error. Hope this helps.

Please Log in or Create an account to join the conversation.

More
14 years 7 months ago #6026 by TheSoMeEx
Replied by TheSoMeEx on topic Upload image error
It's been suggested that FLEXIcontent is looking for an older version of ImageMagick than the one installed on my server.

I there a compatibility issue?

I am getting this same error.

--
Heather M. Claus
910-538-8901
I'm Building a Network of Niche Sites with a Shared Community - in BETA now!
www.365DaysofStyle.com
www.twitter.com/365DaysofStyle

Please Log in or Create an account to join the conversation.

More
14 years 7 months ago #6027 by TheSoMeEx
Replied by TheSoMeEx on topic Upload image error
Oh, and I did try the phpthumb.class.php fixes, just to get this going, but that didn't solve the problem.
Code:
Failed2: phpThumb() v1.7.9-200805132119 "" does not exist phpThumb() v1.7.9-200805132119 in file "phpthumb.class.php" on line 216 setSourceFilename(/home/three65/subdomains/365style/public_html/components/com_flexicontent/uploads/ericatanov-5.jpg) set $this->sourceFilename to "/home/three65/subdomains/365style/public_html/components/com_flexicontent/uploads/ericatanov-5.jpg" in file "phpthumb.class.php" on line 243 file_exists() = 0 in file "phpthumb.class.php" on line 1105 is_executable() = 0 in file "phpthumb.class.php" on line 1106 using ImageMagick path from `which convert` (/usr/bin/convert) in file "phpthumb.class.php" on line 1125 ImageMagick version checked with "convert --version" in file "phpthumb.class.php" on line 1152 ImageMagick did not return recognized version string (Version: ImageMagick 6.4.8 2010-04-13 Q16 OpenMP http://www.imagemagick.org Copyright: Copyright (C) 1999-2009 ImageMagick Studio LLC) in file "phpthumb.class.php" on line 1158 ImageMagick convert --version says "" in file "phpthumb.class.php" on line 1160 $AvailableImageOutputFormats = array(text;ico;bmp;wbmp;gif;png;jpeg) in file "phpthumb.class.php" on line 888 $this->thumbnailFormat set to $this->config_output_format "jpeg" in file "phpthumb.class.php" on line 899 $this->thumbnailQuality set to "90" in file "phpthumb.class.php" on line 916 !$this->config_allow_src_above_docroot therefore setting "/home/three65/subdomains/master/public_html/components/com_flexicontent/uploads/ericatanov-5.jpg" (outside "/home/three65/subdomains/365style/public_html") to null in file "phpthumb.class.php" on line 1070 $this->sourceFilename set to "" in file "phpthumb.class.php" on line 817 phpThumb() v1.7.9-200805132119 "" does not exist in file "phpthumb.class.php" on line 3709 setCacheDirectory() starting with config_cache_directory = "" in file "phpthumb.class.php" on line 923 $this->config_cache_directory () is not a directory in file "phpthumb.class.php" on line 959 SetCacheFilename() failed because $this->config_cache_directory is empty in file "phpthumb.class.php" on line 3076 starting ExtractEXIFgetImageSize() in file "phpthumb.class.php" on line 2920 skipping GetImageSize() because $this->sourceFilename is empty in file "phpthumb.class.php" on line 2932 GetImageSize("") failed in file "phpthumb.class.php" on line 2959 $this->useRawIMoutput=true after checking $UnAllowedParameters in file "phpthumb.class.php" on line 1252 ImageMagickThumbnailToGD() aborting because $this->sourceFilename is empty in file "phpthumb.class.php" on line 1295 ImageMagickThumbnailToGD() failed in file "phpthumb.class.php" on line 2966 SetOrientationDependantWidthHeight() starting with ""x"" in file "phpthumb.class.php" on line 2899 SetOrientationDependantWidthHeight() setting w="450", h="325" in file "phpthumb.class.php" on line 2915 EXIF thumbnail extraction: (size=0; type=""; 0x0) in file "phpthumb.class.php" on line 3015 starting SourceImageToGD() in file "phpthumb.class.php" on line 3273 $this->useRawIMoutput=true after checking $UnAllowedParameters in file "phpthumb.class.php" on line 1252 ImageMagickThumbnailToGD() aborting because $this->sourceFilename is empty in file "phpthumb.class.php" on line 1295 Not using EXIF thumbnail data because $this->exif_thumbnail_data is empty in file "phpthumb.class.php" on line 3329 $this->gdimg_source is still empty in file "phpthumb.class.php" on line 3381 ImageMagickThumbnailToGD() failed in file "phpthumb.class.php" on line 3383 phpThumb() v1.7.9-200805132119 Unable to create image, neither filename nor image data suppplied in SourceImageToGD() [3490] in file "phpthumb.class.php" on line 3709 SourceImageToGD() failed in file "phpthumb.class.php" on line 323

--
Heather M. Claus
910-538-8901
I'm Building a Network of Niche Sites with a Shared Community - in BETA now!
www.365DaysofStyle.com
www.twitter.com/365DaysofStyle

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 1.288 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline