• Resolved invisibleira

    (@invisibleira)


    Hi,
    I have a form that will submit and mail correctly when I do not include an attachment, but including an attachment (small word docs and pdfs I’m testing with) appears to upload but gives me an eternal spinner when I try to submit using ajax (along with a console error: ‘Failed to load resource: The network connection was lost. {code: “fetch_error”, message: “You are probably offline.”}’ ), or when ajax is disabled (tried multiple browsers, but in the case of Safari) an error like: ‘Safari can’t open the page “https://development.irasher.com/tkandk/career/dispatcher-dco/#wpcf7-f26-p87-o1” because the server unexpectedly dropped the connection. This sometimes occurs when the server is busy. Wait for a few minutes, and then try again.’

    This happens 95% of the time, although on two occasions(!) during various tests, things have mysteriously worked. When I duplicate the materials to re-test–files, field content, everything–they don’t work the next time.

    I’ve tried add_filter( ‘wpcf7_load_js’, ‘__return_false’ ) in functions to run the form without ajax. I’ve added remove_action( ‘template_redirect’, ‘wpcf7_cleanup_upload_files’, 20 ) to make sure files aren’t being removed too quickly from the temp dir. I’ve tried turning off plugins and switching to a default theme. I’ve also tried making the permissions wide open on the wpcf7_uploads folder, and I’ve tried explicitly setting a new uploads folder.

    I’m running this on a development server on SiteGround. I am not seeing errors generated in the SiteGrounds logs, or in my php error logs. I’m sorry to bother you, but I’m stumped at this point. Do you have any thoughts about what might be happening? I can provide access if useful.

    Thanks,
    Ira

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    What other plugins and theme do you use on the site?

    Thread Starter invisibleira

    (@invisibleira)

    Thanks for writing back. I use Advanced Custom Fields, Custom Post Type UI, and Simple Custom Post Order, and this is running on a custom theme based on underscores. I’ve tried placing the form on its own page and switching to twenty twenty-two and turning off all plugins but CF7, but was still unable to send with attachments.

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    Try switching to the default theme, deactivating all plugins excluding Contact Form 7, and clearing all cache data.

    Why you are advised to deactivate plugins and switch to the default theme.

    Thread Starter invisibleira

    (@invisibleira)

    I switched it to Twenty Twenty-four, which would be the default, deactivated all the plugins again, and cleared cache on the browser and server, but I’m still getting the endless spinner when I submit with an attachment, with the “network connection was lost” javascript error. Any other ideas about this?
    Thank you,
    Ira

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    Have you contacted SiteGround’s support on this case?

    Thread Starter invisibleira

    (@invisibleira)

    They were pretty stumped, too. I was on the phone with them twice yesterday. But after shutting down all caching this morning and installing an SMTP plugin, I have things working stably. Thank you again for your help troubleshooting, and for a great plugin.

    Thread Starter invisibleira

    (@invisibleira)

    (resolved)

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Form not sending with attachments’ is closed to new replies.