Support » Plugin: Health Check & Troubleshooting » Lastest Version 1.2.4 is causing errors

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Marius L. J.

    (@clorith)

    Hiya,

    Thank you for the heads up there, what screen are you seeing this notice on, and what version of WordPress are you running?

    Cuong

    (@cuongtalentccc)

    Hi Marius,

    I see it in Plugin Module >> Installed Plugin.

    I’m running WordPress 5.0.3 (latest version)

    The previous version of Health Check is fine, the issue appeared when I update it to the latest version.

    Plugin Author Marius L. J.

    (@clorith)

    Hmm, it sounds somewhat familiar, do you have any premium plugins active on your site, and if so which?

    Cuong

    (@cuongtalentccc)

    Hi Marius,

    I used Troubleshooting Mode from WP Time Capsule to enable one-by-one plugins to check the conflict.

    I found 3 premium plugins are causing the issue:
    1. Brizy Pro
    2. Advanced Custom Fields PRO
    3. Smart Content Filter Pro

    Plugin Author Marius L. J.

    (@clorith)

    Thank you, that’s very helpful, I see why the notice is thrown, but I’ll look a bit deeper to find out why those premium plugins are missing that data field just to make sure we get it sorted properly!

    In the meanwhile, you can get rid of it, as it is just a notice, if you disable debugging (if you look in wp-config.php it should have a line like define( 'WP_DEBUG', true ), changing that value from true to false should stop notices like these, it’s also recommended ot not have that turned on for a live site.

    Same thing. I get:

    Notice: Undefined index: slug in /wp-content/plugins/health-check/includes/class-health-check.php on line 306

    on the Plugins screen only.

    cjhaas

    (@chrisvendiadvertisingcom)

    We’re seeing the problem, too. The line right above it (305) actually does a proper index check already, that just needs to be unified or copied down.

    isset( $plugin_data['slug'] ) ? $plugin_data['slug'] : sanitize_title( $plugin_data['Name'] )

    Plugin Author Marius L. J.

    (@clorith)

    Yup, I’m just about to accept the fix into the code base, and it will be included with the next release. I’m still looking into why some plugins are missing this field of data though (which would be nice to know so it can be fixed at the root if possible).

    If you like following along, the code update that is going in is at https://github.com/WordPress/health-check/pull/235

    As this topic has a relevant ticket, I’m going to mark it as resolved, so I know which ones I need to address still 🙂

    @clorith: $plugin_data[‘slug’] is not provided by the get_plugin_data() function.
    https://developer.wordpress.org/reference/functions/get_plugin_data/

    In practice, $plugin_data[‘slug’] is only defined for plugins available on the WordPress directory. It is not available for Premium plugins.

    Plugin Author Marius L. J.

    (@clorith)

    That would certainlyexplain it, and is an odd interaction I hadn’t thought of, thank you.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Lastest Version 1.2.4 is causing errors’ is closed to new replies.