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
multi site + cforms problems
multi site + cforms problems
June 26, 2012
7:25 am
andy
Guest

Hello all-

First and foremost, a huge thanks to Oliver for creating such a great plugin. I have tinkered with it on a single site test install and really thought it was great. Now I am trying to use it on a multisite install and have run into a problem. I have been attempting to solve a issue for a day and a half now and I have exhausted all avenues reading faqs/forums/google etc. Any help would greatly be appreciated!

I created a fresh multisite install (WP 3.4) then installed cforms 14.5. With no other plugins installed I get the dreaded error:

"It seems that your ROOT directory for Wordpress is /subsitecforms tried to auto-adjust its settings accordingly, however if you still encounter issues with Ajax (form submission & CAPTCHA reset) please open the file js/cforms.js in your cforms plugin folder and check the sajax_uri variable. (After changing the file, please emtpy your browser cache!)"

Here are several answers to some of the occurring questions I have seen addressed when searching this issue:

-I have not moved the site form anywhere else

-I'm not using ssl

-I have tried the default theme

-I have checked and tested my siteurls and home values in the WP database. There are no trailing /'s and have tried both with 'www' and without.

-I have tried several browsers as well as cleared the caches when checking the new changes to cforms.js

-I believe I have verified both paths in cforms.js / abspath.php) – I have tried both relative and absolute paths… (have tried the variations below)

var sajax_uri = '/wp-content/plugins/cforms/lib_ajax.php';

var sajax_uri = 'http://mydomain.com/wp-content/plugins/cforms/lib_ajax.php';

var sajax_uri = '/home/content/u/5/6/u5632981/html/wp-content/plugins/cforms/lib_ajax.php';

I have also tried:

var sajax_uri = window.location.protocol + "//" + window.location.host + '/home/content/u/5/6/u5632981/html/wp-content/plugins/cforms/lib_ajax.php';

var sajax_uri = window.location.protocol + "//" + window.location.host +'/wp-content/plugins/cforms/lib_ajax.php';

var sajax_uri = window.location.protocol + "//" + window.location.host+'http://mydomain.com/wp-content/plugins/cforms/lib_ajax.php';

 

absolute path:  /home/content/u/5/6/u5632981/html/

in abspath.php=  <?php $abspath = '/home/content/u/5/6/u5632981/html/'; ?>

 

The forms on the main site work as they should. The forms on the subsites seem to get mixed up with settings with the main site. The message "It seems that your ROOT directory for Wordpress is /subsite" reflects the name of the subsite I am working with/testing at that time.

I would love it if one of you could point out the piece of the puzzle that I am missing. Please let me know if I missed any pertinent information trying to resolve my issue. I am hoping that I am overlooking something silly. Thanks in advance!

July 1, 2012
6:49 pm
Oliver
Munich, Germany
Admin
Forum Posts: 6400
Member Since:
March 6, 2005
Offline

Multi-site isn't really supported, although I have been told in the past that it was pretty straight forward to make it work.

Since different paths (in both JS and PHP files) may play a role, you may try to set these dependent on the sub domain you're on. 

January 24, 2013
10:02 am
IV
Guest

andy said
Hello all-

First and foremost, a huge thanks to Oliver for creating such a great plugin. I have tinkered with it on a single site test install and really thought it was great. Now I am trying to use it on a multisite install and have run into a problem. I have been attempting to solve a issue for a day and a half now and I have exhausted all avenues reading faqs/forums/google etc. Any help would greatly be appreciated!

I created a fresh multisite install (WP 3.4) then installed cforms 14.5. With no other plugins installed I get the dreaded error:

"It seems that your ROOT directory for Wordpress is /subsitecforms tried to auto-adjust its settings accordingly, however if you still encounter issues with Ajax (form submission & CAPTCHA reset) please open the file js/cforms.js in your cforms plugin folder and check the sajax_uri variable. (After changing the file, please emtpy your browser cache!)"

Here are several answers to some of the occurring questions I have seen addressed when searching this issue:

-I have not moved the site form anywhere else

-I'm not using ssl

-I have tried the default theme

-I have checked and tested my siteurls and home values in the WP database. There are no trailing /'s and have tried both with 'www' and without.

-I have tried several browsers as well as cleared the caches when checking the new changes to cforms.js

-I believe I have verified both paths in cforms.js / abspath.php) – I have tried both relative and absolute paths… (have tried the variations below)

var sajax_uri = '/wp-content/plugins/cforms/lib_ajax.php';

var sajax_uri = 'http://mydomain.com/wp-content/plugins/cforms/lib_ajax.php';

var sajax_uri = '/home/content/u/5/6/u5632981/html/wp-content/plugins/cforms/lib_ajax.php';

I have also tried:

var sajax_uri = window.location.protocol + "//" + window.location.host + '/home/content/u/5/6/u5632981/html/wp-content/plugins/cforms/lib_ajax.php';

var sajax_uri = window.location.protocol + "//" + window.location.host +'/wp-content/plugins/cforms/lib_ajax.php';

var sajax_uri = window.location.protocol + "//" + window.location.host+'http://mydomain.com/wp-content/plugins/cforms/lib_ajax.php';

 

absolute path:  /home/content/u/5/6/u5632981/html/

in abspath.php=  <?php $abspath = '/home/content/u/5/6/u5632981/html/'; ?>

 

The forms on the main site work as they should. The forms on the subsites seem to get mixed up with settings with the main site. The message "It seems that your ROOT directory for Wordpress is /subsite" reflects the name of the subsite I am working with/testing at that time.

I would love it if one of you could point out the piece of the puzzle that I am missing. Please let me know if I missed any pertinent information trying to resolve my issue. I am hoping that I am overlooking something silly. Thanks in advance!

Hello,

Did you manage to make it works please? I'm having same troubles.

Thanks in advance

February 4, 2013
6:25 pm
nister
Guest

Hello, 

    I'm having the same problem with multisite install. Did you make it work?

Thank you,

Forum Timezone: Europe/Berlin

Most Users Ever Online: 959

Currently Online:
31 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: 3739

Members: 1463

Moderators: 3

Admins: 2

Forum Stats:

Groups: 1

Forums: 4

Topics: 5339

Posts: 18706

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

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

Administrators: Oliver (6400), Nicky (3)