Forums

Error message when opening form

Erik66 09 Jan, 2019
I am opening a form, previously created in CF6, and get this error message displayed:

undefined index in ............../libraries/cegcore2/libs/model.php on line 1140


I get this error on each and every form I try to edit.

Does anyone have a clue what is happening and how I can solve this? I tried reinstalling component, plugin and module but that made no difference.

Thanks in advance,

Erik
GreyHead 09 Jan, 2019
Hi Erik,

Which version of CFv6 do you have installed?

I see this at line 1140 of that file in a function build_flat_list()
 $children = $this->build_flat_list($elements, $element[$this->alias][$this->pkey], ($_depth + 1));
Bob
Erik66 09 Jan, 2019
Hello Bob, it's 6.0.20 .

Erik
healyhatman 09 Jan, 2019
There's an update available, try that
healyhatman 10 Jan, 2019
What PHP version are you on?
Erik66 10 Jan, 2019
This one is on 7.0.33
GreyHead 10 Jan, 2019
Hi Erik,

Please post a form backup so that we can take a quick look,.

Bob
Erik66 10 Jan, 2019
Hello Bob, where/how can I post a fomr backup without it becoming publicly available please?
GreyHead 10 Jan, 2019
Hi Erik,

Please add it to your post in 'Private Content' tags - the padlock icon in the Editor.

Bob
GreyHead 10 Jan, 2019
Hi Erik,

I deleted your post after downloading as the Private Content tags didn't appear to work.

I don't have the database table so can't fully test the form but I get no error when loading so it looks as if the error is related to the DB Read.

Please try adding a Debugger action which should show you the Query that is being generated and the data that lis loaded.

Bob
Erik66 10 Jan, 2019
Thank you Bob, I'll do. To be continued...
Erik66 10 Jan, 2019
Too bad Bob, that didn't help. In fact, all forms I have in this install show the same error, regardless of wether they read and/or write to tables.
GreyHead 11 Jan, 2019
Hi Erik,

Please use the Contact menu above to ask Max (the owner and developer) and link to this thread.

Bob
Erik66 11 Jan, 2019
Thank you Bob, I'll do that.
Erik66 19 Jan, 2019
Update: the issue is solved. It turned out there were some missing indexes in some of the Joomla! user database table. Once these indexes were added, the forms could be opened and edited without any error messages again.

Many thanks for the help Bob and Max !

Erik
This topic is locked and no more replies can be posted.