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
IIS Ajax fix (captcha reset & form submission) !!
October 13, 2007
12:00 pm
Oliver
Munich, Germany
Admin
Forum Posts: 6400
Member Since:
March 6, 2005
Offline

Here is the solution to anyone having issues with their IIS webserver. As noted in forum already IIS requires some funny prefix with permalinks, eg. "/index.php/contact-us/".

To fix the cforms ajax support, you need to follow these steps:

  1. Go to the Javascript folder in your cforms plugin directory
  2. Copy cforms.src.js to cforms.js
  3. Modifiy cforms.js
    replace this line:
    uri = document.location.pathname;
    with this:
    uri = "/index.php/URL/";

    with URL = your permalink to your contact page (e.g. uri = "/index.php/contact-us/";)

    You may optionally even try (to keep it generic):
    uri = "/index.php"+document.location.pathname;

  4. Upload this edited version of cforms.js

Give it a try.

October 14, 2007
9:24 am
Jardry
Guest

Oliver,

I've edited the file as you detailed, but I am still having AJAX problems.

I keep getting:

Error: cforms_submitcomment not callable

It then hangs with "One moment please …"

If I switch AJAX of, the form then processes.

On the website I am having issues with I am using the default permalinks.

I've tried:

    uri = "/index.php"+document.location.pathname;
    uri = "/index.php/?page_id=3";
    uri = "?page_id=3";

Any ideas.

 Jardry

October 14, 2007
2:18 pm
Oliver
Munich, Germany
Admin
Forum Posts: 6400
Member Since:
March 6, 2005
Offline

Since we got it working on your other blog, I'm sure we'll find a solutoin for this one too. ;-)

October 17, 2007
11:40 am
Jardry
Guest

Hi Oliver,

I managed to get cForms working on both blogs.

The second blog had some files in the root directory which may have caused some conflict with the AJAX, these weren't used by WordPress, so I moved them to a temp directory.

Went back to my form and voila – it worked.

Not sure what fiile may have been the rouge file though – but hey, its working and that's all I wanted!!

Jardry 

November 6, 2007
9:33 pm
Gail
Guest

Hi,

I'm having the same problem as everyone else in this thread. We do have the installation on a windows server, but I've made the change in the .js file as directed and it still doesn't work. I get the following error message when I click the form submit button:

Error occured while sending the message

As for non-wordpress files in my root directory, the only file I can think of which might affect it is the php.ini file we have. However, that file only contains 2 lines (to make the wordpress permalinks work in IIS.) Here are the two lines in the php.ini file

cgi.fix_pathinfo = 1;
cgi.force_redirect = 0;

I have also ensured that my AJAX is enabled and my SMTP is disabled.

The form is at: http://kidsvt.com/index.php/kidsvt-calendar-submit/

Any help would be greatly appreciated.

 P.S.  When I disable the AJAX setting, I don't get that error message, but the form email is not sent either.

 

November 6, 2007
10:09 pm
Oliver
Munich, Germany
Admin
Forum Posts: 6400
Member Since:
March 6, 2005
Offline

Your error "Error occured while sending the message" is different, the error happens when actually trying to send. So this is already one step further than the original issue/topic above.

The problem is the mail() command, can you double check that

  1. SMTP is not enabled (Plugin Settings)
  2. Your admin email settings (main config page) are all properly set – paranoid email servers may not relay email if mal configured

Does/can your WP send emails to you (new registration, comment moderation etc)?

November 12, 2007
10:22 am
Jardry
Guest

Hi Oliver,

I just tried upgrading to V6 and the "old" problems reoccurs.

I see that the cforms.js is a compress javascript form, so the old trick won't work.

Any ideas as to how to resolve the problem?

Problem occurs whether I have AJAX enabled or disabled. 

Jardry

November 12, 2007
5:27 pm
Pim
Guest

Great plugin, but I've found one little 'bug': Wink

The link in the description of the plugin is missing a ", and than it is stripped out in the plugin list.

Description: cforms II [...] <a href="http://www.deliciousdays.com/cforms-forum?forum=2&topic=2&page=1>VERSION HISTORY</a> [...].

November 12, 2007
5:38 pm
Oliver
Munich, Germany
Admin
Forum Posts: 6400
Member Since:
March 6, 2005
Offline

Great catch Pim – thanks!

Forum Timezone: Europe/Berlin

Most Users Ever Online: 959

Currently Online:
47 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)