• First of all, thank you for this great plugin. This functionality should be in WP core!

    I’m using this plugin with Jetpack with no apparent ill effects, except for when I visit the Jetpack admin page I get the PHP warning below when I have WP_DEBUG on:

    Notice: Trying to access array offset on value of type null in /var/www/disablemycable.com/htdocs/wp-content/plugins/disable-json-api/classes/disable-rest-api.php on line 75

    The page still renders and everything seems to work properly. I verified this behavior on two different sites. There is no error if I have WP_DEBUG off.

    Could this be fixed with a simple check to see if the variable exists before testing it?

    Many thanks,
    Brian

Viewing 1 replies (of 1 total)
  • Plugin Author Dave McHale

    (@dmchale)

    Thanks for the detailed report @brianrshim ! Will definitely look into this.

    I’m happy to hear that it doesn’t seem to be affecting any functionality, but the goal is definitely to prevent all errors/warnings/notices

    I will update this thread once I have something to report. Cheers!

Viewing 1 replies (of 1 total)
  • The topic ‘PHP error “Notice: Trying to access array offset on value of type null..’ is closed to new replies.