Thumb error in template w. image field [solved]

More
12 years 1 month ago - 12 years 1 month ago #23819 by iamrobert
Hi,

I get the following error:

[attachment=1:kldo9rgw]<!-- ia1 -->error.png<!-- ia1 -->[/attachment:kldo9rgw]

I am using flexicontent 2.0 RC4 (r1209). When I don't have an image loaded the phptumb error message appears. The code renders as:
Code:
<img src=".../com_flexicontent/librairies/phpthumb/phpThumb.php?src=/images/stories/flexicontent/l_&amp;w=200&amp;h=200&amp;aoe=1&amp;q=95" alt="test error" class="">

So - it loads even if there is no image "l_"...

Settings:
[attachment=0:kldo9rgw]<!-- ia0 -->sigh.png<!-- ia0 -->[/attachment:kldo9rgw]

It seems to have this problem with all templates. I think the problem is the code loads even if there is no image...
Attachments:
Last edit: 12 years 1 month ago by iamrobert.

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

More
12 years 1 month ago #23820 by ggppdk
I have some info from micker too :

1. it is blog template
2. template uses an image field as image
3. the image field does not have image for some items
4. you do not set a default image in the image field

right?


-- 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
12 years 1 month ago #23824 by ggppdk
Will commit this fix,

to use the fix now replace (in category_items.php of blog template):
Code:
if (isset($items[$i]->fields[$this->params->get('lead_image')]->value[0])) :
with
Code:
if (!empty($items[$i]->fields[$this->params->get('lead_image')]->value[0])) :

and
Code:
if (isset($items[$i]->fields[$this->params->get('intro_image')]->value[0])) :
with
Code:
if (!empty($items[$i]->fields[$this->params->get('intro_image')]->value[0])) :


-- 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
12 years 1 month ago #23826 by micker
tested and valided !

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
12 years 1 month ago #23839 by iamrobert
Thanks a lot - it works perfectly now...

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

More
12 years 1 month ago #23841 by micker
can you edit you title post and add [solved]
regards

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.

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