plugins - Post-terms-order PHP errors after update

I have an issue after updating the last WP version. Now I have this errors on my dashboard: Post_Terms_Order_Walker::wal

I have an issue after updating the last WP version. Now I have this errors on my dashboard:

Post_Terms_Order_Walker::walk($elements, $max_depth) should be compatible with Walker::walk($elements, $max_depth, ...$args) in /home/***/wp-content/plugins/post-terms-order/include/pto_walkers.php on line 135

Warning: Cannot modify header information - headers already sent by (output started at /home/***/wp-content/plugins/post-terms-order/include/pto_interface-class.php:25) in /home/***/wp-includes/functions.php on line 5946

Warning: Cannot modify header information - headers already sent by (output started at /home/***/wp-content/plugins/post-terms-order/include/pto_interface-class.php:25) in /home/***/wp-admin/includes/misc.php on line 1252

Warning: Cannot modify header information - headers already sent by (output started at /home/***/wp-content/plugins/post-terms-order/include/pto_interface-class.php:25) in /home/***/wp-admin/admin-header.php on line 9

Warning: Cannot modify header information - headers already sent by (output started at /home/***/wp-content/plugins/post-terms-order/include/pto_interface-class.php:25) in /home/***/wp-includes/option.php on line 958

Warning: Cannot modify header information - headers already sent by (output started at /home/***/wp-content/plugins/post-terms-order/include/pto_interface-class.php:25) in /home/***/wp-includes/option.php on line 959

When I deactivate post-terms-order plugin, all theses errors disappear.

I have an issue after updating the last WP version. Now I have this errors on my dashboard:

Post_Terms_Order_Walker::walk($elements, $max_depth) should be compatible with Walker::walk($elements, $max_depth, ...$args) in /home/***/wp-content/plugins/post-terms-order/include/pto_walkers.php on line 135

Warning: Cannot modify header information - headers already sent by (output started at /home/***/wp-content/plugins/post-terms-order/include/pto_interface-class.php:25) in /home/***/wp-includes/functions.php on line 5946

Warning: Cannot modify header information - headers already sent by (output started at /home/***/wp-content/plugins/post-terms-order/include/pto_interface-class.php:25) in /home/***/wp-admin/includes/misc.php on line 1252

Warning: Cannot modify header information - headers already sent by (output started at /home/***/wp-content/plugins/post-terms-order/include/pto_interface-class.php:25) in /home/***/wp-admin/admin-header.php on line 9

Warning: Cannot modify header information - headers already sent by (output started at /home/***/wp-content/plugins/post-terms-order/include/pto_interface-class.php:25) in /home/***/wp-includes/option.php on line 958

Warning: Cannot modify header information - headers already sent by (output started at /home/***/wp-content/plugins/post-terms-order/include/pto_interface-class.php:25) in /home/***/wp-includes/option.php on line 959

When I deactivate post-terms-order plugin, all theses errors disappear.

Share Improve this question edited Nov 15, 2019 at 12:29 Hector 6821 gold badge7 silver badges18 bronze badges asked Nov 15, 2019 at 10:39 Khalil MouelhiKhalil Mouelhi 111 bronze badge
Add a comment  | 

1 Answer 1

Reset to default 1

Welcome!

This PHP warning is related to the new update of WordPress (5.3) which had a change in Walker class.

Previously the walker method had 2 arguments. In the new update, it has more arguments.

In order to fix the issue, You need to change the code from Post_Terms_Order_Walker::walk($elements, $max_depth) to Post_Terms_Order_Walker::walk($elements, $max_depth, ...$args)

Note: Possibly the rests of errors are caused by the first one. As it is going to output the error, it sends headers.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745001925a4605547.html

相关推荐

  • plugins - Post-terms-order PHP errors after update

    I have an issue after updating the last WP version. Now I have this errors on my dashboard: Post_Terms_Order_Walker::wal

    1天前
    40

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信