Fatal Error when adding new list from existing table

Bauer

Well-Known Member
Today I tried adding a new Fabrik list from an existing database table. (Hadn't done that in a while)
When I go to save the form I get this error. (see attachment)
 

Attachments

  • saveAddedListError.png
    saveAddedListError.png
    30.6 KB · Views: 122
The last I updated from github was on the 18th.
I did update to Joomla v.3.4.7 yesterday though.

After googling and reading this... https://bytes.com/topic/php/answers/556445-when-array-not-array

I got around the fatal error by inserting this code at line 1085
Code:
        $parentGroups = array();

        foreach ($parent as $parentGroup)
        {
            $group = $this->domNodeAttributesToArray($parentGroup);
            $parentGroups[] = $group;
        }

Then I changed the line that threw the error from
Code:
  if ($parent[0]->getAttribute('ignoreacl') === 'true')

to
Code:
if ($parentGroups[0]['ignoreacl'] === 'true')

What now shows as the generated xml output on that page is a mess - but it at least this got me past the error and allowed the table/list to be created.
 
Yup, we're working on it. Some "side effects" of the recent content-types stuff we added a week or so ago have broken creating a list from a CSV import or from existing table.

-- hugh
 
Thanks and Merry Christmas, Hugh. Happy Holiday to all at fabrikar.com
I've been busier than a one-armed paper-hanger with the crabs. So I probably won't even get around to updating from github for a while.
 
I'm busier'n a one legged man in an ass kicking contest. One of my favorite expressions from round here.

-- hugh
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top