Block Javascript stuck in HEAD after block's deleted?
Permalink 1 user found helpful
Hey all, I'm experiencing an issue with the javascript that is inserted by a block not being removed from the page after the block has been deleted.
In this case, the Google Map block. I have deleted the block from my page and the page is still loading the block's javascript
I've cleared the cache, refreshed my browsers cache and tried adding and deleting the block a second time with no luck. The page in question is:http://www.customtouchinteriors.net/contact/...
As you can see there is no block on the page that requires this javascript and I can assure the script tag is not in my header.php file.
Any ideas how to clear this script tag from displaying? or should this be posted in the Google Maps block support page?
In this case, the Google Map block. I have deleted the block from my page and the page is still loading the block's javascript
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=true"></script>
I've cleared the cache, refreshed my browsers cache and tried adding and deleting the block a second time with no luck. The page in question is:http://www.customtouchinteriors.net/contact/...
As you can see there is no block on the page that requires this javascript and I can assure the script tag is not in my header.php file.
Any ideas how to clear this script tag from displaying? or should this be posted in the Google Maps block support page?
did not use the layouts. I did change some area names but that was before loading the block... I will check, good idea.
Update: Is there a way to determine all of the areas that a particular page is referencing content for?
Update: Is there a way to determine all of the areas that a particular page is referencing content for?
I think the free "Cobble" addon in the marketplace might do this.
Great! thanks Jordan. Cobble is exactly what I needed! It shows me all of the blocks that have been orphaned in this case a total of 89 blocks!!! I remember what happened, I first had custom area names but then realized they would not be compatible with other themes so I change the names back to the concrete5 conventions...
Now, I'm not very experienced in writing MySQL queries so I wanted to ask if you or someone else here would know the best way to delete all of these orphaned blocks out of the database? Cobble is cool in that it lets me export the query results as a CSV. Is there a way you can export the csv and then import the csv into a custom database query to delete them all in one swoop?
*BTW Andrew is right, the google maps block is showing up as an orphaned block on the contact page. I will manually add the blocks area back to the template so that I can delete it but I'm sure that there has to be a faster way to delete all of these orphans and this would be a great resource for anyone in a similar situation. Thx
Now, I'm not very experienced in writing MySQL queries so I wanted to ask if you or someone else here would know the best way to delete all of these orphaned blocks out of the database? Cobble is cool in that it lets me export the query results as a CSV. Is there a way you can export the csv and then import the csv into a custom database query to delete them all in one swoop?
*BTW Andrew is right, the google maps block is showing up as an orphaned block on the contact page. I will manually add the blocks area back to the template so that I can delete it but I'm sure that there has to be a faster way to delete all of these orphans and this would be a great resource for anyone in a similar situation. Thx
Also, were you using layouts or anything like that when you added your google maps block?