Question: Creating Admin User Gives Array Offset Error

Creating Admin User Gives Array Offset Error

The following error shows on the page "Message: Trying to access array offset on value of type null" for each View - index.php >A PHP Error was encountered >Severity: Notice >Message: Tryin

DE

Dean Elzey

Asked
The following error shows on the page "Message: Trying to access array offset on value of type null" for each View - index.php

>A PHP Error was encountered
>Severity: Notice
>Message: Trying to access array offset on value of type null


This happens on the following controllers:
-Products
-Sales
-Quotes
-Purchases
-Transfers
-Returns
-Customers
-Suppliers

Basically everywhere you put ```php $GP['bulk_actions'] ``` into the view.

This can be fixed using the following:
```php if ($Owner || (isset($GP) ? $GP['bulk_actions']: false)) ```
  • MS

    Mian Saleem

    Answered
    Hello,

    Yes, that will be fixed in next update. It's only for development, won't be shown on production.

    Thank you
  • Login to Reply