Title: PHP Warning: Creating default object from empty value (again)
Last modified: August 21, 2016

---

# PHP Warning: Creating default object from empty value (again)

 *  Resolved [nickpelling](https://wordpress.org/support/users/nickpelling/)
 * (@nickpelling)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/php-warning-creating-default-object-from-empty-value-again/)
 * Hi everyone,
 * I’m using WP3.7 and LCP 2.0.2 but getting hundreds of these warnings in my error_log:
 * [19-Jan-2014 19:49:31 UTC] PHP Warning: Creating default object from empty value
   in {{{my_site}}}/public_html/wp-content/plugins/live-comment-preview/live-comment-
   preview.php on line 57
 * I’m presuming that this is the same bug noted and patched by Hungarian WP s/w
   dev guy mondalaci here:-
 * [http://wordpress.org/support/topic/php-warning-creating-default-object-from-empty-value?replies=1](http://wordpress.org/support/topic/php-warning-creating-default-object-from-empty-value?replies=1)
 * However, the patch he posted has disappeared and there’s no sign of a fix in 
   github. Has anyone still got this patch?
 * Thanks, ….Nick….
 * [http://wordpress.org/plugins/live-comment-preview/](http://wordpress.org/plugins/live-comment-preview/)

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

 *  [mondalaci](https://wordpress.org/support/users/mondalaci/)
 * (@mondalaci)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/php-warning-creating-default-object-from-empty-value-again/#post-4520938)
 * Even though in the meantime I answered Nick personally I’m posting the solution
   here for everyone’s benefit.
 * So, the fix can be found in the official repository of this plugin which is located
   at [https://github.com/bradt/live-comment-preview](https://github.com/bradt/live-comment-preview)
 * Cheers!
 *  Thread Starter [nickpelling](https://wordpress.org/support/users/nickpelling/)
 * (@nickpelling)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/php-warning-creating-default-object-from-empty-value-again/#post-4520939)
 * Thanks Laszlo, much appreciated!
 *  [marikamitsos](https://wordpress.org/support/users/marikamitsos/)
 * (@marikamitsos)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/php-warning-creating-default-object-from-empty-value-again/#post-4520977)
 * [@mondalaci](https://wordpress.org/support/users/mondalaci/)
 * > …the fix can be found in the official repository …
 * Works like a charm !!!!
    Still, It is merged into the master which reads v2.0.2
   The version in the WordPress repository **also** reads v2.0.2 :/ To tell you 
   the truth I got a bit confused.
 * I think the version on github could probably be changed to v2.0.3
    Just a thought.
   🙂
 * Thanks

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

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

 * ![](https://s.w.org/plugins/geopattern-icon/live-comment-preview_b33c12.svg)
 * [Live Comment Preview](https://wordpress.org/plugins/live-comment-preview/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/live-comment-preview/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/live-comment-preview/)
 * [Active Topics](https://wordpress.org/support/plugin/live-comment-preview/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/live-comment-preview/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/live-comment-preview/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [marikamitsos](https://wordpress.org/support/users/marikamitsos/)
 * Last activity: [12 years, 4 months ago](https://wordpress.org/support/topic/php-warning-creating-default-object-from-empty-value-again/#post-4520977)
 * Status: resolved