Concrete5.7 - How to re-install deleted system block?
Is there any way to re-install a deleted system block? Thank you.
If you deleted the block type from the database you can restore it by adding it again in your database manager (like PhpMyAdmin). Make sure you use the right primary key.
I've deleted a block type. What exactly do I have to do in the database? Where and how can I add it in there? Thank you.
Check the BlockTypes table in your database and check if the record with btID 5 is present. If not, execute the sql query below in your database manager. Also check if you have the same version and same database table structure before executing the query. As far as I can see, Concrete does not use foreign keys so everything should be working again if you restore the block type.
INSERT INTO `BlockTypes` (`btID`, `btHandle`, `btName`, `btDescription`, `btCopyWhenPropagate`, `btIncludeAll`, `btIsInternal`, `btSupportsInlineAdd`, `btSupportsInlineEdit`, `btIgnorePageThemeGridFrameworkContainer`, `btDisplayOrder`, `btInterfaceWidth`, `btInterfaceHeight`, `pkgID`) VALUES (5, 'core_conversation', 'Conversation', 'Displays conversations on a page.', 1, 0, 0, 0, 0, 0, 22, 400, 400, 0);
I'll try to do that right now.
I notice I still have old conversations in the Conversations section but they are not displayed in the conversation block. Is there any way to retrieve them or add them to the database?
- Conversations are stored in the 'Conversations table' in your database.
- The corresponding messages are stored in the 'ConversationMessages' table.
- The conversation blocks are stored in the 'btCoreConversation' table (the column 'cnvID' is short for 'conversation id' and refers to the id of the conversation in the 'Conversations' table).
The conversations still seem to be there, judging from your response but it appears the block no longer refers to the conversation.
What you could do is look for the block in the 'btCoreConversation' table base on the the block's id which is stored in the 'bID' column. For this you will need to know the id (bID) of the conversation block. To get this id: in edit mode, click on the block (context menu appears), hover over the 'edit-link' and look for &bID=XXX in the url of the link (where XXX is a number). This is the id (bID) of your block. Now look in in the 'btCoreConversation' table in the column 'bID' for this id. There should be a record. Check this record for the 'cnvID' column and check if it contains the id of the corresponding conversation ('Conversations' table, also 'cnvID' column). If it's all there, something else is broken. But first check this. Also empty you cache first before doing anything. Cache is often a cause for stuff not working or showing up.