Ecommerce Shopify WordPress Discussion

Word Press Form Submission (Forminator) Data Truncated

Given the following code, using Forminator Pro, I'm seeing submissions that are truncated. My first attempt was to send JSON data, but the buffer that I received had many null bytes at the end of it, after around 16k of data. I stepped back from JSON and simply attempted to send the data as serialized text directly from the array, just to see if all of the data was in the array, or if the json encode was the issue. Again, only around 16k arrived. The form that I'm using is fairly large. Is there some configuration option to increase the size of some buffer somewhere? What about the particular hook? Instead of forminator_custom_form_submit_before_set_fields is there some other hook that might produce all of the form data? What about an API to grab the individual form field names and values directly from the database so I can build the post data? add_action('forminator_custom_form_submit_before_set_fields', 'form_post_json', 10, 3); function form_post_json($entry, $form_id, $form_data_array) { $postform = 123; $postto = ''; if (intval($form_id) === $postform) { // $jsondata = json_encode($form_data_array); // JSON attempt $serialized = serialize($form_data_array); $postdata = [ 'method' => 'POST', 'timeout' => 60, 'httpversion' => '1.1', 'blocking' => false, 'headers' => [ // 'Content-Type' => 'application/json', // JSON attempt 'Content-Type' => 'text/plain', 'Expect' => '', ], 'sslverify' => true, // 'body' => $jsondata, // JSON attempt 'body' => $serialized, 'data_format' => 'body', ]; $response = wp_remote_post($postto, $postdata); }
TurboCommerce make the better internet purchasing globaly

Turbo Multi-language Translator

Make the better internet purchasing globaly

Turbosify SEO Speed Booster

5.0 (7) Free plan available
Get better conversions by improving store loading speed Installed

Turbo Multi-language Chat - AI Customer service in one hand

TurboCommerce make the better internet purchasing globaly
Our products

The help you need, when you need it

App by Turbo Engine

3 apps • 5.0 average rating

Turbosify Speed Booster

5.0 (7)
Get better conversions by optimizing shopify store Google page speed Installed

Turbosify Translator for Wordpress Woocommerce

5.0 (74) Free Wordpress Woocommerce Plugin
Translate your wordpress website to multiple language within 1 click, no configuration needed, no No technical required

Grow your business here

Whether you want to sell products down the street or around the world, we have all the tools you need.