0

I have an attached PDF file on a file field. When I click the 'Remove' button, the AJAX throbber appears and then the file remains unremoved. Adding an file to a new node still works.

I checked the error logs; it states "Invalid form POST data."

What is causing this problem?

6
  • 1
    Do you see any JS errors in the console?
    – Shawn Conn
    Sep 14, 2015 at 16:38
  • Negative. There are no errors in the console.
    – ev_patrick
    Sep 14, 2015 at 16:46
  • The only other thing I can suggest is look through the Drupal / Apache logs for some indication of a PHP error. Without any hints of abnormality, there's no way to tell what's going wrong.
    – Shawn Conn
    Sep 14, 2015 at 16:49
  • I just had a look at the Drupal logs and I'm seeing an AJAX error with the message: "Invalid form POST data"
    – ev_patrick
    Sep 14, 2015 at 16:56
  • That errors is likely too broad to answer succinctly here, but that should give you clue what's going on. For some reason, the data being POST'd is not being accepted as valid. If I had to guess, it might be another contrib module causing issues, but that's just speculation.
    – Shawn Conn
    Sep 14, 2015 at 17:19

1 Answer 1

2

I can confirm, increasing 'max_allowed_packet' in our MySQL config solved this problem. MySQL's default of 1 megabyte was too small. Increasing it to 16M, then restarting MySQL has resolved this issue.

Info on our solution was found here: https://www.shift8web.ca/blog/2014/11/drupal-problem-an-ajax-http-request-terminated-abnormally/

Not the answer you're looking for? Browse other questions tagged or ask your own question.