PHP error when using newer PHP versions

When enabling PHP version 7.2.17 or newer on my site, I get a PHP-related error message on some pages.Warning: Use of un

When enabling PHP version 7.2.17 or newer on my site, I get a PHP-related error message on some pages.

Warning: Use of undefined constant comment_notes_before - assumed 'comment_notes_before' (this will throw an Error in a future version of PHP) in /home/(username)/public_html/(domain name)/wp-content/themes/Divi-child/comments.php on line 68

Here is the code on line 68 of the comments.php file:

comment_form( array( 'fields' => $fields, 'label_submit' => esc_attr__( 'Submit', 'Divi' ), 'title_reply' => '<span>' . esc_attr__( 'Leave a comment', 'Divi' ) . '</span>', 'title_reply_to' => esc_attr__( 'Leave a Reply to %s', 'Divi' ), 'class_submit' => 'submit et_pb_button', comment_notes_before

And here is line 69:

=>'<p class="comment-notes">' . __( '' ) . '</p>' ) ); ?>

Any ideas what could be causing this and what adjustments I need to make to the PHP source code?

When enabling PHP version 7.2.17 or newer on my site, I get a PHP-related error message on some pages.

Warning: Use of undefined constant comment_notes_before - assumed 'comment_notes_before' (this will throw an Error in a future version of PHP) in /home/(username)/public_html/(domain name)/wp-content/themes/Divi-child/comments.php on line 68

Here is the code on line 68 of the comments.php file:

comment_form( array( 'fields' => $fields, 'label_submit' => esc_attr__( 'Submit', 'Divi' ), 'title_reply' => '<span>' . esc_attr__( 'Leave a comment', 'Divi' ) . '</span>', 'title_reply_to' => esc_attr__( 'Leave a Reply to %s', 'Divi' ), 'class_submit' => 'submit et_pb_button', comment_notes_before

And here is line 69:

=>'<p class="comment-notes">' . __( '' ) . '</p>' ) ); ?>

Any ideas what could be causing this and what adjustments I need to make to the PHP source code?

Share Improve this question edited May 2, 2019 at 19:37 Mr Ethernet asked May 2, 2019 at 19:08 Mr EthernetMr Ethernet 1035 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 1

Please try to change that line to

comment_form( array( 'fields' => $fields, 'label_submit' => esc_attr__( 'Submit', 'Divi' ), 'title_reply' => '<span>' . esc_attr__( 'Leave a comment', 'Divi' ) . '</span>', 'title_reply_to' => esc_attr__( 'Leave a Reply to %s', 'Divi' ), 'class_submit' => 'submit et_pb_button', 'comment_notes_before' 

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

相关推荐

  • PHP error when using newer PHP versions

    When enabling PHP version 7.2.17 or newer on my site, I get a PHP-related error message on some pages.Warning: Use of un

    15小时前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

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

关注微信