cforms II User Forum

Registration is currently disabled.
Guest

FAQs

Login form protected by Login LockDown.


Lost password?
Advanced Search

— Forum Scope —

  

— Match —

   

— Forum Options —

    

Wildcard usage:
*  matches any number of characters    %  matches exactly one character

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS Related Topics
Form hanging on submit, Firebug error message I can't find on forum
May 20, 2010
8:43 pm
Guest

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.

Thanks!

May 20, 2010
9:21 pm
Guest

Quick update:

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. :)

Thanks!

May 21, 2010
10:27 am
Paul
Amsterdam, NL
Moderator
Forum Posts: 421
Member Since:
February 10, 2009
Offline

Hi!

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.

Cheers

P.

* Paul Silter
May 21, 2010
2:46 pm
Guest

Yes, here is the url for one of the forms that was having problems:

http://www.hiwasseechaseairsystems.com/content/comments

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:
content/wp-content/plugins/cforms/lib_ajax.php

Here's what Firebug is telling me it's trying to go to upon submission:
content/comments/content/wp-content/plugins/cforms/lib_ajax.php

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.

May 21, 2010
3:02 pm
Paul
Amsterdam, NL
Moderator
Forum Posts: 421
Member Since:
February 10, 2009
Offline

Hi!

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';

P.

* Paul Silter
May 21, 2010
4:04 pm
Guest

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!

May 21, 2010
3:05 pm
Paul
Amsterdam, NL
Moderator
Forum Posts: 421
Member Since:
February 10, 2009
Offline

No problem, glad you got it fixed.

 LOVE cforms!

Let Oliver know :-)

P.

* Paul Silter
March 5, 2013
2:39 am
Henry
Guest

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[1]'/wp-content/plugins/cforms/lib_ajax.php';

Forum Timezone: Europe/Berlin

Most Users Ever Online: 959

Currently Online:
50 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

tracedef: 43

mores: 21

Gyrus: 20

frozenwaste: 18

asuffredini: 15

photoworks: 14

Member Stats:

Guest Posters: 3762

Members: 1463

Moderators: 3

Admins: 2

Forum Stats:

Groups: 1

Forums: 4

Topics: 5361

Posts: 18742

Newest Members: juredujmovic, dreamkeeper, rajattyagi, wrokaa, lukass

Moderators: Paul (421), cnymike (8), sonika (95)

Administrators: Oliver (6400), Nicky (3)