Error if non-admin login and viewing dashboard

3.03K viewsCore
0

I’m using Anspress 4

If non-admin login and viewing dashboard, error generated in debug.log

Below is the error in debug.log:

[08-Mar-2017 14:24:55 UTC] PHP Notice:  Undefined offset: 2 in /var/www/html/testweb.dev/wp-admin/includes/plugin.php on line 1550
[08-Mar-2017 14:24:55 UTC] PHP Notice:  Undefined offset: 2 in /var/www/html/testweb.dev/wp-admin/includes/plugin.php on line 1550
[08-Mar-2017 14:24:55 UTC] PHP Notice:  Undefined offset: 2 in /var/www/html/testweb.dev/wp-admin/includes/plugin.php on line 1550
[08-Mar-2017 14:24:55 UTC] PHP Notice:  Undefined offset: 2 in /var/www/html/testweb.dev/wp-admin/includes/plugin.php on line 1550

When Anspress deactivated, this not happening.
(At first, I thought this is WordPress core error)

commented

That is NO ERROR.

There are Notices, Warnings and Fatal Errors.

So this is a PHP Notice, maybe harmless. Still if you are sure it comes from Anspress, it should be examined.

When Anspress deactivated, this not happening.

(At first, I thought this is WordPress core error)

Searching here, reveals that the error really exists. Reported 3 times:

https://anspress.io/questions/search/?ap_s=includes%2Fplugin.php+on+line+1550

Yes, I remember this was posted before. But I don’t have enough information about this issue. Please install query monitor plugin and check then show us full back trace.

Rahul Aryan, I cannot trace since the error only happen if login as non-administrator.

(Query Monitor only show data for administrator)

I tried to hack Query Monitor to make it works for Subscriber but not success