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
/showthread.php 26 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
/showthread.php 26 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
/showthread.php 26 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
/showthread.php 26 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
/showthread.php 26 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
/showthread.php 26 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
/showthread.php 137 forum_permissions
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 1380 fetch_forum_permissions
/inc/functions.php 2909 forum_permissions
/showthread.php 621 build_forum_jump
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 1380 fetch_forum_permissions
/inc/functions.php 2909 forum_permissions
/showthread.php 621 build_forum_jump
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 1380 fetch_forum_permissions
/inc/functions.php 2909 forum_permissions
/showthread.php 621 build_forum_jump
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 1380 fetch_forum_permissions
/inc/functions.php 2909 forum_permissions
/showthread.php 621 build_forum_jump
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 1380 fetch_forum_permissions
/inc/functions.php 2909 forum_permissions
/showthread.php 621 build_forum_jump
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 1380 fetch_forum_permissions
/inc/functions.php 2909 forum_permissions
/showthread.php 621 build_forum_jump
Warning [2] Undefined array key "mybb" - Line: 1952 - File: inc/functions.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions.php 1952 errorHandler->error
/inc/functions_indicators.php 41 my_set_array_cookie
/showthread.php 629 mark_thread_read
Warning [2] Undefined property: MyLanguage::$ratings_update_error - Line: 5 - File: showthread.php(732) : eval()'d code PHP 8.1.27 (Linux)
File Line Function
/showthread.php(732) : eval()'d code 5 errorHandler->error
/showthread.php 732 eval
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_user.php 844 is_member
/inc/functions_post.php 406 purgespammer_show
/showthread.php 1070 build_postbit
Warning [2] Undefined array key "profilefield" - Line: 6 - File: inc/functions_post.php(474) : eval()'d code PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php(474) : eval()'d code 6 errorHandler->error
/inc/functions_post.php 474 eval
/showthread.php 1070 build_postbit
Warning [2] Undefined array key "canonlyreplyownthreads" - Line: 660 - File: inc/functions_post.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php 660 errorHandler->error
/showthread.php 1070 build_postbit
Warning [2] Undefined array key "showimages" - Line: 741 - File: inc/functions_post.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php 741 errorHandler->error
/showthread.php 1070 build_postbit
Warning [2] Undefined array key "showvideos" - Line: 746 - File: inc/functions_post.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php 746 errorHandler->error
/showthread.php 1070 build_postbit
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_user.php 844 is_member
/inc/functions_post.php 406 purgespammer_show
/showthread.php 1070 build_postbit
Warning [2] Undefined array key "profilefield" - Line: 6 - File: inc/functions_post.php(474) : eval()'d code PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php(474) : eval()'d code 6 errorHandler->error
/inc/functions_post.php 474 eval
/showthread.php 1070 build_postbit
Warning [2] Undefined array key "canonlyreplyownthreads" - Line: 660 - File: inc/functions_post.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php 660 errorHandler->error
/showthread.php 1070 build_postbit
Warning [2] Undefined array key "showimages" - Line: 741 - File: inc/functions_post.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php 741 errorHandler->error
/showthread.php 1070 build_postbit
Warning [2] Undefined array key "showvideos" - Line: 746 - File: inc/functions_post.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php 746 errorHandler->error
/showthread.php 1070 build_postbit
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_user.php 844 is_member
/inc/functions_post.php 406 purgespammer_show
/showthread.php 1070 build_postbit
Warning [2] Undefined array key "profilefield" - Line: 6 - File: inc/functions_post.php(474) : eval()'d code PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php(474) : eval()'d code 6 errorHandler->error
/inc/functions_post.php 474 eval
/showthread.php 1070 build_postbit
Warning [2] Undefined array key "canonlyreplyownthreads" - Line: 660 - File: inc/functions_post.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php 660 errorHandler->error
/showthread.php 1070 build_postbit
Warning [2] Undefined array key "showimages" - Line: 741 - File: inc/functions_post.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php 741 errorHandler->error
/showthread.php 1070 build_postbit
Warning [2] Undefined array key "showvideos" - Line: 746 - File: inc/functions_post.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php 746 errorHandler->error
/showthread.php 1070 build_postbit
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_user.php 844 is_member
/inc/functions_post.php 406 purgespammer_show
/showthread.php 1070 build_postbit
Warning [2] Undefined array key "profilefield" - Line: 6 - File: inc/functions_post.php(474) : eval()'d code PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php(474) : eval()'d code 6 errorHandler->error
/inc/functions_post.php 474 eval
/showthread.php 1070 build_postbit
Warning [2] Undefined array key "canonlyreplyownthreads" - Line: 660 - File: inc/functions_post.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php 660 errorHandler->error
/showthread.php 1070 build_postbit
Warning [2] Undefined array key "showimages" - Line: 741 - File: inc/functions_post.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php 741 errorHandler->error
/showthread.php 1070 build_postbit
Warning [2] Undefined array key "showvideos" - Line: 746 - File: inc/functions_post.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php 746 errorHandler->error
/showthread.php 1070 build_postbit
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_user.php 844 is_member
/inc/functions_post.php 406 purgespammer_show
/showthread.php 1070 build_postbit
Warning [2] Undefined array key "profilefield" - Line: 6 - File: inc/functions_post.php(474) : eval()'d code PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php(474) : eval()'d code 6 errorHandler->error
/inc/functions_post.php 474 eval
/showthread.php 1070 build_postbit
Warning [2] Undefined array key "canonlyreplyownthreads" - Line: 660 - File: inc/functions_post.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php 660 errorHandler->error
/showthread.php 1070 build_postbit
Warning [2] Undefined array key "showimages" - Line: 741 - File: inc/functions_post.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php 741 errorHandler->error
/showthread.php 1070 build_postbit
Warning [2] Undefined array key "showvideos" - Line: 746 - File: inc/functions_post.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php 746 errorHandler->error
/showthread.php 1070 build_postbit
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_user.php 844 is_member
/inc/functions_post.php 406 purgespammer_show
/showthread.php 1070 build_postbit
Warning [2] Undefined array key "profilefield" - Line: 6 - File: inc/functions_post.php(474) : eval()'d code PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php(474) : eval()'d code 6 errorHandler->error
/inc/functions_post.php 474 eval
/showthread.php 1070 build_postbit
Warning [2] Undefined array key "canonlyreplyownthreads" - Line: 660 - File: inc/functions_post.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php 660 errorHandler->error
/showthread.php 1070 build_postbit
Warning [2] Undefined array key "showimages" - Line: 741 - File: inc/functions_post.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php 741 errorHandler->error
/showthread.php 1070 build_postbit
Warning [2] Undefined array key "showvideos" - Line: 746 - File: inc/functions_post.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php 746 errorHandler->error
/showthread.php 1070 build_postbit
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_user.php 844 is_member
/inc/functions_post.php 406 purgespammer_show
/showthread.php 1070 build_postbit
Warning [2] Undefined array key "profilefield" - Line: 6 - File: inc/functions_post.php(474) : eval()'d code PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php(474) : eval()'d code 6 errorHandler->error
/inc/functions_post.php 474 eval
/showthread.php 1070 build_postbit
Warning [2] Undefined array key "canonlyreplyownthreads" - Line: 660 - File: inc/functions_post.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php 660 errorHandler->error
/showthread.php 1070 build_postbit
Warning [2] Undefined array key "showimages" - Line: 741 - File: inc/functions_post.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php 741 errorHandler->error
/showthread.php 1070 build_postbit
Warning [2] Undefined array key "showvideos" - Line: 746 - File: inc/functions_post.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php 746 errorHandler->error
/showthread.php 1070 build_postbit
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_user.php 844 is_member
/inc/functions_post.php 406 purgespammer_show
/showthread.php 1070 build_postbit
Warning [2] Undefined array key "profilefield" - Line: 6 - File: inc/functions_post.php(474) : eval()'d code PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php(474) : eval()'d code 6 errorHandler->error
/inc/functions_post.php 474 eval
/showthread.php 1070 build_postbit
Warning [2] Undefined array key "canonlyreplyownthreads" - Line: 660 - File: inc/functions_post.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php 660 errorHandler->error
/showthread.php 1070 build_postbit
Warning [2] Undefined array key "showimages" - Line: 741 - File: inc/functions_post.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php 741 errorHandler->error
/showthread.php 1070 build_postbit
Warning [2] Undefined array key "showvideos" - Line: 746 - File: inc/functions_post.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php 746 errorHandler->error
/showthread.php 1070 build_postbit
Warning [2] Undefined array key "showimages" - Line: 784 - File: inc/functions_post.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php 784 errorHandler->error
/showthread.php 1070 build_postbit
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_user.php 844 is_member
/inc/functions_post.php 406 purgespammer_show
/showthread.php 1070 build_postbit
Warning [2] Undefined array key "profilefield" - Line: 6 - File: inc/functions_post.php(474) : eval()'d code PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php(474) : eval()'d code 6 errorHandler->error
/inc/functions_post.php 474 eval
/showthread.php 1070 build_postbit
Warning [2] Undefined array key "canonlyreplyownthreads" - Line: 660 - File: inc/functions_post.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php 660 errorHandler->error
/showthread.php 1070 build_postbit
Warning [2] Undefined array key "showimages" - Line: 741 - File: inc/functions_post.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php 741 errorHandler->error
/showthread.php 1070 build_postbit
Warning [2] Undefined array key "showvideos" - Line: 746 - File: inc/functions_post.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php 746 errorHandler->error
/showthread.php 1070 build_postbit
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_user.php 844 is_member
/inc/functions_post.php 406 purgespammer_show
/showthread.php 1070 build_postbit
Warning [2] Undefined array key "profilefield" - Line: 6 - File: inc/functions_post.php(474) : eval()'d code PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php(474) : eval()'d code 6 errorHandler->error
/inc/functions_post.php 474 eval
/showthread.php 1070 build_postbit
Warning [2] Undefined array key "canonlyreplyownthreads" - Line: 660 - File: inc/functions_post.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php 660 errorHandler->error
/showthread.php 1070 build_postbit
Warning [2] Undefined array key "showimages" - Line: 741 - File: inc/functions_post.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php 741 errorHandler->error
/showthread.php 1070 build_postbit
Warning [2] Undefined array key "showvideos" - Line: 746 - File: inc/functions_post.php PHP 8.1.27 (Linux)
File Line Function
/inc/functions_post.php 746 errorHandler->error
/showthread.php 1070 build_postbit
Warning [2] Undefined array key "invisible" - Line: 1506 - File: showthread.php PHP 8.1.27 (Linux)
File Line Function
/showthread.php 1506 errorHandler->error
Warning [2] Undefined variable $threadnotesbox - Line: 30 - File: showthread.php(1533) : eval()'d code PHP 8.1.27 (Linux)
File Line Function
/showthread.php(1533) : eval()'d code 30 errorHandler->error
/showthread.php 1533 eval
Warning [2] Undefined variable $addremovesubscription - Line: 79 - File: showthread.php(1533) : eval()'d code PHP 8.1.27 (Linux)
File Line Function
/showthread.php(1533) : eval()'d code 79 errorHandler->error
/showthread.php 1533 eval



