Core FORM Block Gone, but can't get it back
Permalink
I searched but wasn't able to find an answer to this and hoping someone can assist.
I was having problems with the "Form" block for the core add ins. I thought, heck just delete it and reinstall it (the block that is). Well deleting worked fine, but then it doesn't show up anywhere to install and it is not something listed in the marketplace to add either.
Any idea how I can get this block back in the list of available blocks? I checked the directory and the files are still in the block folder in the Concrete folder.
Thanks for your help!
I was having problems with the "Form" block for the core add ins. I thought, heck just delete it and reinstall it (the block that is). Well deleting worked fine, but then it doesn't show up anywhere to install and it is not something listed in the marketplace to add either.
Any idea how I can get this block back in the list of available blocks? I checked the directory and the files are still in the block folder in the Concrete folder.
Thanks for your help!
I looked through the database thinking maybe I could find it there, but I only see the other packages (e.g., ones added from the marketplace).
My forms and data I created with them seem to still be there, it is just that this block type is no longer appearing in my available functionality.
Anyone?
My forms and data I created with them seem to still be there, it is just that this block type is no longer appearing in my available functionality.
Anyone?
update the /concrete directory with the one you find in the package.
you shouldn't be making changes in there anyway, if you need to edit somethign in there make the file a level up in your main directory space and it will override:
/blocks/file
takes precedence over
/concrete/blocks/file
you shouldn't be making changes in there anyway, if you need to edit somethign in there make the file a level up in your main directory space and it will override:
/blocks/file
takes precedence over
/concrete/blocks/file
Thanks for the reply!
Okay, I overwrote the contents in the concrete directory (the form block was there before I did and after) and then logged out and back into the dashboard.
When I go to the Add Functionality section I don't see Form present as an option, nor do I see it when I go to add a block.
(Basically at the same place as before).
Is their a field in the database or something that I should change to switch it back on? The files are there, but it just doesn't appear.
Other Ideas?
Okay, I overwrote the contents in the concrete directory (the form block was there before I did and after) and then logged out and back into the dashboard.
When I go to the Add Functionality section I don't see Form present as an option, nor do I see it when I go to add a block.
(Basically at the same place as before).
Is their a field in the database or something that I should change to switch it back on? The files are there, but it just doesn't appear.
Other Ideas?
Try running this SQL query.
This will fix your problem, however you've likely lost all your previous forms at this point, so restoring from a backup might be smarter.
insert into BlockTypes (btHandle, btName, btDescription, btActiveWhenAdded, btInterfaceWidth, btInterfaceHeight) values ('form', 'Form', 'Build simple forms and surveys.', 1, 420, 430);
This will fix your problem, however you've likely lost all your previous forms at this point, so restoring from a backup might be smarter.
insert into BlockTypes (btHandle, btName, btDescription, btActiveWhenAdded, btInterfaceWidth, btInterfaceHeight) values ('form', 'Form', 'Build simple forms and surveys.', 1, 420, 430);
Well the good news is that the query did the trick. THANK YOU!
The bad news is that my original problem still seems to be present, but I've discovered a few things more.
1) When I do NOT have the email notification turned on it works fine.
2) When I turn on the email notification and used my personal email it worked fine (pauls@studio5d.com)
3) When I tried one of my customer email's (which is just slightly longer in length) I get the following error.
Ever seen this or have an idea why this is happening?
Fatal error: Uncaught exception 'Exception' with message 'Unable to send mail' in /var/www/html/concrete/helpers/mail.php:183 Stack trace: #0 /var/www/html/concrete/blocks/form/controller.php(329): MailHelper->sendMail() #1 /var/www/html/concrete/models/block.php(262): FormBlockController->action_submit_form() #2 /var/www/html/concrete/startup/process.php(199): Block->passThruBlock(Array, Array) #3 /var/www/html/concrete/dispatcher.php(204): require('/var/www/html/c...') #4 /var/www/html/index.php(2): require('/var/www/html/c...') #5 {main} thrown in /var/www/html/concrete/helpers/mail.php on line 183
The bad news is that my original problem still seems to be present, but I've discovered a few things more.
1) When I do NOT have the email notification turned on it works fine.
2) When I turn on the email notification and used my personal email it worked fine (pauls@studio5d.com)
3) When I tried one of my customer email's (which is just slightly longer in length) I get the following error.
Ever seen this or have an idea why this is happening?
Fatal error: Uncaught exception 'Exception' with message 'Unable to send mail' in /var/www/html/concrete/helpers/mail.php:183 Stack trace: #0 /var/www/html/concrete/blocks/form/controller.php(329): MailHelper->sendMail() #1 /var/www/html/concrete/models/block.php(262): FormBlockController->action_submit_form() #2 /var/www/html/concrete/startup/process.php(199): Block->passThruBlock(Array, Array) #3 /var/www/html/concrete/dispatcher.php(204): require('/var/www/html/c...') #4 /var/www/html/index.php(2): require('/var/www/html/c...') #5 {main} thrown in /var/www/html/concrete/helpers/mail.php on line 183
i get this EXACT error when i try to add a longer email address as well.
Fatal error: Uncaught exception 'Exception' with message 'Unable to send
mail' in /var/www/html/concrete/helpers/mail.php:183 Stack trace: #0
/var/www/html/concrete/blocks/form/controller.php(329):
MailHelper->sendMail() #1 /var/www/html/concrete/models/block.php(262):
FormBlockController->action_submit_form() #2
/var/www/html/concrete/startup/process.php(199):
Block->passThruBlock(Array, Array) #3
/var/www/html/concrete/dispatcher.php(204):
require('/var/www/html/c...') #4 /var/www/html/index.php(2):
require('/var/www/html/c...') #5 {main} thrown in
/var/www/html/concrete/helpers/mail.php on line 183