Image field: thumbnailing via phpThumb fails because of image path not under document root

More
7 years 11 months ago #61027 by ggppdk
Hello

I have modified code to force loading of phThumb Configuration:

This is v3.0.x-stable branch:
github.com/FLEXIcontent/flexicontent-cck/tree/3.0.x-stable

you can click "Download ZIP" install in the DEV site and test
- remember to configure your DOCUMENT ROOT as menitioned in previous message


-- 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
7 years 11 months ago #61030 by ggppdk
Hello

please test and provide FEEDBACK,

- after you confirm it is working,

i will add new file:
phpThumb.config_OVERRIDE.php

Thus it will be usable for
- website that DOCUMENT ROOT is not detected correctly
- also to override PHPThumb default cache size (e.g. needed for very large websites), etc


-- 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
7 years 11 months ago - 7 years 11 months ago #61037 by tonnick
Hello !

ok, here are the tests :

1. installation of latest zip provided
2. clear cache (frontend)
3. not working

4. configuring document root in phpThumb.config.php
- comment following line :
//$PHPTHUMB_CONFIG = realpath((getenv('DOCUMENT_ROOT') && preg_match('#^'.preg_quote(realpath(getenv('DOCUMENT_ROOT'))).'#', realpath(__FILE__))) ? getenv('DOCUMENT_ROOT') : str_replace(dirname(@$_SERVER), '', str_replace(DIRECTORY_SEPARATOR, '/', dirname(__FILE__))));

- add FULL PATH : $PHPTHUMB_CONFIG[ 'document_root' ] = '/data/www/CUSTOMER/DOMAIN/httpdocs';
- clear cache (frontend)
- not working

- set PHP-FPM CHROOT PATH : $PHPTHUMB_CONFIG[ 'document_root' ] = '/data/www/CUSTOMER';
- clear cache (frontend)
- not working

- set RELATIVE PHP-FPM CHROOT PATH : $PHPTHUMB_CONFIG[ 'document_root' ] = '/DOMAIN/httpdocs';
- clear cache (frontend)
- not working

Just let me know the next step.
Last edit: 7 years 11 months ago by ggppdk.

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

More
7 years 11 months ago #61259 by tonnick

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

More
7 years 11 months ago #61268 by ggppdk
Hello

I have add the file that was mentioned above:
phpThumb.config_OVERRIDE.php

This is v3.0.x-stable branch:
github.com/FLEXIcontent/flexicontent-cck/tree/3.0.x-stable

click ZIP and install
then modify the new file to set the document root


-- 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
7 years 10 months ago - 7 years 10 months ago #61827 by tonnick
I updated to latest joomla version and installed the flexicontent zip provided and now, in backend, I have the joomla item/category view instead of flexicontent one. Is it normal ? :(

I saw as well in one of the version I test an export function, which is not anymore present as well :( is this version latest one ? github.com/FLEXIcontent/flexicontent-cck/tree/3.0.x-stable
Last edit: 7 years 10 months ago by tonnick.

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

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