Title: Response error
Last modified: February 22, 2024

---

# Response error

 *  [Dublinate](https://wordpress.org/support/users/dublinate/)
 * (@dublinate)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/response-error-2/)
 * Hi,
 * This form worked perfectly in August but now I’ve initiated it again, its not
   working.
 * I can get it to submit when I remove the filter code from the functions.php file,
   this is the code I’m using (which previously worked)
 *     ```wp-block-code
       add_filter( 'cf7sg_mailtag_cf7sg-form-orchid-order-form', 'filter_cf7_mailtag_cf7sg_form_orchid_order_form', 10, 3);
       function filter_cf7_mailtag_cf7sg_form_orchid_order_form($tag_replace, $submitted, $cf7_key){
         /*the $tag_replace string to change*/
         /*the $submitted an array containing all submitted fields*/
         /*the $cf7_key is a unique string key to identify your form, which you can find in your form table in the dashboard.*/
         if('orchid-order-form'==$cf7_key ){
           $style = 'style="padding:0 3px;border-collapse:collapse;border-bottom:1px solid black[qtm]';
           $tag_replace ='
           <table>
             <thead>
       	  <tr>
       	  <th>&nbsp;</th>
       	  <th style="padding:0 3px;border-collapse:collapse;border-bottom:1px solid black">Orchid Name</th>
       	  <th style="padding:0 3px;border-collapse:collapse;border-bottom:1px solid black">Qty</th>
       	  <th style="padding:0 3px;border-collapse:collapse;border-bottom:1px solid black">Supplier</th>
       	  <th style="padding:0 3px;border-collapse:collapse;border-bottom:1px solid black">Member</th>
       	  </tr>
       	  </thead>
             <tbody>';
       	  if(!empty($submitted['orchid-name'])){
             $style = 'style=[qtm]background-color:#e3e3e3[qtm]';
             $row=1;
             foreach($submitted['orchid-name'] as $idx=>$plant){
               $tag_replace .='  <tr>
       		<td>&nbsp;</td>
       		<td '.($row%2==0?$style:'').'>'.$plant.'</td>
       		<td '.($row%2==0?$style:'').'>'.$submitted['qty'][$idx].'</td>
       		<td '.($row%2==0?$style:'').'>'.$submitted['supplier'][$idx].'</td>
       		<td '.($row%2==0?$style:'').'>'.$submitted['your-name'][$idx].'</td>
       		</tr>'.PHP_EOL;
               $row++;
             }
       	  }
       	  $tag_replace .='
             </tbody>
       	  </table>
       	  ';
       	  }
       	  return $tag_replace;
       }
       ```
   
 * Any help would be much appreciated.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fresponse-error-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Plugin Author [Aurovrata Venet](https://wordpress.org/support/users/aurovrata/)
 * (@aurovrata)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/response-error-2/#post-17448088)
 * enable WP_DEBUG mode on your website and see what kind of errors you are getting
   on your server.
 *  Thread Starter [Dublinate](https://wordpress.org/support/users/dublinate/)
 * (@dublinate)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/response-error-2/#post-17450204)
 * These are the only two errors showing on debug
 * **Notice**: ob_end_flush(): Failed to send buffer of zlib output compression (
   0) in **/home/irishorc/public_html/wp-includes/functions.php** on line **5373**
 * **Notice**: ob_end_flush(): Failed to send buffer of zlib output compression (
   0) in **/home/irishorc/public_html/wp-content/plugins/really-simple-ssl/class-
   mixed-content-fixer.php** on line **107**
 * and on developer console I get three errors:
 * index.js
 * autumn-orchid-shop/
 * feedback
 *  Thread Starter [Dublinate](https://wordpress.org/support/users/dublinate/)
 * (@dublinate)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/response-error-2/#post-17450211)
 * I added the following to the theme functions file:
 * remove_action( ‘shutdown’, ‘wp_ob_end_flush_all’, 1 );
 * and the debug errors have gone, but the problem with the form submitting remains
 *  Thread Starter [Dublinate](https://wordpress.org/support/users/dublinate/)
 * (@dublinate)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/response-error-2/#post-17450220)
 * Furthermore the url
 * [https://www.irishorchidsociety.org/wp-json/contact-form-7/v1/contact-forms/3393/feedback](https://www.irishorchidsociety.org/wp-json/contact-form-7/v1/contact-forms/3393/feedback)
 * gives this error message: {“code”:”rest_no_route”,”message”:”No route was found
   matching the URL and request method.”,”data”:{“status”:404}}
 *  Thread Starter [Dublinate](https://wordpress.org/support/users/dublinate/)
 * (@dublinate)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/response-error-2/#post-17460373)
 * Hi, this still isn’t solved?
 *  Thread Starter [Dublinate](https://wordpress.org/support/users/dublinate/)
 * (@dublinate)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/response-error-2/#post-17505158)
 * I’m disappointed that I’ve received no further response from the developer
 *  Plugin Author [Aurovrata Venet](https://wordpress.org/support/users/aurovrata/)
 * (@aurovrata)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/response-error-2/#post-17518006)
 * > gives this error message: {“code”:”rest_no_route”,”message”:”No route was found
   > matching the URL and request method.”,”data”:{“status”:404}}
 * this isn’t related to this plugin. It is an error with your server that is unable
   to handle the REST api call. Likely due to htaccess and/or apache mod_rewrite
   misconfiguration.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Response error’ is closed to new replies.

 * ![](https://ps.w.org/cf7-grid-layout/assets/icon-256x256.png?rev=1834229)
 * [Smart Grid-Layout Design for Contact Form 7](https://wordpress.org/plugins/cf7-grid-layout/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cf7-grid-layout/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cf7-grid-layout/)
 * [Active Topics](https://wordpress.org/support/plugin/cf7-grid-layout/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cf7-grid-layout/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cf7-grid-layout/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [Aurovrata Venet](https://wordpress.org/support/users/aurovrata/)
 * Last activity: [2 years, 2 months ago](https://wordpress.org/support/topic/response-error-2/#post-17518006)
 * Status: not resolved