phpthumb double leading slash url issue (category image)

More
11 years 8 months ago #40228 by magj
Hi

I use the latest Flexicontent 2.1 on J! 2.5.
I have a local development site on windows.

I use image for categories. I select an image from it's option in category edit view, the url seems OK with no "leading slash" and the preview buttons show the image.

But in frontend the phpthumb display an error. I checked the image url , it seems like:
components/com_flexicontent/librairies/phpthumb/phpThumb.php?src=//THE/PATH/TO/MY/IMAGE
the double slash is not present in the field , I checked the DB/phpmyadmin ,in the category/params field there is no slash.

When I replace double slash (in browser URL) with single slash it displays the image
components/com_flexicontent/librairies/phpthumb/phpThumb.php?src=/THE/PATH/TO/MY/IMAGE

Any help would be greatly appreciated
Thanks
Regards

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

More
11 years 8 months ago #40229 by micker
sorry but last version ... isn't clear ... can you specifie it ?

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

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

More
11 years 8 months ago #40234 by magj
Sorry,

it is: FLEXIcontent version 2.1.0 r1742a

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

More
11 years 8 months ago #40240 by ggppdk
Hello

In r1771, fixed double slash in category images URLs for category and directory views


To apply a fix now (category view):
edit
components/com_flexicontent/views/category/view.html.php

and replace:
Code:
$src = JURI::base(true)."/".$joomla_image_path."/".$cat->image;
with:
Code:
$_jip = ($joomla_image_path ? '/':'') .$joomla_image_path; $src = JURI::base(true).$_jip."/".$cat->image;

and replace:
Code:
$src = JURI::base(true)."/".$joomla_image_path."/".$subcat->image;
with:
Code:
$_jip = ($joomla_image_path ? '/':'') .$joomla_image_path; $src = JURI::base(true).$_jip."/".$subcat->image;


-- 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
11 years 8 months ago #40307 by magj
THANKS!

it's resolved

Regards

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

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