WordPress.org

Ready to get started?Download WordPress

Forums

wpLike2Get
[resolved] Warning: Creating default object from empty value (5 posts)

  1. smoeini
    Member
    Posted 1 year ago #

    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/

  2. Markus Drubba
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  3. smoeini
    Member
    Posted 1 year ago #

    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!

  4. Markus Drubba
    Member
    Plugin Author

    Posted 1 year ago #

    I try to fix it as soon as possible.

  5. smoeini
    Member
    Posted 1 year ago #

    Thank you.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic