Undefined Index in the options array

QuestionsUndefined Index in the options array
Daniel asked 6 years 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 6 years 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
Grid 4 PHP Framework
 
Your Answer

12 + 12 =

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 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

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

Let us improve this post!

Tell us how we can improve this post?