• Warning: Attempt to read property “ID” on null in /home/mywebsite/mywebsite.com/wp-content/plugins/flat-preloader/flat-preloader.php on line 120

    That’s the message I see on the /shop/ page of my site. How can I fix it or at least hide the error message?

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

    (@tatthiennguyen)

    Hi @nistuj817

    You can hide that warning by setting WP_DEBUG=false in wp-config.php file. It is recommended in production.

    Someshow, my plugin cannot get the ID from the post object in the shop page. Could you share your Flat Preloader’s settings?

    Thread Starter designer13421321

    (@nistuj817)

    Thanks for getting back to me I really appreciate it. Yeah I did end up hiding it via the config file so thank you. I believe post id 19 is the shop page and here are the settings – screenshot: https://imgur.com/a/Dycmahh

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to hide error warning?’ is closed to new replies.