WP 3.4 issues with less than PHP 5.25 (4 posts)

  1. thebloghouse
    Posted 4 years ago #

    Just installed WordPress 3.4 on a box with PHP 5.2.4 (5.2.4-2ubuntu5.24) and activated Debug Queries pluing by Frank Bültge and getting lots of PHP warnings like the following:

    Warning: Wrong parameter count for debug_backtrace() in /home/Bl0gho3se3/public_html/mobilephoneschecker.com/public/wp-includes/functions.php on line 3625

    The version of PHP should be checked prior to running debug_backtrace() as any PHP < 5.2.5 will generate this error as debug_backtrace() was only introduced in PHP 5.2.5 onwards.

    Looking to see if I can add this myself now...

  2. thebloghouse
    Posted 4 years ago #

    Here is the original trac ticket when this change was made and pushed into 3.4: Ticket #19589

    For now I have made the following change in functions.php on line 3624

    $trace = debug_backtrace(FALSE);
    $trace = debug_backtrace();

  3. lpointet
    Posted 4 years ago #

    You can follow the corresponding ticket right here: http://core.trac.wordpress.org/ticket/20953
    For now, the correction will be included in the WordPress 3.4.1 version.

    As Andrew said in this ticket, you shouldn't debug queries in production (I don't know if it's the case though).

  4. thebloghouse
    Posted 4 years ago #

    Yeah I am not using this in production but testing fully on a dev server. Glad this is getting sorted on 3.4.1.


Topic Closed

This topic has been closed to new replies.

About this Topic