getting warning message after recent wp update

I get this warning and don’t know what to do with it:

Warning: Creating default object from empty value in /home/techrive/public_html/wp-content/themes/Aggregate/epanel/custom_functions.php on line 859

Warning: Creating default object from empty value in /home/techrive/public_html/wp-content/themes/Aggregate/epanel/custom_functions.php on line 859

Also, I notice after the update, the “add media” button in the wysiwyg editor no longer works. I can load images into library, but, can no longer add them to posts. Could this be related?

I have enabled support access. Thank you in advance for your help. Linda @iempower