PHPthumb error with ~username unix account alias

More
10 years 10 months ago - 10 years 10 months ago #43567 by gkhn
Hi there,

I was trying to insert a couple of images into image/gallery field.

THis is what i was getting after uploading and selecting the image.

Phpthumb
Error messages disabled..

So what I did was to navigate to /public_html/components/com_flexicontent/librairies/phpthumb and find the phpthumconfig file.

I then changed the
Code:
$PHPTHUMB_CONFIG['allow_src_above_docroot'] = false;
to
Code:
$PHPTHUMB_CONFIG['allow_src_above_docroot'] = true;
and the problem is solved.
I think it is because I am on a test server and it has this weird character ~ :)
Last edit: 10 years 10 months ago by gkhn.

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

More
10 years 10 months ago #43569 by gkhn
Well it looks like I can only see the thumbnail. When I save the item, it spits out the error below:
Code:
phpThumb() v1.7.11-201108081537 http://phpthumb.sourceforge.net Error messages disabled phpThumb() v1.7.11-201108081537 in file "phpthumb.class.php" on line 216 setSourceFilename(/home/joomlauser/public_html/images/stories/flexicontent/item_1_field_17/original/coming.jpg) set $this->sourceFilename to "/home/joomlauser/public_html/images/stories/flexicontent/item_1_field_17/original/coming.jpg" in file "phpthumb.class.php" on line 262 file_exists() = 0 in file "phpthumb.class.php" on line 1165 file_exists_ignoreopenbasedir() = 0 in file "phpthumb.class.php" on line 1166 is_file() = 0 in file "phpthumb.class.php" on line 1167 is_executable() = 0 in file "phpthumb.class.php" on line 1168 using ImageMagick path from `which convert` (/usr/bin/convert) in file "phpthumb.class.php" on line 1188 ImageMagick version checked with "convert --version" in file "phpthumb.class.php" on line 1215 ImageMagick convert --version says "Version: ImageMagick 6.2.8 05/08/12 Q16 file:" in file "phpthumb.class.php" on line 1223 Addding ImageMagick formats to $AvailableImageOutputFormats (text;ico;bmp;wbmp;gif;png;jpeg) in file "phpthumb.class.php" on line 917 $AvailableImageOutputFormats = array(text;ico;bmp;wbmp;gif;png;jpeg) in file "phpthumb.class.php" on line 923 $this->thumbnailFormat set to $this->config_output_format "jpeg" in file "phpthumb.class.php" on line 934 $this->thumbnailQuality set to "90" in file "phpthumb.class.php" on line 951 !$this->config_allow_src_above_docroot therefore setting "/home/joomlauser/public_html/images/stories/flexicontent/item_1_field_17/original/coming.jpg" (outside "/usr/local/apache/htdocs") to null in file "phpthumb.class.php" on line 1106 $this->sourceFilename set to "" in file "phpthumb.class.php" on line 852 phpThumb() v1.7.11-201108081537 http://phpthumb.sourceforge.net Error messages disabled in file "phpthumb.class.php" on line 3847 setCacheDirectory() starting with config_cache_directory = "" in file "phpthumb.class.php" on line 958 $this->config_cache_directory () is not a directory in file "phpthumb.class.php" on line 994 SetCacheFilename() failed because $this->config_cache_directory is empty in file "phpthumb.class.php" on line 3203 starting ExtractEXIFgetImageSize() in file "phpthumb.class.php" on line 3035 skipping GetImageSize() because $this->sourceFilename is empty in file "phpthumb.class.php" on line 3047 GetImageSize("") failed in file "phpthumb.class.php" on line 3078 $this->useRawIMoutput=true after checking $UnAllowedParameters in file "phpthumb.class.php" on line 1315 ImageMagickThumbnailToGD() aborting because $this->sourceFilename is empty in file "phpthumb.class.php" on line 1359 ImageMagickThumbnailToGD() failed in file "phpthumb.class.php" on line 3085 SetOrientationDependantWidthHeight() starting with ""x"" in file "phpthumb.class.php" on line 3014 SetOrientationDependantWidthHeight() setting w="800", h="600" in file "phpthumb.class.php" on line 3030 EXIF thumbnail extraction: (size=0; type=""; 0x0) in file "phpthumb.class.php" on line 3142 starting SourceImageToGD() in file "phpthumb.class.php" on line 3400 Not using EXIF thumbnail data because $this->exif_thumbnail_data is empty in file "phpthumb.class.php" on line 3471 $this->gdimg_source is still empty in file "phpthumb.class.php" on line 3523 ImageMagickThumbnailToGD() failed in file "phpthumb.class.php" on line 3525 phpThumb() v1.7.11-201108081537 http://phpthumb.sourceforge.net Error messages disabled in file "phpthumb.class.php" on line 3847 SourceImageToGD() failed in file "phpthumb.class.php" on line 342

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

More
10 years 10 months ago #43572 by ggppdk
Hello

thanks for feedback

-- please read this FAQ article:

I get "error messages disabled" during phpThumb thumbnail creation

1. it says how to enable printing of phpThumb error messages
2. the unix account folder alias (~username) will not work properly with phpThumb, we will not patch phpThumb to try to make it work, please use path that does not include ~username

Regards


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

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

More
10 years 10 months ago #43573 by gkhn

ggppdk wrote: Hello

thanks for feedback

-- please read this FAQ article:

I get "error messages disabled" during phpThumb thumbnail creation

1. it says how to enable printing of phpThumb error messages
2. the unix account folder alias (~username) will not work properly with phpThumb, we will not patch phpThumb to try to make it work, please use path that does not include ~username

Regards


Thank you.
I have just installed it on a server which does not have ~username and it looks perfect. :)

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.298 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