• After updating WordPress 4.8 and Woocommerce 3.10 the deprecated tags changed to fatal errors when checking out.

    [09-Jun-2017 17:43:41 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; onepage_rcp_recent_posts has a deprecated constructor in home/xxx/public_html/wp-content/themes/one-page/functions.php on line 737

    [09-Jun-2017 17:43:41 UTC] PHP Warning: Cannot modify header information – headers already sent by (output started at /home/xxx/public_html/wp-content/themes/one-page/functions.php:737) in /home/hugthe5/public_html/wp-includes/pluggable.php on line 1210

    Something to do with 4.8’s new widget structure no doubt. After commenting out the whole recent post class, the errors stopped, checkout was able to complete and the site went back to normal.

Viewing 2 replies - 1 through 2 (of 2 total)
  • “After commenting out the whole recent post class,”

    Can you tell me where the “recent post class” commands are? I have the same problem and have no idea what file to use for this correction.

    I have the same 1210 in pluggable.php problem…

    Can you be more specific? Thanks in advance.

    • This reply was modified 7 years, 8 months ago by mtbinary.
    Thread Starter katdidit

    (@katdidit)

    I commented out the whole class in the One Page theme function file starting at around line 728 through 851

    /one-page/functions.php

    *** This is not recommended practice, it was an emergency measure – and without seeing your error/knowing your site set up, I cannot promise that this will work for you. ***

    • This reply was modified 7 years, 8 months ago by katdidit.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WordPress 4.8’ is closed to new replies.