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

More
9 years 10 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 review. Thanks!

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

More
9 years 10 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 review. Thanks!

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

More
9 years 10 months ago - 9 years 10 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: 9 years 10 months ago by ggppdk.

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

More
9 years 10 months ago #61259 by tonnick

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

More
9 years 10 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 review. Thanks!

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

More
9 years 9 months ago - 9 years 9 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: 9 years 9 months ago by tonnick.

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

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

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

More
9 years 9 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.

More
9 years 9 months ago #61839 by ggppdk

3. after modifying phpThumb.config_OVERRIDE.php, item page is now completely unreachable with no error log.

you need to set correct path and also be careful not to make any PHP syntax error

about backend, use:
Extensions / FLEXIcontent / Items
Extensions / FLEXIcontent / Category

the:
Content / articles
Content / categories
may or may not be redirected, it depends on the configuration that you have in plugin:
System - FLEXIcontent CORE functions


-- 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
9 years 9 months ago #61847 by tonnick
I tried different path, with no luck. I think that I'll abandon the idea of using this option.

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