Page 1 of 1

Facing errors in admin

Posted: Sun Dec 11, 2022 4:54 am
by radhavallabh
Hi dear I am facing below errors when I click the edit button kindly can you help fix please-

FAQ addon-
Notice: Trying to access array offset on value of type null in /xx/xx/xx/admin/includes/actions/faq/views/edit.php on line 36

Groups Addon-
Undefined offset: 6 in
/xx/xx/xx/admin/includes/actions/groups/infoboxes/edit.php
on line
23

Thank you in advance;
Warm Regds./
radhavallabh

Re: Facing errors in admin

Posted: Sun Dec 11, 2022 6:39 am
by ecartz
radhavallabh wrote: Sun Dec 11, 2022 4:54 am Notice: Trying to access array offset on value of type null in /xx/xx/xx/admin/includes/actions/faq/views/edit.php on line 36
That's a notice, not an error. But if you don't like it, you could try changing line 36 of that file to

Code: Select all

                            . '</span></div>' . new Input('faq_question[' . $l['id'] . ']', ['value' => $faq['faq_question'] ?? '']) . '</div>';
radhavallabh wrote: Sun Dec 11, 2022 4:54 am Undefined offset: 6 in
/xx/xx/xx/admin/includes/actions/groups/infoboxes/edit.php
on line
23

Code: Select all

                        . new Input('groups_name[' . $l['id'] . ']', ['value' => $group_names[$l['id']] ?? '']) . '</div>';

Re: Facing errors in admin

Posted: Sun Dec 11, 2022 7:42 am
by admin
radhavallabh wrote: Sun Dec 11, 2022 4:54 am errors when I click the edit button
FAQ addon-
Groups Addon-
For help and support for Addons, ensure to post in the appropriate Addon Topic.
Do not start a new topic.

Re: Facing errors in admin

Posted: Sun Dec 11, 2022 8:51 am
by radhavallabh
ecartz wrote: Sun Dec 11, 2022 6:39 am
radhavallabh wrote: Sun Dec 11, 2022 4:54 am Notice: Trying to access array offset on value of type null in /xx/xx/xx/admin/includes/actions/faq/views/edit.php on line 36
That's a notice, not an error. But if you don't like it, you could try changing line 36 of that file to

Code: Select all

                            . '</span></div>' . new Input('faq_question[' . $l['id'] . ']', ['value' => $faq['faq_question'] ?? '']) . '</div>';
radhavallabh wrote: Sun Dec 11, 2022 4:54 am Undefined offset: 6 in
/xx/xx/xx/admin/includes/actions/groups/infoboxes/edit.php
on line
23

Code: Select all

                        . new Input('groups_name[' . $l['id'] . ']', ['value' => $group_names[$l['id']] ?? '']) . '</div>';
Thank you so much dear the error faced on group.php is fixed now :D
but the faq.php notice seems to persist;
Warm Regds./
radhavallabh

Re: Facing errors in admin

Posted: Sun Dec 11, 2022 8:52 am
by radhavallabh
admin wrote: Sun Dec 11, 2022 7:42 am
radhavallabh wrote: Sun Dec 11, 2022 4:54 am errors when I click the edit button
FAQ addon-
Groups Addon-
For help and support for Addons, ensure to post in the appropriate Addon Topic.
Do not start a new topic.
Ok dear shall keep that in mind in future...