• Getting the following PHP notice on some pages of WordPress admin (Tools, Plugins):

    Notice: Trying to get property of non-object in /var/www/html/wp-content/plugins/smart-logo-showcase-lite/smart-logo-showcase-lite.php on line 344

    This can be fixed by check that the global $post is truthy.

    function smls_admin_footer_text( $text ){
                global $post;
                if ( ! $post ) {
                	return $text;
                if ( 'smartlogo' == $post -> post_type ) {
                    $link = 'https://wordpress.org/support/plugin/smart-logo-showcase-lite/reviews/#new-post';
                    $pro_link = 'https://codecanyon.net/item/smart-logo-showcase-responsive-clients-logo-gallery-plugin-for-wordpress/19274075?ref=AccessKeys';
                    $text = 'Enjoyed Smart Logo Showcase Lite? <a href="' . $link . '" target="_blank">Please leave us a ★★★★★ rating</a> We really appreciate your support! | Try premium version of <a href="' . $pro_link . '" target="_blank">Smart Logo Showcase</a> - more features, more power!';
                    return $text;
                } else {
                    return $text;
Viewing 1 replies (of 1 total)
  • Hi @gwelser

    Thank you writing in.

    Thank you for contribution we will talk with the developers about this to add on the next updates.

    Please do contact us if you have any other queries.

    Alson Singh Thakuri
    AK Happiness Engineer

Viewing 1 replies (of 1 total)
  • The topic ‘PHP Notice in WP Admin’ is closed to new replies.