Active
Project:
Modal forms (with ctools)
Version:
7.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
5 Feb 2013 at 22:27 UTC
Updated:
10 Apr 2018 at 12:44 UTC
Jump to comment: Most recent
I have used the custom link to open a webform using the modal form, but when I click on the link, the popup opens but then I get an Ajax HTTP Error:404, and it says that the custom path for the form, "/modal_forms/ajax/webform/2." Not sure why that is that path that is created, when the hardcoded custom path in the template is "/modal_forms/nojs/webform/2."
Comments
Comment #1
jcmartinezYou may want to try updating JQuery.
I was about to post my error code and I installed jQuery Update. It solved the problem for me.
Set jQuery Update to the version of jQuery 1.7 instead of 1.5 that comes with Drupal 7.
Hope it helps!
Comment #2
zil0484 commentedI also encounter similar problem. Tried installing latest jQuery update but still the same problem occurred. Please help
Comment #3
Gabox commentedI changed the url, didn't use absolute and it works.
I know is not the best soultion, but works :)
Comment #4
ioustini commentedI changed the url from relative to absolute and the 404 errors stopped appearing.
Thank you :)
Comment #5
abarpetia commentedI am also getting same error message and I tried all the suggestions mentioned above but still its not working. So, Does any one found the correct solution for this?
Comment #6
jordilopezamat commentedHaving the same issue i solved it after re-reading the documentation.
In particular the the Supported Forms specification
and
In my case, leading to
<a class="ctools-use-modal ctools-modal-modal-popup-medium" href="/modal_forms/nojs/webform/253">Which now opens the Webform in a nice modal window
Hope it helps someone else !
Comment #7
ElCodero commentedHi,
I'm receiving the same error. I've tried solutions from above, unfortunately that didn't help:
my config is:
drupal 7.41
jquery (current active is 2.1 via jquery update module, I've also tried 1.9, 1.7, 1.5)
I'm using absolute path to the webform like:
modal_forms/nojs/webform/24
Actually the webform I'm pointing to is a custom module with a dependency to webform (dependencies[] = webform in my_form.info)
Could that be an issue?
Comment #8
abarpetia commented@ElCodero: did you tried using absolute path? I used absolute path for webform and it worked for me.
Comment #9
ElCodero commentedthank you for your reply.
yes I'm using following absolute path to the webform: example.com/modal_forms/nojs/webform/24
I can see an POST 404 (not found) error in chrome's debugger console (example.com/modal_forms/ajax/webform/24) so I also guessed I'm using a wrong path
but I double checked this with typing in example.com/node/24 and I reach the webform.
Comment #10
skylord commentedSeems like duplicate for #2679387: "No webform found" error when trying to use webform integration