The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
|
Missing admin account - 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: Missing admin account (/showthread.php?tid=1623) Pages:
1
2
|
Missing admin account - filch - Sep 14th, 2011 Ben or whomever, For some reason, I have a formtools installation that is missing an admin account. Is there a way I can add this after the fact without losing any client data of configuration? Dave RE: Missing admin account - Ben - Sep 14th, 2011 Hey Dave, Weird! Yeah, you could add it in manually by adding a record to the [ft_]accounts table with an account_id of 1. For that, you'd need some sort of DB access tool like phpMyAdmin. You might want to look at another of your installations and see how that ID is configured, then manually copy the settings over. For the password, either copy over an existing record's password and then change it when you log in, or use this script: http://docs.formtools.org/encrypt.php - Ben RE: Missing admin account - filch - Sep 14th, 2011 (Sep 14th, 2011, 1:54 PM)Ben Wrote: Hey Dave, Yeah I will try that but I realized there was something a bit weird about all this so I uploaded the latest and then used the same dB but with a different prefix. All seemed well until I put through my first form submission and I got the error shown in the attached image. I really do not know why I am getting so much grief out of any install I do of Formtools. It is crazy! Seems like nothing ever totally works. Dave RE: Missing admin account - filch - Sep 15th, 2011 (Sep 14th, 2011, 2:31 PM)filch Wrote:(Sep 14th, 2011, 1:54 PM)Ben Wrote: Hey Dave, Well, I never managed a fix for the error above but what I did was manually add the admin account back in to the tables with the ft_ prefix, change my config.php back to using the ft_ prefix and the error went away. I suspect it must have been an incomplete install because when I logged into FT admin using the original tables, I received a Formtools updated to 2.12. So, who knows but it is working now. However, on one of the forms I sam trying to re-config, I am now receiving this error: The "../../global/smarty/messages.tpl" template could not be located at the following locations: /home/xxxx/public_html/admin/formtools/themes/default/../../global/smarty/messages.tpl and /home/xxxx/public_html/admin/formtools/themes/default/../../global/smarty/messages.tpl. I have had this error before on older installs but the new install does not seem to have this file. Can I just upload this file from an older version? Dave RE: Missing admin account - Ben - Sep 16th, 2011 Hey Dave, Try updating to version 1.1.4 of the API. That was a problem with 1.1.3 (and maybe earlier versions). 1.1.4 should fix it, I think. http://docs.formtools.org/api/ - Ben RE: Missing admin account - filch - Sep 16th, 2011 (Sep 16th, 2011, 11:24 AM)Ben Wrote: Hey Dave, I copied the file over from 2.06. Is there a difference? Seems to work. Dave RE: Missing admin account - Ben - Sep 19th, 2011 Nope! That should work fine. There weren't any changes to the user accounts between those versions. I wonder how the account got deleted in the first place, though? - Ben RE: Missing admin account - filch - Sep 20th, 2011 (Sep 19th, 2011, 10:32 AM)Ben Wrote: Nope! That should work fine. There weren't any changes to the user accounts between those versions. I'm not sure really. We move like 75 sites to a new server and anything cold have happened. .... like the following: under what circumstances would formtools show a file uploading, but not actually do it? I have verified the path and permissions are correct to the upload folder but the database shows no upload, nor do the emails that are sent out? This is an old version of FT ( 2.0.3 ) but can't update it right now as the client has something going on. Hence the urgency with this upload problem. Cheers Ben. Dave RE: Missing admin account - Ben - Sep 20th, 2011 Hi Dave, Interesting one... I'm not too sure. Does the file upload work (i.e. the file actually get uploaded all the way) from within the Form Tools UI? Or does this problem just occur in your form? - Ben RE: Missing admin account - filch - Sep 20th, 2011 (Sep 20th, 2011, 2:10 PM)Ben Wrote: Hi Dave, I can upload the file from within the FT admin page but, from within the form, I can see the browser moving through the percentages as it is supposedly uploading but it never does. Crazy! Dave |