Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter shoylman

    (@shoylman)

    Multisite doesn’t appear to be the issue. My server is running PHP 5.2.

    5.2 doesn’t support get_called _class. So If you have the same problem, you can do the following to get it to work:

    At the bottom of plugin.php you’ll see the following: $aht = Ajax_Heartbeat_Tool::get_instance();

    Underneath that code, paste in the following:
    function get_called_class(){
    $arr = array();
    $arrTraces = debug_backtrace();
    foreach ($arrTraces as $arrTrace){
    if(!array_key_exists(“class”, $arrTrace)) continue;
    if(count($arr)==0) $arr[] = $arrTrace[‘class’];
    else if(get_parent_class($arrTrace[‘class’])==end($arr)) $arr[] = $arrTrace[‘class’];
    }
    return end($arr);
    }

    Save it and now it works with PHP 5.2

    Plugin Author Mikel King

    (@vizkr)

    Thanks Sholyman.

    I may include that as an optional if class does not exist alternative in the future.

    Plugin Author Mikel King

    (@vizkr)

    In light of the fact that this is a php version issue and not a WordPress specific one I’ll make this closed.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Fatal error on multisite’ is closed to new replies.