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

More
8 years 4 weeks ago - 8 years 4 weeks 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: 8 years 4 weeks ago by ggppdk.

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

More
8 years 2 weeks ago #61259 by tonnick

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

More
8 years 2 weeks 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 11 months ago - 7 years 11 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 11 months ago by tonnick.

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

More
7 years 11 months ago #61831 by ggppdk
Hello

yes about configuration import / export , it exists in the master branch (v3.1-dev) , which you had installed instead of the correct branch:
github.com/FLEXIcontent/flexicontent-cck/tree/3.0.x-stable

now about phpThumb, and using the latest:
github.com/FLEXIcontent/flexicontent-cck/tree/3.0.x-stable

edit file:
components/com_flexicontent/librairies/phpthumb/phpThumb.config_OVERRIDE.php

and set your correct document ROOT in there
also in case that you added
...disable_debug... = false;
you need to change again to:
...disable_debug... = true;


-- 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 #61836 by tonnick
yes I installed flexicontent from the the link you provided : github.com/FLEXIcontent/flexicontent-cck/tree/3.0.x-stable

but :
1. in backend, I have the joomla item/category view instead of flexicontent one. how can we back to flexicontent view by default ?
2. will you add export option soon on the stable tree ?
3. after modifying phpThumb.config_OVERRIDE.php, item page is now completely unreachable with no error log.

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

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