• Hello guys,

    recently installed wordpress 301, seen today in error log million of lines of this type:

    [21-Oct-2010 10:04:45] PHP Strict Standards: is_a(): Deprecated. Please use the instanceof operator in /home/radicio/public_html/wp-includes/classes.php on line 724
    [21-Oct-2010 10:04:45] PHP Strict Standards: is_a(): Deprecated. Please use the instanceof operator in /home/radicio/public_html/wp-includes/classes.php on line 724
    [21-Oct-2010 10:04:45] PHP Strict Standards: is_a(): Deprecated. Please use the instanceof operator in /home/radicio/public_html/wp-includes/classes.php on line 724
    [21-Oct-2010 10:04:45] PHP Strict Standards: is_a(): Deprecated. Please use the instanceof operator in /home/radicio/public_html/wp-includes/classes.php on line 724
    [21-Oct-2010 10:04:45] PHP Strict Standards: is_a(): Deprecated. Please use the instanceof operator in /home/radicio/public_html/wp-includes/classes.php on line 724

    Any ideas? How to prevent all those errors from happening :S

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter rykios

    (@rykios)

    looks like problem ( incompatibility with php 5 ? ) is caused by those lines here:

    function is_wp_error($thing) {
    if ( is_object($thing) && is_a($thing, ‘WP_Error’) )
    return true;
    return false;
    }

    Is there a DIFFERENT SYNTAX for this
    ( is_object($thing) && is_a($thing, ‘WP_Error’) )

    so that it could be “compatible” and not produce that error? :S
    Plz excuse my ignorance, i dont know php at all, just trying to figure out a solution…

    Thread Starter rykios

    (@rykios)

    found a solution, posting for anyone interested in the future:

    function is_wp_error($thing) {
    if ( is_object($thing) && ($thing instanceof WP_Error) )
    return true;
    return false;
    }

    PS: As i have explained i dont know php meaning solution above can be totally stupid and not working – but saved me millions of errors daily so i m keeping it like this until a reply here sais its wrong 😀

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘millions of error lines in log’ is closed to new replies.