The following warnings occurred:
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.27 (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.27 (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.27 (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.27 (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.27 (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.27 (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.27 (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.27 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.27 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



Form Tools
Blank 2nd (Review) Page - Printable Version

+- Form Tools (https://forums.formtools.org)
+-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1)
+--- Forum: Installation (https://forums.formtools.org/forumdisplay.php?fid=4)
+--- Thread: Blank 2nd (Review) Page (/showthread.php?tid=2473)



Blank 2nd (Review) Page - IanDM - Jun 26th, 2013

Hi all,

Have scoured the posts within the forum and gone through all of the potential matches and solutions, but am still stumped, so wonder if someone with more experience could advise if I have missed something or done something daft in my code.

I previously installed formtools on my dev domain and got it all working without issues, but seems since installing again on the production domain, it no longer wishes to work.

My issue is that when I try and move from the initial first page to the 2nd page, which is a review entries page, the page is totally blank, only containing the html header and nothing else.

You can see it in action here: http://tinyurl.com/nf4t3rb

When registering the forms using the api method for multi page forms, it was the same issue where the 2nd page was blank, so I managed to get it registered by visiting each page manually and it then said it was completed, but then trying to use the forms just shows a blank 2nd page every time.

My 1st page has the following in it:

Code:
<?php
require_once($_SERVER['DOCUMENT_ROOT'].'/comms/global/api/api.php');
$fields = ft_api_init_form_page(1);

$errors = array();
if (isset($_POST['iONNext']))
{
  $rules = array();
  $rules[] = "required,first_name,Please enter your first name.";
  $rules[] = "required,last_name,Please enter your last name.";
  $rules[] = "valid_email,email_address,Please enter a valid email address.";
  $rules[] = "required,email_address,Please enter your email address.";
  $errors = validate_fields($_POST, $rules);

  if (empty($errors))
  {
    $params = array(
          "submit_button" => "iONNext",
          "next_page" => "iON-Newsletter-Signup-Review.php",
          "form_data" => $_POST,
             );
        ft_api_process_form($params);
    }
    else
  {
    $fields = array_merge($_SESSION, $_POST);
  }
}
?>

The 3 pages are:
iON-Newsletter-Signup.php
iON-Newsletter-Signup-Review.php
iON-Newsletter-Signup-Thank-you.php

The strange thing is that with identical form api settings and content, but on a different domain (my dev - using the same mysql db - different table names) it works: http://tinyurl.com/qhd2sqx

I am sure I have got to be missing something very obvious somewhere, but after a couple of days of scratching my head, and the best part of 4 or 5 hours going through the different similar issues others have had and the solutions I am no further forward, so if anyone has any suggestions then I am all ears and would appreciate the input.

Many thanks, Ian