Registration is currently disabled.
Hi, all. First off, let me say I've used cforms on many sites with no issues whatsoever, and just LOVE the plugin. The site I'm currently working on, however, is using v11.4, and I'm having a strange issue that I can't seem to find a solution for.
Here's what's happening: The root folder for the WP install for this site is /content. So, within the cforms admin page, I'm getting the "It seems that your ROOT directory…" message at the top of the screen. I've checked / changed the sajax_uri variable in my cforms.js file, re-uploaded the file, cleared cache, restarted browser. No luck.
Then, following the FAQ here, I installed Firebug, and ran it while viewing the "console" view. The error message I'm getting is not one that I found listed within the FAQ section. Here's what it shows me:
Firebug's log limit has been reached. 0 entries not shown. Preferences
POST (site url)/content/comments/content/wp-content/plugins/cforms/lib_ajax.php 404 Not Found
Now, what I've entered in my sajax_uri variable field is "content/wp-content/plugins/cforms/lib_ajax.php". Which, going by file location within the server, is the correct path. However, it looks as though when the form is trying to submit, it's adding an extra "content/comments" in front of what the path actually should be. (the name of the page is actually "comments". It's a page of the site for viewers to leave feedback.)
I've checked my abspath.php file as well, and it looks correct.
I'm really at a loss here. From what I can tell, everything's entered correctly, within the cforms.js file, the abspath.php file, etc. I've done everything I could find so far in the way of trying to remedy the problem. Forgive me if a solution has been posted before, but I just couldn't find one.
Any help is greatly appreciated. The forms on 2 pages of the site are all that are left before completion.
After doing some more googling, I found another post where someone else had disabled AJAX support on the forms that weren't working. I tried that, and my forms are now working correctly.
I know this isn't the IDEAL solution, but for now, I'm happy that the forms are at least functioning correctly. However, if anyone does have a better solution, please let me know. For future reference, I suppose. :)
February 10, 2009
In 99% of the cases of "ajax stalling" it has to do with URL / absolute path configuration.
Can you share your URL? Preferably pointing to a form that is ajax enabled.
Yes, here is the url for one of the forms that was having problems:
I re-enabled ajax on this particular form, and it is indeed hanging again. I know there's something going on with the url it is giving upon submission, but I did double and triple check the sajax_uri variable and abspath file several times, as well as flushing the cache, restarting browser, etc.
From what I can tell, it's like it's throwing in an extra part to the actual path that I put into the sajax_uri line.
Here's what's in my sajax_uri line in cforms.js:
Here's what Firebug is telling me it's trying to go to upon submission:
The first part of that is what I think might be throwing it off, and I don't really know why that's getting put in there.
February 10, 2009
On first sight it doesn look like the cforms.js path is not correct, try:
var sajax_uri = '/content/wp-content/plugins/cforms/lib_ajax.php';
That did it.
Isn't that always the way? I drive myself crazy trying to find any fix / workaround possible, and it's one little character.
Thanks so much for your help. I really appreciate the quick response.
LOVE cforms! Keep up the great work!
February 10, 2009
No problem, glad you got it fixed.
Let Oliver know :-)
Since the "DYNAMIC NEW SETTING" in cforms.js didn't take subdirectory installations into account, I fixed it this way:
// determine correct wordpress subdirectory
var paths = window.location.pathname.split("/");
var sajax_uri = window.location.protocol + "//" + window.location.host+"/"+paths'/wp-content/plugins/cforms/lib_ajax.php';
Most Users Ever Online: 959
Currently Browsing this Page:
Guest Posters: 3708
Newest Members: juredujmovic, dreamkeeper, rajattyagi, wrokaa, lukass
Moderators: Paul (421), cnymike (8), sonika (95)
Administrators: Oliver (6400), Nicky (3)