Nov 20th, 2011, 3:39 PM
(Nov 12th, 2011, 12:17 PM)filch Wrote:(Nov 12th, 2011, 11:56 AM)Ben Wrote: Very curious! There's definitely something strange going on.
First off, why are you calling ft_api_start_sessions() after the ft_api_init_form_page() call? The second function will automatically set up sessions, so the second one may overwrite the first and lose
Truthfully I don't remember as this page is from an older installation now being used with an updated FT. We might have been trying to print out some values being passed or perhaps trying to get rid of all the null dB entries. Not really are Ben but I know this was working. And no, I have not modified the API
Cheers
Dave
whatever's already set. It shouldn't be necessary and could only cause problems.
Digging a bit deeper in the code, I see that the 500 error is thrown in the ft_api_create_blank_submission() function, which is called by the ft_api_init_form_page() function. So for some reason, the following line is failing. It's saying that the form ID of 15 doesn't exist.
Code:if (!ft_check_form_exists($form_id))
Have you modified the API code at all?
Truthfully I don't remember as this page is from an older installation now being used with an updated FT. We might have been trying to print out some values being passed or perhaps trying to get rid of all the null dB entries. Not really are Ben but I know this was working. And no, I have not modified the API
Cheers
Dave