The following warnings occurred:
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $newpmmsg - Line: 40 - File: global.php(841) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/global.php(841) : eval()'d code 40 errorHandler->error
/global.php 841 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "style" - Line: 909 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 909 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5024 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 5024 errorHandler->error
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key "additionalgroups" - Line: 7162 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 7162 errorHandler->error
/inc/functions.php 5044 is_member
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key 1 - Line: 1415 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 1415 errorHandler->error
/inc/functions.php 1370 fetch_forum_permissions
/printthread.php 76 forum_permissions
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



Form Tools
Using Form Tools across multiple sites - Printable Version

+- Form Tools (https://forums.formtools.org)
+-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1)
+--- Forum: General Discussion (https://forums.formtools.org/forumdisplay.php?fid=5)
+--- Thread: Using Form Tools across multiple sites (/showthread.php?tid=4537)



Using Form Tools across multiple sites - johna1954 - Jul 29th, 2014

Hi,
I manage a handful of sites including my own which uses Form Tools ok.
I have been asked to add forms to one of the other sites (on the same server)
Can this be done, I would be using the API? I only have access to the website files not full access to the server.
Would I need a separate instance of Form Tools for each site?

Many Thanks
John


RE: Using Form Tools across multiple sites - Joe - Jul 29th, 2014

Hi John,

If all the sites are on the same server you should be okay to use the API. It'll be easier using the POST method. You only need a single instance of Form Tools.

Cheers,

Joe


RE: Using Form Tools across multiple sites - johna1954 - Jul 30th, 2014

Hi Joe, thank you for your reply.
I am using the POST method but repeated attempts to get 2nd site working failed every time with a blank page. I am presuming that the path is incorrect to api.php.
The path used was:
/var/www/vhosts/scotlandsartists.com/httpdocs/formtools/global/api/api.php
If I put this path into the original website instead of:
../formtools/global/api/api.php it works fine so I assume the path is correct.
Both sites are definitely on the same server.
Severe scratching of the head going on!
Appreciate any further thoughts you might have.

Thanks

John


RE: Using Form Tools across multiple sites - johna1954 - Aug 11th, 2014

Just a follow up and solution.
After further head scratching and no success with the paths I uploaded the complete 'formtools' folder from the original site to the second site and changed the details in config.php and 'library.php' to the second site. The database details remained the same. On the form page 'Require Once' was set to the 'api.php' on the second site (require_once("formtools/global/api/api.php")Wink and I now have a working form that I can access and manage from the first site.
Regards
John