Cannot Edit Page
Permalink
Hello,
I 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 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>
Thank you Steevb, I'll give this a try!
So I went back as far as I could (May) in versions, approved the "Live" one and still no luck. Do you think there is anything else I can do? Thanks
So, in the end I went into cpanel, header.php and changed the name of the "header right" and that seems to have worked. But if anyone knows, I'd still like to know how I could have fixed it properly. I.e. removed html block that I had added the bad code to. :) Thanks!
Hi dajehle,
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:
- when you find that code, add a PHP comment (two forward slashes) before the word "echo"
- save the file after adding the comment
- delete the HTML block
- remove the PHP comment
- save the file after removing the comment
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
Thank you MrKDilkington :)
I've had nothing but problems with Mailchimp embedded forms now that we have decided to go all in with Mailchimp for lists and email communication. So far I have had no success adding any mailchimp forms using the html block. So, you aren't the only one.
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.
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...