[SOLVED] Fatal error when using custom display method for image field, inside a fieldgroup field

More
9 years 5 months ago - 9 years 5 months ago #54501 by agata
Hi,
I was delighted to find that the field group was introduced in the latest version of Flexi and I couldn't wait to use it. On the homepage of the project I'm doing I have a carousel consisting of 3 groups of fields (that until now I just had as a bunch of separate fields but was now trying to convert into a field group of 1 image field + 2 text fields + 1 textarea field) and it works like a charm except for the image field that causes the following error:
Fatal error: Cannot access empty property in /home/wilddogc/sandbox-select/plugins/flexicontent_fields/image/image.php on line 1340

EDIT: I also noticed that remove/delete checkboxes are not displaying for the image field within the field group on item edit page.

Any ideas as to why this might be happening?
Best,
Agata
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 - 9 years 5 months ago #54502 by ggppdk
Hello

first, please use v3.0.0 BETA 7a
github.com/FLEXIcontent/flexicontent-cck/releases


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

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

More
9 years 5 months ago - 9 years 5 months ago #54503 by agata
Hi, installed but the error persists.
Best,
Agata
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 - 9 years 5 months ago #54504 by ggppdk
Hello

but it is in different line, so you need to say the new line


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

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

More
9 years 5 months ago - 9 years 5 months ago #54505 by agata
Right, sorry, here it is
Fatal error: Cannot access empty property in /home/wilddogc/sandbox-select/plugins/flexicontent_fields/image/image.php on line 1346
A
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 - 9 years 5 months ago #54506 by ggppdk
This is at line
$field->{$prop} = array();

- it seems $prop is empty string

-- try this fix, edit file:
plugins/flexicontent_fields/fieldgroup/ fieldgroup.php
Replace:
Code:
$method = $gf_methods[$pos] ? $custom_field_methods[$pos] : 'display';
with:
Code:
$method = $gf_methods[$pos] ? $gf_methods[$pos] : 'display';


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

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

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