Trying to get property of non-object

Hello,

I am a complete novice at any coding and have a basic wordpress.org website with a divi theme. When I update the theme today my wordpress shop page turned blank with the following error.

Notice: Trying to get property of non-object in /home/luminou3/public_html/wp-content/themes/Divi/includes/builder/functions.php on line 6412

This is line 6412 -
if ( ! current_user_can( ‘edit_post’, $current_object->ID ) ) {

I have absolutely no idea what is wrong with it at all and would greatly appreciate any help.

Kind regards,

Jade

Sponsor our Newsletter | Privacy Policy | Terms of Service