• Hey. FYI – on my WordPress test bench I upgraded to PHP 8.0.0, and the following errors was thrown:

    `Deprecated: Required parameter $field follows optional parameter $post_id in /home/oldrupdk/oldrup.net/wp-content/plugins/advanced-custom-fields/includes/acf-value-functions.php on line 54

    Deprecated: Required parameter $field follows optional parameter $value in /home/oldrupdk/oldrup.net/wp-content/plugins/advanced-custom-fields/includes/acf-value-functions.php on line 166

    Deprecated: Required parameter $value follows optional parameter $key in /home/oldrupdk/oldrup.net/wp-content/plugins/advanced-custom-fields/includes/ajax/class-acf-ajax.php on line 76

    Site runs fine with PHP 7.4.x

    Kind regards
    Bjarne

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter Bjarne Oldrup

    (@oldrup)

    Seems fixed in the latest update! Thank you very much 🙂

    /Bjarne

    Did you update to PHP 8.0.1?
    If so, does it run fine or do you get the old messages?

    I ran into a similar problem with the deprecation with php version 8.0.1 (built Jan 8th 2021):

    Deprecated: Required parameter $field follows optional parameter $value in /wp-content/plugins/advanced-custom-fields-pro/includes/acf-value-functions.php on line 164

    Like you, the site runs without issues on PHP 7.x

    best regards
    Ulf

    Thread Starter Bjarne Oldrup

    (@oldrup)

    Okey I’m sorry, I apparently deemed this issue fixed too soon. Once I clear the lightspeed cache, I receive this error in the dashboard:

    Deprecated: Required parameter $field follows optional parameter $value in /home/oldrupdk/oldrup.net/wp-content/plugins/advanced-custom-fields/includes/acf-value-functions.php on line 164
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/oldrupdk/oldrup.net/wp-content/plugins/advanced-custom-fields/includes/acf-value-functions.php:164) in /home/oldrupdk/oldrup.net/wp-includes/functions.php on line 6360
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/oldrupdk/oldrup.net/wp-content/plugins/advanced-custom-fields/includes/acf-value-functions.php:164) in /home/oldrupdk/oldrup.net/wp-admin/includes/misc.php on line 1310
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/oldrupdk/oldrup.net/wp-content/plugins/advanced-custom-fields/includes/acf-value-functions.php:164) in /home/oldrupdk/oldrup.net/wp-admin/admin-header.php on line 9

    Sorry for the misinformation.

    My host is still on PHP 8.0.0.

    Kind regards
    Bjarne

    Thread Starter Bjarne Oldrup

    (@oldrup)

    Tested again with today’s update, no errors no more 🙂 Thanks a lot!

    Yeah. Thank you Bjarne for the reminder and acf for the update.

    Now everything is working again 👌

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Some issues with PHP 8.0.0’ is closed to new replies.