Support » Fixing WordPress » updating to PHP 5.5 – error messages

  • I had great help with the main issue uprading an very old WP install (2.0) to PHP 5.56.
    Now another error (but site is working):

    Strict Standards: Only variables should be assigned by reference in /kunden/xxx/webseiten/wp-includes/functions.php on line 590 and 696

    l 590:
    $_post = & $wpdb->get_row($query);
    l 696
    $_page = & $wpdb->get_row($query);

    another follow-up error (but working):

    Warning: Cannot modify header information – headers already sent by (output started at /kunden/xxx/webseiten/wp-includes/functions.php:590) in /kunden/xxx/webseiten/wp-admin/post.php on line 60

    line 57-60 is:

    if ( isset($_POST['save']) )
    	$location = "post.php?action=edit&post=$post_ID";
    
    header("Location: $location");

    Any help much appreciated!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Joy

    (@joyously)

    You would need to either update to a more recent WP version that supports all those PHP versions, or turn your PHP error reporting off.
    The “headers already sent” error is just because the other error was output, so it messes up the page.
    If you don’t want to update to the latest WP version, you can use the WP Downgrade plugin to easily update to any version that you type in.
    WP 3.7 was the first version with automatic updates for minor releases, so any version since then gets security fixes.

    @wishbone – As it was a very old WordPress installation you are probably looking at a conflict being created by the active theme (if it is as old) and/or an active plugin that has not been updated to current standards.

    This article might be helpful: https://www.wpbeginner.com/beginners-guide/beginners-guide-to-troubleshooting-wordpress-errors-step-by-step/

    This article in the codex goes even further: https://codex.wordpress.org/Managing_Plugins#Troubleshooting

    ~Cais.

    thxs a lot, Edward and Joy ! thx you helped though very old install.
    I fix one error and get the next error message, so I think it is best to switch off php error output.
    Thx again and all the best !

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘updating to PHP 5.5 – error messages’ is closed to new replies.