FORUMS


The Form Tools forums are no longer active, but the old posts have been archived here. Please see the Help page on how to get help / report issues.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
'cannot modify header info' error
#1
Warning: Cannot modify header information - headers already sent by (output started at [my php page]:5) in /home/content/w/p/i/wpinsgroup/html/orders/forms2/global/api/api.php on line 861

I'm getting the above error when trying to move from the first page to the second page of a form. I'm using the api. I have another form that is working perfecting. However I can't get this one to work. They are setup identically with the only difference being the form id.

This is a form that has been migrated from form tools 1 to 2

Any information or insight would be appreciated.

Thanks,
nytsua
Reply
#2
(Sep 5th, 2009, 12:40 PM)nytsua Wrote: Warning: Cannot modify header information - headers already sent by (output started at [my php page]:5) in /home/content/w/p/i/wpinsgroup/html/orders/forms2/global/api/api.php on line 861

I'm getting the above error when trying to move from the first page to the second page of a form. I'm using the api. I have another form that is working perfecting. However I can't get this one to work. They are setup identically with the only difference being the form id.

This is a form that has been migrated from form tools 1 to 2

Any information or insight would be appreciated.

Thanks,
nytsua

I've gotten this error before but I can't remember exactly how I corrected it...

But I will tell you a few of the things I generally check for (which might not help at all.. but lets hope so...):

