WordPress.org

Ready to get started?Download WordPress

Forums

Simple Staff List
[resolved] Debug error using WP Multisite (3 posts)

  1. srumery
    Member
    Posted 9 months ago #

    I'm using the newest version 1.15 and I am seeing this error at the top of the WordPress admin dashboard when debug mode is turned on. It doesn't seem to appear on a single site install, but I am seeing it on my local multisite development environment.

    SCREAM: Error suppression ignored for ( ! ) Notice: Trying to get property of non-object in C:\wamp\www\localdevelopment\wp-content\plugins\simple-staff-list\_inc\admin-utilities.php on line 81 Call Stack #TimeMemoryFunctionLocation 10.0016753680{main}( )..\index.php:0 20.597558423600include( 'C:\wamp\www\localdevelopment\wp-admin\admin-header.php' )..\index.php:102 30.607358457272apply_filters( )..\admin-header.php:95 40.607358458600call_user_func_array ( )..\plugin.php:173 50.607358458632add_to_admin_body_class( )..\plugin.php:173 index-php auto-fold admin-bar branch-3-6 version-3-6-1 admin-color-fresh locale-en-us no-customize-support">

    The issue that creates the error isn't causing any trouble and I'm sure this can be easily cleared up. If you need me to change any code and test, I will. Just let me know. I'm more than happy to help.

    http://wordpress.org/plugins/simple-staff-list/

  2. Brett Shumaker
    Member
    Plugin Author

    Posted 9 months ago #

    Replace line 81 in _inc\admin-utilities.php with:

    if ($post) {
    	$post_type = get_post_type($post->ID);
    } else {
    	$post_type = "";
    }

    This will be added into the next version of the plugin.

  3. srumery
    Member
    Posted 9 months ago #

    Brilliant! That did the trick. Thank you for fixing the error.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.