PHP notice “Undefined offset” on standard install

Solved6.97K viewsThemes
0

Using Anspress 4 & WP 4.7.2

When logged-in as non-admin user (I’m using Subscriber), there is error on backend

Below is the error recorded:

[06-Mar-2017 11:16:41 UTC] PHP Notice:  Undefined offset: 2 in /var/www/satu.com/wp-admin/includes/plugin.php on line 1550
selected answer
1

That is because you run WordPress in Debug mode. You should not do that with a live system because it may reveal sensitive information like paths etc.

Always run debug mode WITH DEBUG.LOG (to a log file).

As for the notice, it is just a notice. Probably harmless. Should be fixed at some point if it comes from Anspress.

selected as best answer

It only happen if Anspress installed.

Without Anspress installed, no error generated.

And does that stop you from using somehow your site ?

So far I not found other problem because of that notice. Only feel awkward if notice generated every time and wonder what that notice means especially it it is PHP notice.

As long as I don’t know what that notice means, it looks like a problem and I try to silence it.

If it is normal, can you explain what that notice means?

I never said to “silence” it. I said to hide it from visitors of your site. Enable debug to a LOG.

define(‘WP_DEBUG’, true); // enables debugging
define(‘WP_DEBUG_LOG’, true); // logs messages to wp-content/debug.log
define(‘WP_DEBUG_DISPLAY’, false); // hides debug messages from showing in the browser

I’m pretty sure it will be addressed, still it is hard to see what is wrong, since the notice doesn’t directly point to Anspress.

There are a few other notices also in Anspress 4, they will be fixed asap.