1. Make sure the PHP is above your <html> tag
2. You may need to visit your thanks page to reset the sessions

Could you post the entire code of your page to have a better look?
Reply
#3
Just to follow up. I tried what was suggested in the above post but never got it to work. I unfortunately didn't have time to figure it out but had to get the forms up and working. As soon as I split them up into their own php pages everything worked fine.

Thanks for the suggestions.

Nytsua
Reply
#4
Quote:Just to follow up. I tried what was suggested in the above post but never got it to work. I unfortunately didn't have time to figure it out but had to get the forms up and working. As soon as I split them up into their own php pages everything worked fine.

Thanks for the suggestions.

Nytsua

Sorry the suggestion didn't work out, but glad you figured it out! Without seeing the code it was just kind of a guess... but it's funny how things will kind of just start working as you move things about.
Reply
#5
Hello,

I have following errors during adding form:

Code:
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/klient.dhosting.pl/logistics/logistics.dkonto.pl/public_html/psml/new/kongres2012/rejestracja/example01.php:1) in /home/klient.dhosting.pl/logistics/logistics.dkonto.pl/public_html/psml/new/kongres2012/rejestracja/formtools/global/api/api.php on line 1585

Warning: Cannot modify header information - headers already sent by (output started at /home/klient.dhosting.pl/logistics/logistics.dkonto.pl/public_html/psml/new/kongres2012/rejestracja/example01.php:1) in /home/klient.dhosting.pl/logistics/logistics.dkonto.pl/public_html/psml/new/kongres2012/rejestracja/formtools/global/api/api.php on line 1586

