Trying to get property of non-object
-
Getting an error on every page in the site that says it’s within your plugin. I am copying the contents of the error message below the video link.
Video demonstrating the issue:
Contents of error:
content.js:3 https://therealfoodacademy.com/our-recipes/
content.js:3 E_NOTICE Trying to get property of non-object – /wp-content/plugins/wp-smushit/core/class-wp-smush-admin.php:140
#21 /wp-includes/class-wp-hook.php:286 – WP_Smush_Admin->enqueue_scripts(”)
#20 /wp-includes/class-wp-hook.php:310 – WP_Hook->apply_filters(”, Array[1])
#19 /wp-includes/plugin.php:465 – WP_Hook->do_action(Array[1])
#18 /wp-includes/media.php:3805 – do_action(‘wp_enqueue_med…’)
#17 /wp-content/plugins/wp-ultimate-recipe-premium/premium/addons/user-submissions/user-submissions.php:83 – wp_enqueue_media()
#16 /wp-includes/class-wp-hook.php:286 – WPURP_User_Submissions->scripts_for_image_upload(”)
#15 /wp-includes/class-wp-hook.php:310 – WP_Hook->apply_filters(”, Array[1])
#14 /wp-includes/plugin.php:465 – WP_Hook->do_action(Array[1])
#13 /wp-includes/script-loader.php:2463 – do_action(‘wp_enqueue_scr…’)
#12 /wp-includes/class-wp-hook.php:286 – wp_enqueue_scripts(”)
#11 /wp-includes/class-wp-hook.php:310 – WP_Hook->apply_filters(NULL, Array[1])
#10 /wp-includes/plugin.php:465 – WP_Hook->do_action(Array[1])
#9 /wp-includes/general-template.php:2668 – do_action(‘wp_head’)
#8 /wp-content/themes/rise-trfa/header.php:34 – wp_head()
#7 /wp-includes/template.php:704 – require_once(‘/home/there607…’)
#6 /wp-includes/template.php:653 – load_template(‘/home/there607…’, true)
#5 /wp-includes/general-template.php:41 – locate_template(Array[1], true)
#4 /wp-content/themes/rise/page.php:15 – get_header()
#3 /wp-includes/template-loader.php:77 – include(‘/home/there607…’)
#2 /wp-blog-header.php:19 – require_once(‘/home/there607…’)
#1 /index.php:17 – require(‘/home/there607…’)
(anonymous) @ content.js:3The page I need help with: [log in to see the link]
- The topic ‘Trying to get property of non-object’ is closed to new replies.