Title: Warning: Creating default object from empty value
Last modified: August 20, 2016

---

# Warning: Creating default object from empty value

 *  Resolved [smoeini](https://wordpress.org/support/users/smoeini/)
 * (@smoeini)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/warning-creating-default-object-from-empty-value-7/)
 * Hey mate.
    I’ve updated my server php to 5.4.10 & now i get this error;
 * Warning: Creating default object from empty value in /home/mysite/public_html/
   wp-content/plugins/wplike2get/wpLike2Get.php on line 119
 * function wplike2get_get_setting($option = ”)
    { global $wplike2get;
 *  if (!$option)
    return false;
 *  if (!isset($wplike2get->settings) || !is_array($wplike2get->settings))
    “119”
   $wplike2get->settings = get_option(‘wplike2get_settings’);
 *  return $wplike2get->settings[$option];
    }
 * Tried whatever i could, but noting happened.
    What should i change? Tnx
 * [http://wordpress.org/extend/plugins/wplike2get/](http://wordpress.org/extend/plugins/wplike2get/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Markus Drubba](https://wordpress.org/support/users/drumba/)
 * (@drumba)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/warning-creating-default-object-from-empty-value-7/#post-3376177)
 * You need to configure your PHP to display only errors or hide errors. This is
   not an error, only a warning. It’s seemed that it is not very smart coded. Using
   the “Class-Context” for a variable is not that good.
 *  Thread Starter [smoeini](https://wordpress.org/support/users/smoeini/)
 * (@smoeini)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/warning-creating-default-object-from-empty-value-7/#post-3376279)
 * I already did that, I saw this warnings in log file. Long list of it & i can’t
   stop this.
    A notice alerts that something needs attention in plugin script. 
   But i can’t solve it!
 *  Plugin Author [Markus Drubba](https://wordpress.org/support/users/drumba/)
 * (@drumba)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/warning-creating-default-object-from-empty-value-7/#post-3376280)
 * I try to fix it as soon as possible.
 *  Thread Starter [smoeini](https://wordpress.org/support/users/smoeini/)
 * (@smoeini)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/warning-creating-default-object-from-empty-value-7/#post-3376306)
 * Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Warning: Creating default object from empty value’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wplike2get_91c9e7.svg)
 * [wpLike2Get](https://wordpress.org/plugins/wplike2get/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wplike2get/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wplike2get/)
 * [Active Topics](https://wordpress.org/support/plugin/wplike2get/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wplike2get/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wplike2get/reviews/)

## Tags

 * [warning](https://wordpress.org/support/topic-tag/warning/)

 * 4 replies
 * 2 participants
 * Last reply from: [smoeini](https://wordpress.org/support/users/smoeini/)
 * Last activity: [13 years, 4 months ago](https://wordpress.org/support/topic/warning-creating-default-object-from-empty-value-7/#post-3376306)
 * Status: resolved