Cannot Edit Page
PermalinkI added a HTML block to embed a mailchimp subscription popup to my header. However, now I cannot edit the page, the blocks or add content.
I reverted back the page to a known working version and cleared cache but nothing has worked.
I cannot even click on the offending html block to delete it, it is like it is not even there.
Can anyone help? Sorry if this has been posted before, I'm not very technical and could not find anything relevant. Below is the script I added.
Thanks
Dawn
<script type="text/javascript" src="//s3.amazonaws.com/downloads.mailchimp.com/js/signup-forms/popup/embed.js" data-dojo-config="usePlainJson: true, isDebug: false"></script><script type="text/javascript">require(["mojo/signup-forms/Loader"], function(L) { L.start({"baseUrl":"mc.us16.list-manage.com","uuid":"28f7962a048e78d22484204a7","lid":"788672cf52"}) })</script>
I am not sure if there is a proper way to fix this, but it can be done a few others ways.
Editing the database:
- search the database for the HTML block table (btContentLocal)
- look for the row that contains the code causing errors
- delete the row
- after deleting the row, you can delete the HTML block
Comment out the display of the code in the block:
- look for the html folder
concrete\blocks\html
- in the html folder, open view.php
concrete\blocks\html\view.php
- in view.php look for this code:
<?php echo $content; ?>
- when you find that code, add a PHP comment (two forward slashes) before the word "echo"
<?php // echo $content; ?>
- save the file after adding the comment
- delete the HTML block
- remove the PHP comment
- save the file after removing the comment
However, I might also say, I have no issues embedding mailchimp forms in my WP site :(.
Just thought I'd tag my name on this one.
U r deleting and approving the right page versions?
There r a couple of chimp add-ons u could try.
https://www.concrete5.org/marketplace/addons/mailchimp-integration...
https://www.concrete5.org/marketplace/addons/mailchimp-subscribe...