‘warning creating default object from empty value’ error on multisites

Asked on August 27, 2015 in Troubleshooting.

I solved this by editing the wp-config.php file and adding these lines –

define('WP_DEBUG', false);
ini_set( 'display_errors', 0 );

but why does this error frequently appear on multisite installations?

Daniel Bandi Layers User
Reply
  • Possible Answers to Your Question:

  • 1 Answer(s)
    Answered on August 28, 2015. Best answer

    Hi there,

    1. Have you updated to Layers 1.2.4?
    2. Have you deactivated all plugins? (I am not getting this error with Layers on Multisite)
    3. What version of PHP is your server running?

    If you are developing a widget, make sure you initialize your object before you try to set a property. I.e. add a new StdClass; call right before the error line with the variable it is trying to access. Example

    $items[$i] = new StdClass;
    $items[$i]->title   = $value;
    Vail Joy Layers Team
    Reply