WordPress.org

Forums

Live Comment Preview
[resolved] PHP Warning: Creating default object from empty value (again) (4 posts)

  1. nickpelling
    Member
    Posted 1 year ago #

    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

    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/

  2. mondalaci
    Member
    Posted 1 year ago #

    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

    Cheers!

  3. nickpelling
    Member
    Posted 1 year ago #

    Thanks Laszlo, much appreciated!

  4. marikamitsos
    Member
    Posted 1 year ago #

    @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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Live Comment Preview
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic