The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
|
Error "../../global/smarty/messages.tpl" - 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: Error "../../global/smarty/messages.tpl" (/showthread.php?tid=1612) |
Error "../../global/smarty/messages.tpl" - aningbo - Sep 9th, 2011 I have the latest version downloaded. Tried downloading the api file too but i guess its the same version. I've spent over 10+ hours on this and still stuck with it! Every time i try to use any api, i get this error shown below. I have downloaded the demo forms and it works until i add some api function: Code: The "[b]../../global/smarty/messages.tpl[/b]" template could not be located at the following locations: [b]/Applications/XAMPP/xamppfiles/htdocs/formtools/themes/default/../../global/smarty/messages.tpl[/b] and [b]/Applications/XAMPP/xamppfiles/htdocs/formtools/themes/default/../../global/smarty/messages.tpl.[/b] I also realized that there's no messages.tpl under this folder ../global/smarty/. Is this some bug? I need this fixed badly since i can't get the "api_check_submission_is_unique" function. Please have a look at the earliest. I've already missed my deadline Here's the form i'm currently working on if you would like to have a look: Code: <?php RE: Error "../../global/smarty/messages.tpl" - Ben - Sep 10th, 2011 Hi aningbo, I'll look at this today. It's possible it's a bug - I *did* change the way the messages are displayed in the most recent version of the API. Keep you posted. - Ben RE: Error "../../global/smarty/messages.tpl" - aningbo - Sep 10th, 2011 You are a savior. I'll look forward to it RE: Error "../../global/smarty/messages.tpl" - Ben - Sep 11th, 2011 Hi Aningbo, Sorry for the wait, releasing 2.1.2 took longer than anticipated. So I'm just testing it out locally and didn't have any problems - but that doesn't mean there isn't a bug. Just so I'm clear: so you were able to set up the form and get it submitting to Form Tools correctly, right? I assume this because the top line $fields = ft_api_init_form_page(3); isn't initializing or sending along the test submission. Did it just start occurring after you added the ft_api_check_submission_is_unique() function call? - Ben RE: Error "../../global/smarty/messages.tpl" - aningbo - Sep 11th, 2011 Problem solved after converting: Code: $criteria = array("email" => $_POST["email"]); Code: $criteria = array("col_2" => $_POST["email"]); col_x was used in the database by default. Thank You Ben. Really appreciate it RE: Error "../../global/smarty/messages.tpl" - Ben - Sep 13th, 2011 No problem - and thanks for the bug report! I'll be releasing a new version of the API tomorrow that properly displays the error code - not the ugly error you spotted. - Ben RE: Error "../../global/smarty/messages.tpl" - mrGarvin - Sep 21st, 2011 Ah, thanks for this solution aningbo! Been having the same issue today with my form using ft_api_check_submission_is_unique() RE: Error "../../global/smarty/messages.tpl" - Ben - Sep 22nd, 2011 Hey guys, And in case anyone reading this thread missed it, be sure to upgrade to API 1.1.4 - that shows a much more elegant error message that explicitly tells you what to fix. All the best - Ben |