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



Form Tools
form page is blank - 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: form page is blank (/showthread.php?tid=1053)



form page is blank - sagelike - Jan 25th, 2011

Hi there

Just trying to get a multi-page form setup and working and I'm having some real trouble.

I'm using the API with this code above the form:

Code:
<?php
require_once("/var/www/vhosts/xxxxxxxxxx.ca/httpdocs/ftools/global/api/api.php");
$fields = ft_api_init_form_page("", "test");
$params = array(
  "submit_button" => "app_Submit1",
  "next_page" => "page2.php",
  "form_data" => $_POST
    );
ft_api_process_form($params);
?>

Code:
<form id="form" name="form" action="<?php echo $_SERVER["PHP_SELF"]?>" enctype="application/x-www-form-urlencoded" method="post">


The page stops loading at the point where this code appears. I've tried placing this at the top of my page and the page won't load at all. The page has a .php extension and we're using PHP 5.2.14 on a linux server.

I've tested the form without the code and it then loads properly. The only thing I can think of is that I'm running this form from a demo site subdomain (demo.mysite.ca) while formtools is loaded on the main web site (mysite.ca). Both sites are running from the same domain.

Thanks for helping.

Cheers
G


RE: form page is blank - Ben - Feb 5th, 2011

Hi G,

It sounds like this line is the problem:

PHP Code:
require_once("/var/www/vhosts/xxxxxxxxxx.ca/httpdocs/ftools/global/api/api.php"); 

If that's not completely correct, it will show a blank page - so very possibly the path you've entered there is incorrect. It may also be the case that you're forbidden to include that file if it's located on an alternative domain...

But maybe try using a relative path to the api.php file instead, just to eliminate the possibility of it being a dud path.

Good luck!

- Ben