• Resolved alena353

    (@alena353)


    Hello!

    Each time when a user presses ‘Send a comment’ button, it shows a blank page with the following errors:

    Warning: Invalid argument supplied for foreach() in /var/www/u1316335/data/www/u1316335.isp.regruhosting.ru/wp-content/plugins/master-addons/inc/modules/header-footer-comment/inc/comments/class-comments-builder.php on line 138

    Warning: Cannot modify header information — headers already sent by (output started at /var/www/u1316335/data/www/u1316335.isp.regruhosting.ru/wp-content/plugins/master-addons/inc/modules/header-footer-comment/inc/comments/class-comments-builder.php:138) in /var/www/u1316335/data/www/u1316335.isp.regruhosting.ru/wp-includes/pluggable.php on line 1296

    Warning: Cannot modify header information — headers already sent by (output started at /var/www/u1316335/data/www/u1316335.isp.regruhosting.ru/wp-content/plugins/master-addons/inc/modules/header-footer-comment/inc/comments/class-comments-builder.php:138) in /var/www/u1316335/data/www/u1316335.isp.regruhosting.ru/wp-includes/pluggable.php on line 1299

    As I understand, the last two errors show up because of the first one. What I have on lines 137-151:

    if(isset($comment_meta )){
                    foreach ($comment_meta as $key => $value) {
                        
                        $label_name         = $value['label_name'];
                        $field_type         = $value['field_type'];
                        $required           = $value['required'];
    
                        $unique_field_id    = strtolower(str_replace(" ", "_",$label_name));
                        
                        $jltma_field_value = 'jltma_' . $unique_field_id;
    
                        if( isset( $_POST[$jltma_field_value] ) )
                            update_comment_meta( $comment_id, $jltma_field_value, esc_attr( $_POST[$jltma_field_value] ) );
                    }
                }

    Please, help!

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Thread Starter alena353

    (@alena353)

    Eventually, I just deleted Master Addons plugin and installed another one that supports menu design. It helped with the errors above.

Viewing 1 replies (of 1 total)
  • The topic ‘Error when posting a comment’ is closed to new replies.