• Resolved Jonathan Bossenger

    (@psykro)


    On installing the plugin, the following PHP Notice is logged.

    Notice: Trying to get property ‘ID’ of non-object in /wp-content/plugins/clearscope/clearscope-plugin.php on line 86

    The error occurs in the is_loadable function of that file.

    
        global $post;
        $post_type = get_post_type($post->ID);
    

    Suggest updating this with a check to make sure the user is on a post related admin page because this error will happen on any admin page that is not related to a post

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Jonathan Bossenger

    (@psykro)

    @mushilabs is there a public GitHub repo somewhere for the plugin, as I’d be happy to create a PR.

    Plugin Author Clearscope Support

    (@clearscopesupport)

    Thanks for letting us know about this issue and apologies for the delay in a response as we don’t often check this forum but we will do so in the future.

    We have fixed this issue now in version 0.2.13.

    Let us know if you happen to come across anything else amiss!

    Cheers,
    The Clearscope Support team

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PHP Notices in line 86 of clearscope-plugin.php’ is closed to new replies.