WordPress.org

Ready to get started?Download WordPress

Forums

Demo Data Creator
[resolved] Empty value warning with PHP 5.4.4 (4 posts)

  1. matthewborn
    Member
    Posted 1 year ago #

    Here's the warning:

    Warning: Creating default object from empty value in /Users/matthewborn/Sites/wp/wp-content/plugins/demo-data-creator/demodata.php on line 60

    I fixed it by placing the following on line 20:

    $current_site = new stdClass;

    http://wordpress.org/extend/plugins/demo-data-creator/

  2. atul1280
    Member
    Posted 1 year ago #

    Thank you. It worked!

  3. Chris Taylor
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks for this @matthewborn, this code will be in version 1.3

  4. jrf
    Member
    Posted 10 months ago #

    Ran into the same issue.. seems the fix didn't make it into version 1.3.

    Hope to see it in the next version ;-)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic