code géocounteur
Permalink
Hello, I installed a geo counter to try and I no longer have access to the code ... I can no longer modify the block ...
http://fabriqueamusique.fr/
http://fabriqueamusique.fr/
I just noticed your link to the site. So it's obviously placed in a global area (see second link in my answer).
I took a previous version deleted the other but no change ...
You need to delete this block. The script is causing problem.
1) Can you delete in the stack section?
2) Can you go back to a version further where everything worked correct?
1) Can you delete in the stack section?
2) Can you go back to a version further where everything worked correct?
I can not access the block.
I can go back to a previous version but the code remains.
I can go back to a previous version but the code remains.
Are you comfortable with searching in the database directly?
The you could:
1) Backup your concrete5 database
2) Search for the content of your html block and delete the content in the datafield
3) Then you can edit your site again and if you still need this code use the mentioned block to add your script safely
The you could:
1) Backup your concrete5 database
2) Search for the content of your html block and delete the content in the datafield
3) Then you can edit your site again and if you still need this code use the mentioned block to add your script safely
So this problem is solved. I could have a look at the database and this was the solution:
First I looked the source code of the website for the code that causes the problem in editmode. The code was inserted in a HTML block on the site in the footer. So every page had that problem.
I searched in the database for that code (took a small unique part of it) and found it in the table "btContentLocal". I deleted the content of the field respectively putted a html-comment in it.
After that, I could clear the cache on that site. After that the problem was resolved. The empty block could be removed from the site.
Hope this helps other persons with external code snippets…
typoman76
First I looked the source code of the website for the code that causes the problem in editmode. The code was inserted in a HTML block on the site in the footer. So every page had that problem.
I searched in the database for that code (took a small unique part of it) and found it in the table "btContentLocal". I deleted the content of the field respectively putted a html-comment in it.
After that, I could clear the cache on that site. After that the problem was resolved. The empty block could be removed from the site.
Hope this helps other persons with external code snippets…
typoman76
By what you described the code was not inserted in an HTML block, it was inserted in a content block, which is definitely not meant to be used for scripts of any kind.
Good job solving the issue
Good job solving the issue
Merci typoman !!!
The problem is solved.
The problem is solved.
This template won't solve the problem, but it will limit the impact of mistakes in pasting code.
https://www.concrete5.org/marketplace/addons/safe-html...
https://www.concrete5.org/marketplace/addons/safe-html...
Do I understand you correctly: You installed this 'geocode-something' by inserting some code in a html-block?
So the block has probably some javascript in it that breaks the site now in edit-mode. This happened to me recently. So i could redo this by going a version back on the page i inserted my code. See the cog-icon and then versions. Read more here:
https://documentation.concrete5.org/editors/in-page-editing/the-tool...
If this block appears on every page. You have this probably in a global area. There is also a versioning and you can go one version back. See more about this here:
https://documentation.concrete5.org/editors/dashboard/stacks-and-blo...
You better use a special block for adding such code. Mesuva did a package for that. So the code does not run and break your site in editmode:
http://www.concrete5.org/marketplace/addons/script-output...
best regards,
typoman76