• Resolved vscharfe

    (@vscharfe)


    Hi,
    just as an indication to the admin of this plugin: In the admin area I get the following PHP error in debug mode. There does not seem to be any functional degradation, but I would like to correct this mistake. I use WordPress version 5.3.
    Thanks for the nice plugin.

    Notice: Trying to get property of non-object in …\wp-content\plugins\slide-anything\php\slide-anything-admin.php on line 390

    Notice: Trying to get property of non-object in …\wp-content\plugins\slide-anything\php\slide-anything-admin.php on line 391

    Notice: Trying to get property of non-object in …\wp-content\plugins\slide-anything\php\slide-anything-admin.php on line 392

    Notice: Trying to get property of non-object in …\wp-content\plugins\slide-anything\php\slide-anything-admin.php on line 393

    • This topic was modified 5 years, 4 months ago by vscharfe.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author simonpedge

    (@simonpedge)

    Hi, I’m struggling to replicate this error myself.

    I’ve tested the SA Admin with DEBUG switched on for 2 different WordPress installations:
    – One WP site with SA PRO installed using the DIVI theme
    – One WP site with SA FREE installed using the Auteur theme
    (both these sites are on WP 5.3)

    The only thing I can think of is maybe a difference in PHP versions on the environments – I’m running PHP 7.0 on the site with DIVI theme, and PHP 7.2 on the site with the Auteur theme. What version of PHP are you using on your localhost testing environment?

    (A note on PHP versions – WordPress are recommending at least PHP 7.0 now for WP sites otherwise there are potential security vulnerabilities – in fact because of this may hosting companies are forcing customers to upgrade to PHP 7.0 or higher because of this)

    Plugin Author simonpedge

    (@simonpedge)

    Further information on this…
    PHP ‘notices’ are advisory in nature – it is the PHP ‘errors’ and ‘warnings’ that we need to worry about, and these will result in something breaking on your site.

    You can switch off these PHP debug messages by editing your ‘wp-config.php’ file (in the root folder of your site), and ensuring you have the following line:
    define( 'WP_DEBUG', false );
    (just before the “That’s all, stop editing” line)

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Trying to get property of non-object’ is closed to new replies.