Thumbnail and category images problemi when changing joomla install folder

More
10 years 2 months ago - 10 years 2 months ago #58376 by lclaude
Hi FLEXITeam, Hi all,

I have the same pb: I can't see thumbs in Flexi-Items (articles) in the backend.
In the frontend it works fine when a visitor is viewing the item, but no thumbs in edition mode (like in the backend).

My config :
Joomla 3.4.5
FLEXIcontent v3.0.9-2015_11_14 (v3.0.9-rc2)
Linux SME Server (based on a redhat)
My joomla installation is in a subdomain. So my absolute path of documentroot of this joomla install (/home/e-smith/files/ibays/wm2v/html/) is not the same that the default root domain (/home/e-smith/files/ibays/Primary/html/).
The permissions of the folders/files are good, owner is apache.

When I have the default install, with default params of flexi and phpthumb, I have PHP Warning (in the server logs) :
Code:
PHP Warning: realpath(): open_basedir restriction in effect. File(/home/e-smith/files/ibays/Primary/html) is not within the allowed path(s): (/home/e-smith/files/ibays/wm2v/:/tmp/:/usr/share/pear:/usr/share/pear-data/) in /home/e-smith/files/ibays/wm2v/html/components/com_flexicontent/librairies/phpthumb/phpThumb.config.php on line 40

So I have change the param of com_flexicontent/librairies/phpthumb/phpThumb.config.php to :
Code:
$PHPTHUMB_CONFIG['document_root'] = $_SERVER['DOCUMENT_ROOT'];
The above error no longer occurs.

But now I have the same type of error (open_basedir restriction) in this two lines :
Code:
[cuted but same error] .../phpthumb.class.php on line 1105 .../phpthumb.class.php on line 1265

In the backend, when I update a item with a new image, with $PHPTHUMB_CONFIG = false; I have this message :

phpThumb() v1.7.13-201406261000
phpthumb.sourceforge.net

Error messages disabled.

edit phpThumb.config.php and (temporarily) set
$PHPTHUMB_CONFIG = false;
to view the details of this error

phpThumb() v1.7.13-201406261000 in file "phpthumb.class.php" on line 225

setSourceFilename(/home/e-smith/files/ibays/wm2v/html/components/com_flexicontent/uploads/capture-du-2015-10-19-223228-3.png) set $this->sourceFilename to "/home/e-smith/files/ibays/wm2v/html/components/com_flexicontent/uploads/capture-du-2015-10-19-223228-3.png" in file "phpthumb.class.php" on line 276

file_exists() = 0 in file "phpthumb.class.php" on line 1340

file_exists_ignoreopenbasedir() = 0 in file "phpthumb.class.php" on line 1341

is_file() = 0 in file "phpthumb.class.php" on line 1342

is_executable() = 0 in file "phpthumb.class.php" on line 1343

using ImageMagick path from `which convert` (/usr/bin/convert) in file "phpthumb.class.php" on line 1364

ImageMagick version checked with "convert --version" in file "phpthumb.class.php" on line 1405

ImageMagick convert --version says "Version: ImageMagick 6.7.2-7 2015-07-23 Q16 " in file "phpthumb.class.php" on line 1413

Addding ImageMagick formats to $AvailableImageOutputFormats (text;ico;bmp;wbmp;gif;png;jpeg) in file "phpthumb.class.php" on line 924

$AvailableImageOutputFormats = array(text;ico;bmp;wbmp;gif;png;jpeg) in file "phpthumb.class.php" on line 930

$this->thumbnailFormat set to $this->config_output_format "png" in file "phpthumb.class.php" on line 941

$this->thumbnailFormat set to $this->f "png" in file "phpthumb.class.php" on line 948

$this->thumbnailQuality set to "90" in file "phpthumb.class.php" on line 958

resolvePath: /home/e-smith/files/ibays/wm2v/html/components/com_flexicontent/uploads/capture-du-2015-10-19-223228-3.png (allowed_dirs: Array
(
)
) in file "phpthumb.class.php" on line 1101

resolvePath: iteration, path=/home/e-smith/files/ibays/wm2v/html/components/com_flexicontent/uploads/capture-du-2015-10-19-223228-3.png, base path = in file "phpthumb.class.php" on line 1120

open_basedir: "/home/e-smith/files/ibays/wm2v/:/tmp/:/usr/share/pear:/usr/share/pear-data/" in file "phpthumb.class.php" on line 1087

resolvePath: stop at component 11 in file "phpthumb.class.php" on line 1136

resolvePath: stop at path=/home/e-smith/files/ibays/wm2v/html/components/com_flexicontent/uploads/capture-du-2015-10-19-223228-3.png in file "phpthumb.class.php" on line 1139

resolvePath: no match, returning null in file "phpthumb.class.php" on line 1141

$this->sourceFilename set to "" in file "phpthumb.class.php" on line 854

phpThumb() v1.7.13-201406261000
phpthumb.sourceforge.net

Error messages disabled.

edit phpThumb.config.php and (temporarily) set
$PHPTHUMB_CONFIG = false;
to view the details of this error in file "phpthumb.class.php" on line 4055

setCacheDirectory() starting with config_cache_directory = "" in file "phpthumb.class.php" on line 966

$this->config_cache_directory () is not a directory in file "phpthumb.class.php" on line 1002

SetCacheFilename() failed because $this->config_cache_directory is empty in file "phpthumb.class.php" on line 3409

starting ExtractEXIFgetImageSize() in file "phpthumb.class.php" on line 3241

skipping GetImageSize() because $this->sourceFilename is empty in file "phpthumb.class.php" on line 3253

GetImageSize("") failed in file "phpthumb.class.php" on line 3284

