• Resolved smoeini

    (@smoeini)


    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/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Markus Drubba

    (@drumba)

    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

    (@smoeini)

    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

    (@drumba)

    I try to fix it as soon as possible.

    Thread Starter smoeini

    (@smoeini)

    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.