Warning: Cannot modify header information - headers already sent by (output started at /home/klient.dhosting.pl/logistics/logistics.dkonto.pl/public_html/psml/new/kongres2012/rejestracja/example01.php:1) in /home/klient.dhosting.pl/logistics/logistics.dkonto.pl/public_html/psml/new/kongres2012/rejestracja/formtools/global/api/api.php on line 1587

After clicking submit button additional error showed
Code:
Warning: Cannot modify header information - headers already sent by (output started at /home/klient.dhosting.pl/logistics/logistics.dkonto.pl/public_html/psml/new/kongres2012/rejestracja/example01.php:1) in /home/klient.dhosting.pl/logistics/logistics.dkonto.pl/public_html/psml/new/kongres2012/rejestracja/formtools/global/api/api.php on line 881

I have tested it on complex and simple form:

example01.php
PHP Code:
<?php
require_once("formtools/global/api/api.php");
$g_api_debug true
$fields 
ft_api_init_form_page("""test");
//$fields = ft_api_init_form_page(7, "initialize");
$params = array(
  
"submit_button" => "sendguess",
  
"next_page" => "example02.php",
  
"form_data" => $_POST,
  
"finalize" => true
    
);
ft_api_process_form($params);

?>
 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Vipcontest Guess Form</title>
</head>

<body>
<form name="example01" id="example01" action="<?php echo $_SERVER["PHP_SELF"]?>" method="POST">
  <!--p>id
    <input type="text" name="id" id="id" />
  </p-->
  <p>First Name
    <input type="text" name="fname" id="fname" />
  </p>
  <p>Last Name
    <input type="text" name="lname" id="lname" />
  </p>
  <!--p>City
    <input type="text" name="city" id="city" />
  </p>
  <p>Email
    <input type="text" name="email" id="email" />
  </p>
  <p>First Guess
    <input type="text" name="guess1" id="guess1" />
  </p>
  <p>Second Guess
    <input type="text" name="guess2" id="guess2" />
  </p>
  <p>Third Guess
    <input type="text" name="guess3" id="guess3" />
  </p>
  <p>Last Guess Time
    <input type="text" name="modified" id="modified" />
  </p>
  <p>I.P. Adress
    <input type="text" name="ip" id="ip" />
  </p>
  <p>Password
    <input type="text" name="password" id="password" />
  </p-->
  <p>&nbsp;</p>
  <p>Submit
    <input type="submit" name="sendguess" id="sendguess" value="submit" />
  </p>
</form>
</body>
</html> 


and

example02.php
PHP Code:
<?php require_once('formtools/global/api/api.php');

$fields ft_api_init_form_page(7);
ft_api_clear_form_sessions();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>VipContest Thanks</title>
</head>

<body>
Hey, thanks!

</body>
</html> 

Anyone can help?
I cann not add form...
Reply
#6
(Aug 20th, 2012, 12:24 PM)BlogWalker Wrote: Hello,

I have following errors during adding form:

Code:
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/klient.dhosting.pl/logistics/logistics.dkonto.pl/public_html/psml/new/kongres2012/rejestracja/example01.php:1) in /home/klient.dhosting.pl/logistics/logistics.dkonto.pl/public_html/psml/new/kongres2012/rejestracja/formtools/global/api/api.php on line 1585

Warning: Cannot modify header information - headers already sent by (output started at /home/klient.dhosting.pl/logistics/logistics.dkonto.pl/public_html/psml/new/kongres2012/rejestracja/example01.php:1) in /home/klient.dhosting.pl/logistics/logistics.dkonto.pl/public_html/psml/new/kongres2012/rejestracja/formtools/global/api/api.php on line 1586

Warning: Cannot modify header information - headers already sent by (output started at /home/klient.dhosting.pl/logistics/logistics.dkonto.pl/public_html/psml/new/kongres2012/rejestracja/example01.php:1) in /home/klient.dhosting.pl/logistics/logistics.dkonto.pl/public_html/psml/new/kongres2012/rejestracja/formtools/global/api/api.php on line 1587

After clicking submit button additional error showed
Code:
Warning: Cannot modify header information - headers already sent by (output started at /home/klient.dhosting.pl/logistics/logistics.dkonto.pl/public_html/psml/new/kongres2012/rejestracja/example01.php:1) in /home/klient.dhosting.pl/logistics/logistics.dkonto.pl/public_html/psml/new/kongres2012/rejestracja/formtools/global/api/api.php on line 881

I have tested it on complex and simple form:

example01.php
PHP Code:
<?php
require_once("formtools/global/api/api.php");
$g_api_debug true
$fields 
ft_api_init_form_page("""test");
//$fields = ft_api_init_form_page(7, "initialize");
$params = array(
  
"submit_button" => "sendguess",
  
"next_page" => "example02.php",
  
"form_data" => $_POST,
  
"finalize" => true
    
);
ft_api_process_form($params);

?>
 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Vipcontest Guess Form</title>
</head>

<body>
<form name="example01" id="example01" action="<?php echo $_SERVER["PHP_SELF"]?>" method="POST">
  <!--p>id
    <input type="text" name="id" id="id" />
  </p-->
  <p>First Name
    <input type="text" name="fname" id="fname" />
  </p>
  <p>Last Name
    <input type="text" name="lname" id="lname" />
  </p>
  <!--p>City
    <input type="text" name="city" id="city" />
  </p>
  <p>Email
    <input type="text" name="email" id="email" />
  </p>
  <p>First Guess
    <input type="text" name="guess1" id="guess1" />
  </p>
  <p>Second Guess
    <input type="text" name="guess2" id="guess2" />
  </p>
  <p>Third Guess
    <input type="text" name="guess3" id="guess3" />
  </p>
  <p>Last Guess Time
    <input type="text" name="modified" id="modified" />
  </p>
  <p>I.P. Adress
    <input type="text" name="ip" id="ip" />
  </p>
  <p>Password
    <input type="text" name="password" id="password" />
  </p-->
  <p>&nbsp;</p>
  <p>Submit
    <input type="submit" name="sendguess" id="sendguess" value="submit" />
  </p>
</form>
</body>
</html> 


and

example02.php
PHP Code:
<?php require_once('formtools/global/api/api.php');

$fields ft_api_init_form_page(7);
ft_api_clear_form_sessions();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>VipContest Thanks</title>
</head>

<body>
Hey, thanks!

</body>
</html> 

Anyone can help?
I cann not add form...

What's on lines 1585, 1586 and 1587 of the api.php file?
Reply
#7
Hello,

api.php this is internal FormTools file.

Lines 1585, 1586 & 1587:
PHP Code:
session_start();
header("Cache-control: private");
header("Content-Type: text/html; charset=$g_api_header_charset"); 
Reply
#8
Because I seem to run into this a lot. I think Expression Web is randomly adding a BOM to the start of some of my PHP files. To fix, open the file in Notepad++, convert to UTF8 without BOM and save the file. Refresh the file in your publishing folder and publish up to server. This does work, when done correctly, I promise. I just spent another hour on this.

Further reading: http://board.phpbuilder.com/showthread.p...eady-sent/
Not a FT employee, just a FT user lending a hand. If I've been helpful, please rate.

[Image: giraffe_long_85.gif]
Reply
#9
Do not change the header's information because it is creating false. If you will change the header then pages cannot send the data from page 1 to 2 on https://www.bestdissertation.com/buy-term-paper.html so must try to put only one header and modify the information only on the pages.
Reply
#10
[Image: preview1-2-1536x1536.jpg]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)