[SOLVED] PHPThumb - absolute image urls (with local domain) are not allowed by default configuration

More
8 years 7 months ago - 8 years 7 months ago #61206 by Woodzy42
The PHP Thumbs function is not working as expected.
With $PHPTHUMB_CONFIG [ 'disable_debug' ] = true; the site will present some of the images while most of them are replaced with the error message to set the value to false.
With the $PHPTHUMB_CONFIG [ 'disable_debug' ] value set to false, none of the images appear and there is/are not any error messages at all, and some of the items only have a placeholder image where the thumb should be; like when the image-file isn't found.
the default image path is "images/..." with the thumbs that work correctly, if I add a slash to the path "/images/..." , in the item(s) for the thumbs that do not appear, then they will appear.
joomla 3.51
Flexicontent 3.0.14-rc2a
thewoodlandsguide.com/destinations/restaurants
Last edit: 8 years 7 months ago by ggppdk.

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

More
8 years 7 months ago - 8 years 7 months ago #61210 by ggppdk
Hello

you have added images inside the item descriptions, that have the domain ...
- that is better to avoid since if you change domain or if you add extra domain they may stop working

either edit the items and remove the domain from them
thewoodlandsguide.com/images/restaurants...200&h=200&aoe=1&q=95

should be relative like this:
logos/19th-hole-grill-and-bar.jpg


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

seach for:
... allow_local_http_src'] = false; ...

and set it to true

in new version there will be a file ... :
components/com_flexicontent/librairies/phpthumb/phpThumb.config_OVERRIDE.php

i am not sure if it is good policy to allow absolute URLs to the local domain
(since if you change domain or if you add extra domain they may stop working)


-- 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...
Last edit: 8 years 7 months ago by ggppdk.

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

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