Undefined Index in the options array

QuestionsUndefined Index in the options array
Daniel asked 7 months ago

When I enable error messages I get about 20 error messages that the index is not defined.
As far as I see there is no default initialization of some arrays (option & internal).

Two Examples:

Notice: Undefined index: subGrid in/home/vendor/phpgrid/lib/inc/jqgrid_dist.phpon lineĀ 973

Notice: Undefined index: frozen in/home/vendor/phpgrid/lib/inc/jqgrid_dist.phpon lineĀ 1842

Since I don’t want to initalize all the settings in the code, I think they should be set in phpgrid core files.

1 Answers
Abu Ghufran Staff answered 7 months ago

Yes, NOTICES should be handled inside library. But currently they are not.

It’s recommended to disable them via error_reporting() as they are not harmful.

error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED);

Abu Ghufran - Dev Team
PHP Grid Framework
Your Answer

10 + 13 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.

How useful was this discussion?

Click on a star to rate it!

Average rating / 5. Vote count:

We are sorry that this post was not useful for you!

Let us improve this post!