[~username folder not supported by phpThumb] Images not displayed with Flexicontent Universal Module

More
9 years 5 months ago - 9 years 5 months ago #54944 by Djinn
Hi,
I use a flexicontent universal module on my homepage with text and some image into it but the image is not displayed.

It appears a blue box with red message saying "phpThumb() v 1.7 ... Error messages disabled" in place of the image (print screen in file attached)

I found a post in the forum of 3 years ago related to the same issue. But I don't understand the solution that is written by ggppdk '. The problem seem to be related to the character & in the url of the image but I don't understand what must be done to solve this.

Here is the post

Solution explains to replace '& by '& -> this is exactly the same :blink: ?? there must be some error in the post, does somoene have an idea ?

Thanks in advance for your help :)
Attachments:
Last edit: 9 years 5 months ago by ggppdk.

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

More
9 years 5 months ago #54945 by ggppdk
Hello

as the message says,
-- the reason is not (yet) displayed in the message

e.g. the image file was not found
in this case you should edit the item and select an existing image


To see the the real reason
please edit file:
components/com_flexicontent/libraries/phpthumb/phpThumb.config.php:
change:
Code:
$PHPTHUMB_CONFIG['disable_debug'] = true;
to:
Code:
$PHPTHUMB_CONFIG['disable_debug'] = false;

refresh the page and the real message will appear


-- 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
9 years 5 months ago #54967 by Djinn
Hi,

Thanks for the response. I activated the error message in the phpThumbConfig.php and it says phpthumb_functions::ApacheLookupURIarray() failed for "/'emilemax/images/images.jpg". this has been known to fail on Apache2 - try using the absolute filename for the source image (ex: "/home/user/httpdocs/image.jpg" instead of "/user/image.jpg")

Like I said this is happening for images inserted in a flexicontent module. This is the html code in the editor : <img src="images/images.jpg" alt="" />
The image source is a relative path and this seems to be the problem.

But why ? I have a lot of images with relative path in common articles and it makes no problem. This problem occurs when the images are embedded into a flexicontent module.

Do you have any idea of solution for this ?

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

More
9 years 5 months ago #54970 by ggppdk
Hello

the file path is absolute
because it starts with a /

but note that after / there is a single quote in the folder name,

/ ' emilemax/images/images.jpg


if you have created a folder name that has a quote, then please change to be without the quote


-- 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
9 years 5 months ago #54993 by Djinn
Hi,

Yes you are right there is a single quote juste after the first "/". In fact, when I inspect the element code in the browser, the full path is "/~emilemax/images/images.jpg"

The character ~ is replaced by a ' in the error message of the flexicontent module.

/~emilemax/ is not a real folder's name but the alias of the root folder given by my hosting. The physical root folder is called /public_html but it is replaced by /~emilemax/ in all the url's.

Isn't it possible for the flexicontent module to interpret this ~ character correctly? Why does he replaces it by a single quote character ?

I you want to see this by yourself, here is the url of my website : 109.199.123.118/~emilemax/index.php/fr/
-> I'm still in the development phase so this temporary url is not bound yet to a domain name

Thanks

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

More
9 years 5 months ago #54996 by ggppdk
Hello

it is a known issue phpThumb will not work with folder names:
~username

i am not sure if modifying phpThumb code will create any problem or introduce a security issue


-- 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.

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