File-upload (image) keeps failing

By: Henri Zome | Asked: 12/08/2024
ForumsCategory: General questionsFile-upload (image) keeps failing
Henri Zome asked 3 days ago

Hi all, Since a few weeks my file-upload keeps failing in my form. I can't figure out what is wrong. Does anybody have any tips?

Wordpress version: 6.7.1

Formidable version: 6.16.2

Error: "<p>Er heeft zich een kritieke fout voorgedaan op deze site.</p><p><a href="https://wordpress.org/documentation/article/faq-troubleshooting/">Meer informatie over probleemoplossing in WordPress.</a></p>"

Translation: <p>A critical error has occurred on this site.</p><p><a href="https://wordpress.org/documentation/article/faq-troubleshooting/">Learn more about troubleshooting in WordPress .</a></p>  

 

Thanks for any help!

3 Answers
Best Answer
Henri Zome answered 3 days ago
So WP Smoosh PRO seemed to be causing the issue (de-activating fixed my form). Strange, but good for now! :D 
Rob LeVineRob LeVine answered 3 days ago
Turn on Wordpress debugging then check your server logs and also check your browser console for jQuery errors (though that seems unlikely in this situation).
Henri Zome answered 3 days ago
Debugging info: [08-Dec-2024 15:22:14 UTC] PHP Warning file_get_contents(/home/gsvstatera/domains/gsvstatera.nl/public_html/wp-content/uploads/formidable/12/Gewimperde-aardster-2-1024x768.jpg): Failed to open stream: Permission denied in /home/gsvstatera/domains/gsvstatera.nl/public_html/wp-content/plugins/wp-smush-pro/core/class-file-system.php on line 17 [08-Dec-2024 15:22:14 UTC] PHP Fatal error Uncaught WpOrg\Requests\Exception\InvalidArgument: WpOrg\Requests\Transport\Curl::request(): Argument #3 ($data) must be of type array|string, boolean given in /home/gsvstatera/domains/gsvstatera.nl/public_html/wp-includes/Requests/src/Exception/InvalidArgument.php:29 Stack trace:
  • #0 /home/gsvstatera/domains/gsvstatera.nl/public_html/wp-includes/Requests/src/Transport/Curl.php(161): WpOrg\Requests\Exception\InvalidArgument::create()
  • #1 /home/gsvstatera/domains/gsvstatera.nl/public_html/wp-includes/Requests/src/Requests.php(469): WpOrg\Requests\Transport\Curl->request()
  • #2 /home/gsvstatera/domains/gsvstatera.nl/public_html/wp-includes/class-wp-http.php(410): WpOrg\Requests\Requests::request()
  • #3 /home/gsvstatera/domains/gsvstatera.nl/public_html/wp-includes/class-wp-http.php(633): WP_Http->request()
  • #4 /home/gsvstatera/domains/gsvstatera.nl/public_html/wp-includes/http.php(196): WP_Http->post()
  • #5 /home/gsvstatera/domains/gsvstatera.nl/public_html/wp-content/plugins/wp-smush-pro/core/smush/class-smusher.php(226): wp_remote_post()
  • #6 /home/gsvstatera/domains/gsvstatera.nl/public_html/wp-content/plugins/wp-smush-pro/core/smush/class-smusher.php(217): Smush\Core\Smush\Smusher->make_post_request()
  • #7 [internal function]: Smush\Core\Smush\Smusher->Smush\Core\Smush\{closure}()
  • #8 /home/gsvstatera/domains/gsvstatera.nl/public_html/wp-content/plugins/wp-smush-pro/core/api/class-backoff.php(26): call_user_func()
  • #9 /home/gsvstatera/domains/gsvstatera.nl/public_html/wp-content/plugins/wp-smush-pro/core/smush/class-smusher.php(218): Smush\Core\Api\Backoff->run()
  • #10 /home/gsvstatera/domains/gsvstatera.nl/public_html/wp-content/plugins/wp-smush-pro/core/smush/class-smusher.php(184): Smush\Core\Smush\Smusher->smush_file()
  • #11 /home/gsvstatera/domains/gsvstatera.nl/public_html/wp-content/plugins/wp-smush-pro/core/smush/class-smusher.php(129): Smush\Core\Smush\Smusher->smush_parallel()
  • #12 /home/gsvstatera/domains/gsvstatera.nl/public_html/wp-content/plugins/wp-smush-pro/core/smush/class-smush-optimization.php(166): Smush\Core\Smush\Smusher->smush()
  • #13 /home/gsvstatera/domains/gsvstatera.nl/public_html/wp-content/plugins/wp-smush-pro/core/media/class-media-item-optimizer.php(322): Smush\Core\Smush\Smush_Optimization->optimize()
  • #14 /home/gsvstatera/domains/gsvstatera.nl/public_html/wp-content/plugins/wp-smush-pro/core/media/class-media-item-optimizer.php(210): Smush\Core\Media\Media_Item_Optimizer->run_optimizations()
  • #15 /home/gsvstatera/domains/gsvstatera.nl/public_html/wp-content/plugins/wp-smush-pro/core/modules/class-smush.php(1631): Smush\Core\Media\Media_Item_Optimizer->optimize()
  • #16 /home/gsvstatera/domains/gsvstatera.nl/public_html/wp-content/plugins/wp-smush-pro/core/modules/class-smush.php(931): Smush\Core\Modules\Smush->run_optimizer()
  • #17 /home/gsvstatera/domains/gsvstatera.nl/public_html/wp-content/plugins/wp-smush-pro/core/modules/class-smush.php(1177): Smush\Core\Modules\Smush->smushit()
  • #18 /home/gsvstatera/domains/gsvstatera.nl/public_html/wp-includes/class-wp-hook.php(326): Smush\Core\Modules\Smush->smush_image()
  • #19 /home/gsvstatera/domains/gsvstatera.nl/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters()
  • #20 /home/gsvstatera/domains/gsvstatera.nl/public_html/wp-admin/includes/image.php(764): apply_filters()
  • #21 /home/gsvstatera/domains/gsvstatera.nl/public_html/wp-admin/includes/media.php(437): wp_generate_attachment_metadata()
  • #22 /home/gsvstatera/domains/gsvstatera.nl/public_html/wp-content/plugins/formidable-pro/classes/models/FrmProFileField.php(1161): media_handle_upload()
  • #23 /home/gsvstatera/domains/gsvstatera.nl/public_html/wp-content/plugins/formidable-pro/classes/models/FrmProFileField.php(1056): FrmProFileField::handle_upload()
  • #24 /home/gsvstatera/domains/gsvstatera.nl/public_html/wp-content/plugins/formidable-pro/classes/models/FrmProFileField.php(951): FrmProFileField::upload_file()
  • #25 /home/gsvstatera/domains/gsvstatera.nl/public_html/wp-content/plugins/formidable-pro/classes/models/FrmProFileField.php(885): FrmProFileField::upload_temp_files()
  • #26 /home/gsvstatera/domains/gsvstatera.nl/public_html/wp-content/plugins/formidable-pro/classes/controllers/FrmProFieldsController.php(1494): FrmProFileField::ajax_upload()
  • #27 /home/gsvstatera/domains/gsvstatera.nl/public_html/wp-includes/class-wp-hook.php(324): FrmProFieldsController::ajax_upload()
  • #28 /home/gsvstatera/domains/gsvstatera.nl/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
  • #29 /home/gsvstatera/domains/gsvstatera.nl/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
  • #30 /home/gsvstatera/domains/gsvstatera.nl/public_html/wp-admin/admin-ajax.php(192): do_action()
  • #31 {main}
  •  
thrown in /home/gsvstatera/domains/gsvstatera.nl/public_html/wp-includes/Requests/src/Exception/InvalidArgument.php on line 29
Victor Font replied 3 days ago

Formidable's execution path doesn't even start until line 22. WP Smoosh PRO is co-opting the execution path before Formidable can do its thing.

It would be great to see a stack trace after WP Smoosh PRO is deactivated, but if the errors stopped after deactivating the plugin, then you would have to insert a break point to capture the stack.

Making the Best WordPress Plugin even better - Together

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!
Join the community
crossarrow-right