Support

Home Forums Event Espresso Premium Undefined offset

Undefined offset

Posted: October 19, 2016 at 11:21 am

Viewing 5 reply threads


chrisscottuk

October 19, 2016 at 11:21 am

Hi there, while trying to track down an unrelated fault with my website, I’ve noticed that there are a lot of these notices recorded in the debug log.
I have no idea what it means, so I thought I’d ask you, and alert you incase it’s something your end that needs fixing.

Any ideas?
Thanks,

Chris

PHP Notice: Undefined offset: 1 in **********wp-content/plugins/event-espresso-core-reg/core/third_party_libs/wp-api-basic-auth/basic-auth.php on line 31


Josh

  • Support Staff

October 19, 2016 at 11:39 am

We’re going to be removing the bundled basic auth plugin eventually. It’s not actually a plugin that Event Espresso developed, but it was added as an attempt to make things easier for using the mobile apps.


chrisscottuk

October 19, 2016 at 12:16 pm

okey dokey. I’ll ignore it.

Thanks Josh


Josh

  • Support Staff

October 19, 2016 at 12:53 pm

You can remove the Basic Auth functionality from EE4 core by adding this snippet to your site:

https://gist.github.com/joshfeck/8b586e670cf120fc40a803daa6d8b205

You can add the above to a functions plugin or into your WordPress theme’s functions.php file.

That will disable the code that’s throwing the PHP notice. If you use the mobile apps, you’ll need to install the Application Passwords plugin, which is available to download here:

https://wordpress.org/plugins/application-passwords/


chrisscottuk

October 19, 2016 at 3:42 pm

That is superb. Thank you!


Josh

  • Support Staff

October 19, 2016 at 3:51 pm

You’re welcome.

Viewing 5 reply threads

The support post ‘Undefined offset’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso