• Dublinate

    (@dublinate)


    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)

    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 to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Aurovrata Venet

    (@aurovrata)

    enable WP_DEBUG mode on your website and see what kind of errors you are getting on your server.

    Thread Starter Dublinate

    (@dublinate)

    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

    (@dublinate)

    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

    (@dublinate)

    Furthermore the url

    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

    (@dublinate)

    Hi, this still isn’t solved?

    Thread Starter Dublinate

    (@dublinate)

    I’m disappointed that I’ve received no further response from the developer

    Plugin Author Aurovrata Venet

    (@aurovrata)

    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.