Problem with CF 6.1?? cegcore messages.

How to fix ChronoForms validation errors after upgrading to version 6.1.

Overview

The issue occurs because the site's error reporting is set higher than the system default, causing PHP warnings when a validation index is undefined.
To resolve this, either lower the site's error reporting level to the system default or wait for the next CF update, which will include a fix for the underlying code.

Answered
ChronoForms v6
Ni NickOg 23 Apr, 2019
I have run the upgrade from 6.0.28 to 6.1 on my development site and a form that has worked now generates a stack of errors.

Notice: Undefined index: validation in /hsphere/local/home/pmhu3adv/develop.pmhu3adv.org.au/libraries/cegcore2/admin/extensions/chronofc/helpers/field.php on line 263

Warning: array_filter() expects parameter 1 to be array, null given in /hsphere/local/home/pmhu3adv/develop.pmhu3adv.org.au/libraries/cegcore2/admin/extensions/chronofc/helpers/field.php on line 263

Notice: Undefined index: validation in /hsphere/local/home/pmhu3adv/develop.pmhu3adv.org.au/libraries/cegcore2/admin/extensions/chronofc/helpers/field.php on line 263

Warning: array_filter() expects parameter 1 to be array, null given in /hsphere/local/home/pmhu3adv/develop.pmhu3adv.org.au/libraries/cegcore2/admin/extensions/chronofc/helpers/field.php on line 263

Notice: Undefined index: validation in /hsphere/local/home/pmhu3adv/develop.pmhu3adv.org.au/libraries/cegcore2/admin/extensions/chronofc/helpers/field.php on line 263

Warning: array_filter() expects parameter 1 to be array, null given in /hsphere/local/home/pmhu3adv/develop.pmhu3adv.org.au/libraries/cegcore2/admin/extensions/chronofc/helpers/field.php on line 263

Notice: Undefined index: validation in /hsphere/local/home/pmhu3adv/develop.pmhu3adv.org.au/libraries/cegcore2/admin/extensions/chronofc/helpers/field.php on line 263

Warning: array_filter() expects parameter 1 to be array, null given in /hsphere/local/home/pmhu3adv/develop.pmhu3adv.org.au/libraries/cegcore2/admin/extensions/chronofc/helpers/field.php on line 263

Notice: Undefined index: validation in /hsphere/local/home/pmhu3adv/develop.pmhu3adv.org.au/libraries/cegcore2/admin/extensions/chronofc/helpers/field.php on line 263

Warning: array_filter() expects parameter 1 to be array, null given in /hsphere/local/home/pmhu3adv/develop.pmhu3adv.org.au/libraries/cegcore2/admin/extensions/chronofc/helpers/field.php on line 263

Notice: Undefined index: validation in /hsphere/local/home/pmhu3adv/develop.pmhu3adv.org.au/libraries/cegcore2/admin/extensions/chronofc/helpers/field.php on line 263

Warning: array_filter() expects parameter 1 to be array, null given in /hsphere/local/home/pmhu3adv/develop.pmhu3adv.org.au/libraries/cegcore2/admin/extensions/chronofc/helpers/field.php on line 263
addOrRenewMemberV6 load (1396) ©PMHU3A 2019Printed 24-Apr-2019

My main site - the same form but 6.0.28 does not generate those messages.

any idea what might have cause this???

Nick
Gr GreyHead 24 Apr, 2019
Answer
1 Likes
Hi NickOg,

I gave this reply to a similar question this morning

The immediate cause is that you have your site Error Reporting set higher than System Default. PHP Warnings are not usually a problem.
That said, if you need to remove the warning then you can try changing line 263 in that file to
if(is_array($view['validation']) && !empty(array_filter($view['validation']))){
Bob
Max_admin Max_admin 24 Apr, 2019
Hi,

Thanks for repporting this, I have fixed it in the next update!

Best regards
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Ni NickOg 24 Apr, 2019
Thanks Gents - that will get me through anyway.

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