Skip to main content

Blogger Layout error - "An error occurred. please refresh the page and try again" - How to fix?



 "An error occurred. please refresh the page and try again" - Blogger doesn't allows saving of rearrangement widgets in the Layout page - how to fix this?

Blogger's using blogspot blog tool might have come across the error message "An error occurred. please refresh the page and try again" while trying to save the blogs layout after a rearrangement of the blog widgets. ie bloggers may not be able to save the changes made on their blogspot blog's layout.


I also had a similar experience. Usually this error happens after you edit the Blog's HTML to display some widgets only on mobile version of the website or you might have tried to remove the attribution / copyright widget.


Here I am sharing what I did to prevent this error.

1. Login to the blogger website www.blogger.com

2. Go to your blog's admin panel

3. Click on the Template tab on the menu

4. Click on EDIT HTML button to open the HTML code of your blog on the Editor

5. If you are are not confident on editing using blogger's HTML editor then copy the HTML code to Your favourite HTML editor

6. Save a copy of HTML as a backup code

7. On the other copy you can do modification for applying to your live blog.

8. Find the occurence of " mobile='only' " text in the code .

mobile='only' attribute is added to widgets which are intended to display only on mobile devices. Once this is added and the code is saved using the blogger's HTML editor, then that widget will not be displayed on the LAYOUT page of the blog. So when you try to rearrange widgets and try to save the Layout, the hidden widgets will prevent it from saving. So to fix the issue you have to remove all the occurences of " mobile='only' " attribute in the widget definitions.

In my blog's code there was an occurence of " mobile='only' "

<b:widget id='HTML1' locked='false' mobile='only' title='CROZOOMMobAd' type='HTML'>
<b:includable id='main'>
<!-- only display title if it's non-empty
<b:if cond='data:title != ""'>
<h2 class='title'><data:title/></h2>
</b:if>-->
<b:if cond='data:blog.pageType == "index"'>
<div class='widget-content'>
<data:content/>
</div>
</b:if>

<b:include name='quickedit'/>
</b:includable>
</b:widget>

9. So I removed the " mobile='only' ". Since this widget is to be displayed on mobile version of the website, I used another blogger function data:blog.isMobile. Modified code is given below:


<b:widget id='HTML1' locked='false' title='CROZOOMMobAd' type='HTML'>
<b:includable id='main'>
<b:if cond='data:blog.isMobile'>
<!-- only display title if it's non-empty
<b:if cond='data:title != ""'>
<h2 class='title'><data:title/></h2>
</b:if>-->

<b:if cond='data:blog.pageType == "index"'>
<div class='widget-content'>
<data:content/>
</div>
</b:if>
</b:if>
<b:include name='quickedit'/>
</b:includable>
</b:widget>


10. After this changes, I pasted the code to blogger's HTML Template editor and saved it.

11. Then I clicked on the "LAYOUT" tab in the menu

12. On the Layout page, added the widget rearrangements and saved.

This time no error appeared and everything seems to be fixed...

Try it and post your comments...

Popular posts from this blog

Sachin Tendulkar's emotional farewell Speech at Wankhede Stadium, Mumbai - Full Text and Video

Full Text and Video of Sachin Tendulkar's emotional farewell Speech on Nov 16, 2014 On November 16, 2013 - Sachin Ramesh Tendulkar played his last international cricket match against West-Indies at the at Wankhede Stadium, Mumbai. After the match he gave an emotional farewell speech. No one would be able forget the speech. The eyes of the gathered people were tearfull. Through out the speech Sachin thanked each and everyone who supported and encouraged him to build up his glorius career which spanned 24 years.

How to loop through the items in a select box using Javascript?

Looping through the items in a select box using JS Use the code given below to parse through the options in a select box and alert the Text and Value of each options. you can alter the function as per your need. sample code is given below: <form> <select id="test" name="test"> <option value="First Value" >First Text</option> <option value="Second Value" >Second Text</option> <option value="Third Value" >Third Text</option> <option value="Fourth Value" >Fourth Text</option> <option value="Fifth Value" >Fifth Text</option> </select> <input type="button" value="Check" onclick="loopSelectBox('test')" > </form> <script> function loopSelectBox(selectBoxId){ var obj=document.getElementById(selectBoxId); for(i=0; i < obj.options.length ;i++){ alert("Value :...

Autobiography by Cricket legend Sachin Tendulkar "Sachin Tendulkar - Playing it My Way : My Autobiography"

Autobiography by Cricket legend Sachin Tendulkar Cricket batting legend Sachin Ramesh Tendulkar's  autobiography was released on November 5, 2014 in a high profile launch function in Mumbai. . Earlier  on his Twitter page Sachin has announced the release date of his Autobiography " Sachin Tendulkar - Playing it My Way : My Autobiography "   as November 6th 2014 , but the book was released a day earlier. It took three years to write this book which he says as the Second innings of his life. Sachin Ramesh Tendulkar, the all time Genius of World Cricket was born on April 24, 1973 at Bombay (now Mumbai) in Maharashtra. He hold the record for scoring most runs and hundreds in Tests and ODIs. He scored a total of more than 34000 runs from One day Internationals (ODI's) and tests. He was part of the World cup winning team of 2011. He was a great all rounder. His  debut match was against    Pakistan  at Karachi during Nov 15-20, 1989. He played h...


Urgent Openings for PHP trainees, Andriod / IOS developers and PHP developers in Kochi Trivandrum Calicut and Bangalore. Please Send Your updated resumes to recruit.vo@gmail.com   Read more »
Member
Search This Blog