$this->useRawIMoutput=true after checking $UnAllowedParameters in file "phpthumb.class.php" on line 1513

ImageMagickThumbnailToGD() aborting because $this->sourceFilename is empty in file "phpthumb.class.php" on line 1557

ImageMagickThumbnailToGD() failed in file "phpthumb.class.php" on line 3291

SetOrientationDependantWidthHeight() starting with ""x"" in file "phpthumb.class.php" on line 3220

SetOrientationDependantWidthHeight() setting w="800", h="600" in file "phpthumb.class.php" on line 3236

EXIF thumbnail extraction: (size=0; type=""; 0x0) in file "phpthumb.class.php" on line 3348

starting SourceImageToGD() in file "phpthumb.class.php" on line 3608

Not using EXIF thumbnail data because $this->exif_thumbnail_data is empty in file "phpthumb.class.php" on line 3679

$this->gdimg_source is still empty in file "phpthumb.class.php" on line 3731

ImageMagickThumbnailToGD() failed in file "phpthumb.class.php" on line 3733

phpThumb() v1.7.13-201406261000
phpthumb.sourceforge.net

Error messages disabled.

edit phpThumb.config.php and (temporarily) set
$PHPTHUMB_CONFIG = false;
to view the details of this error in file "phpthumb.class.php" on line 4055

SourceImageToGD() failed in file "phpthumb.class.php" on line 356


I don't know what to change for resolve the 2 new errors. I'm stuck here.

[EDIT]
Don't understand why the message joomla/Flexi say "Error messages disabled." because my $PHPTHUMB_CONFIG = false;
When true, in the thumb zone I have in red the indicatioon to set it false.
And when false, I do not have anything in the thumb zone.

Please see this screenshot :
www.cjoint.com/doc/15_11/EKpmQppybYM_Capture-flexi-pb-thumb.png
[/EDIT]

If all this precisions can help you (and me ;) ).
Many thanks.
Laurent

Laurent
Last edit: 10 years 2 months ago by lclaude.

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

More
10 years 2 months ago #58378 by ggppdk
Hello

did you also to set thing to true:
Code:
$PHPTHUMB_CONFIG['allow_src_above_docroot'] = false; // if false (default) only allow src within document_root; if true, allow src to be anywhere in filesystem
which inside file:

components/com_flexicontent/librairies/phpthumb/phpThumb.config.php



-- 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 review. Thanks!

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

More
10 years 2 months ago - 10 years 2 months ago #58380 by lclaude
Yes I did, it's the same.

Sorry, forgot to say that before I update Flexicontent with this rc release, I had in the thumb zone (written in red) an error message with a bad path.
Didn't remember the message, but the image path was:
Code:
/home/e-smith/files/ibays/wm2v/wm2v/html/images/stories/flexicontent/picturefilename.jpg
You can see twice the directory name of the subdomain

Laurent
Last edit: 10 years 2 months ago by lclaude.

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

More
10 years 2 months ago #58383 by ggppdk
Hello

images/stories/flexicontent/uploads
- is a folder protected by direct access (via .htaccess)

phpThumb tries to access it as URL then it will not worl

test this
- temprorarilly rename (inside the above folder) the
.htaccess to something else and retry


-- 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 review. Thanks!

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

More
10 years 2 months ago #58393 by micker
maybe you have aesecure script ... check protection folder part

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

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

More
10 years 2 months ago #58403 by inesrosas
Hi! I don't have an uploads folder inside images/stories/flexicontent. I did find and renamed the htaccess file in images/stories/flexicontent/item_225_field_21/original. I tried renaming and deleting and neither option owrked...After re-uploading the photo, the broken image in the admin remains... The site looks good though.

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

More
10 years 2 months ago #58429 by lclaude
Hello,

I don't have aesecure.
I don't have an htacces in images/stories/flexicontent/
I don't have a folder 'upload' in images/stories/flexicontent/
But my bad : in my post #58380, the path was not good.

I've just downgrade phpthumb to the v1.7.11, I have now access to the error message.
Please see this screenshot:

And now the path is good : without the twice "wm2v" of my subdomain name. Don't know why.

As you can see in the thumb zone of existing files : we can see the thumb of my picture (called "capture.png"). Why can it be screened here and not above?


Another information: when I upload a picture, I can see his thumb in the area where I have the error with the phpThumb. Please see the screenshot "Capture 1 - picture just uploaded.png". So I think the cache works.

If I save the item and re-open it then I have the phpthumb error.

About htaccess :
I can find one in : /components/com_flexicontent/uploads
I have renamed it, but nothing new.

Laurent

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

More
10 years 2 months ago - 10 years 2 months ago #58432 by ggppdk
Hello

you may send access me to the website with a PM,
suggest the ID of an item that shows the issue

this should not be FLEXIcontent configuration (path-related) parameters
as path parameter in FLEXIcontent
- (component 's 1st TAB) "Media folder" used to store original images in DB mode
- and in image field the parameter to define the place of thumbnails

are relative and you did not change them ?


-- 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 review. Thanks!
Last edit: 10 years 2 months ago by ggppdk.

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

More
10 years 2 months ago #58437 by lclaude
Hello,
I send you that. Thanks for your time.

I didn't change anything there.

Laurent

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

More
10 years 2 months ago #58442 by ggppdk
I have your PM


in file components/com_flexicontent/libraries/phpThumb/phpThumb.config.php
change line:
$PHPTHUMB_CONFIG = true;
to
$PHPTHUMB_CONFIG = false;

so that error message gets printed
also please see and answer my PM


-- 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 review. Thanks!

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

Moderators: vistamediajoomlacornerggppdk
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
Save