The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
|
![]() |
[SOLVED] Session issues starting out with API - Printable Version +- Form Tools (https://forums.formtools.org) +-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1) +--- Forum: API (https://forums.formtools.org/forumdisplay.php?fid=17) +--- Thread: [SOLVED] Session issues starting out with API (/showthread.php?tid=260) |
[SOLVED] Session issues starting out with API - msaz87 - Aug 24th, 2009 Hey all, I'm just starting out trying to use the API and have run into a few problems... I've gone step-by-step through the tutorial of setting up a simple one-page API form and gotten the test submission in, but afterwards I get the following on the page containing the form: PHP Code: Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/USER/public_html/test/test.php:2) in /home/USER/public_html/my-path-to-FT/global/api/api.php on line 1537 When I submit that form, it remains on the same page, but throws this at me: PHP Code: Warning: Cannot modify header information - headers already sent by (output started at /home/USER/public_html/test/test.php:2) in /home/USER/public_html/my-path-to-FT/global/api/api.php on line 861 If I refresh that same page and try again (without first going to the thanks page and clearing the sessions), I get error code 302 and the first section of code above again. I'm pretty clueless as to what any of it means... if anyone can help point me in the right direction, I'd greatly appreciate it. Thanks! RE: Session issues starting out with API - msaz87 - Aug 24th, 2009 Nevermind... I accidentally put the php within the <html> tags... Whoops! |