The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
|
Can't configure FORM EMAIL FIELD after update to 2.0.0 - 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: Can't configure FORM EMAIL FIELD after update to 2.0.0 (/showthread.php?tid=664) |
Can't configure FORM EMAIL FIELD after update to 2.0.0 - mrGarvin - Apr 22nd, 2010 Hi. I'm having an issue with the creation and editing of FORM EMAIL FIELD CONFIGURATION after I upgraded to core version 2.0.0 and API version 1.0.1 Every time I try to point out the name and emailfields I get the error "Sorry, we could not update the email fields." At first I even got a php-error in line with: "Call to undefined function ft_update_form_email_settings() in line... page_email_settings.php"-something. But I got rid of that by replacing the admin-files with fresh ones. Now I get the "Sorry..." message instead. I tried to hard code my database through PhpMyAdmin and setting the emailfields by hand. This works well in one way, they are selected in the dropdowns on the configuration page, but I can not choose the submitters as recipients of my emails when I create a new message. I can only see the administrator and the clients listed there. Any suggestions? //Peter Häggstrand, Sweden RE: Can't configure FORM EMAIL FIELD after update to 2.0.0 - Ben - Apr 24th, 2010 Hey Peter! How's it going? I didn't know you were mrGarvin. The forums lend themselves to anonymity. Regarding your problem, it actually sounds relatively serious... My hunch is that something went wrong with the upgrade: you shouldn't have had to re-write those admin files, so if something went wrong that required updating the files, we may have to do a little manual surgery on the database as well. Since you have phpMyAdmin access, could you confirm the structure of the following tables? These were the ones that were updated in the most recent release. (ft_)email_template_recipients (ft_)email_templates (ft_)form_email_fields (ft_)forms Here's what they're supposed to have, column-wise. (ignore the PHP - I just copied this from /install/files/sql.php): PHP Code: $g_sql[] = "CREATE TABLE %PREFIX%email_template_recipients ( - Ben RE: Can't configure FORM EMAIL FIELD after update to 2.0.0 - mrGarvin - Apr 26th, 2010 Hi Ben! Yes, long time no "see"... Doing fine here in Sweden. Have been busy trying to learn the universitys (http://lnu.se) new publishing system and have now gone back to FormTools since our system SUCKS at handling forms... As the rebel I am, I have gone outside our system and placed my forms on a different server with your beautiful system on it :-) I hope everything's alright with you aswell and that you're able to continue your work with FormTools for YEARS to come :-) Over to the problem... YES!!! That's it! I somehow missed out on the fact that I had to update the tables as well. The old table had a reference to a field called "user" instead of the new "Form_email_field" and also lacked the rows with from_form_email_id and reply_to_form_email_id. And I didn't have the table "ft_form_email_fields" Works like a charm now. Many thanks! //Peter RE: Can't configure FORM EMAIL FIELD after update to 2.0.0 - Ben - Apr 27th, 2010 Nice! Glad that fixed it - and good to hear you're using it on that site. Hope it doesn't ruffle too many feathers. Yeah, things are fine here. Busy, but good! I'm pretty excited about the Form Builder component that I'm working on. It's really remarkably powerful; I hope it'll open up Form Tools to a lot more people. Anyway, glad it's working okay now. Speak soon! Ben |