Blogger is constantly improving the way that it works in order to give us a better service. This is great and it means that users can get the best performance out of their Blogger blogs. Unfortunately it does cause problems for those of us who choose to make our blogs a little more individual by using third party templates.

Some of these problems include the inability to save the template once it is uploaded because the dreaded and totally unfathomable BX error window pops up and leaves a message that no one can understand.

Sometimes the template starts to save and you confirm that you want to replace the widgets in the list. Then along comes the message:

The new widget id "Recent-Posts-Widget2" is invalid for type: Feed
or
The new widget id "ads2" is invalid for type: HTML
or
The new widget id "search" is invalid for type: HTML

and nothing seems to solve this.

So, let’s look at a cure.

The Invalid For Type Error

First, the invalid for type error. This is caused because template designers like to give their widgets ids which tell you exactly what they are. This used to work and it was a good idea as it told you exactly what the next section of code was for. In the recent past I successfully uploaded a template with ids of this sort. I would not be able to upload this template again without correcting the widget ids.

Before you attempt to upload a new template it is best to open the XML template in a good text editor, preferably with a search function. Search for widget id and check that the widget id matches the type every time.

<b:widget id='Profile1' locked='false' title='About Me' type='Profile'>
or
<b:widget id='Feed2' locked='false' title='Recent Comments' type='Feed'>
or
<b:widget id='HTML11' locked='true' title='Search' type='HTML'>

If it does not match then change it and if there is more than one of a type add a number, with no gap between the id and number. Remember to give each id of the same type a unique number or Blogger will give you another error message that you cannot have two of the type with the same number.

If you successfully uploaded the template before you changed the ids then as you get each "invalid for type" error message you can just use your browsers search/find function to look for the incorrect id and change it to match the type, click save and confirm if asked and hope that no more errors pop up.

I successfully uploaded the Daya Earth template to a test blog after correcting the widget ids in a text editor. I changed nothing else in the template.

Look below for more information on Recent Posts and Recent Comment widgets.

The Dreaded BX Error

If you get the dreaded BX error window you may be able to fix this by opening your template code and increasing the widget id number by one (1) for every id. This has worked quite successfully in the past.

Rather than repeat everything that has already been very well explained by Amanda Fazani I suggest that you read this post on Blogger Buster.

Some people have done this and found that this has not worked. If increasing the numbers again still does not work then a drastic course of action is required.

First make sure that you have downloaded your original template and saved it so that if all else fails you can restore it. Go to Layout>Choose New Template and choose a simple template such as Minima and click Save Template. Then go Layouts>Page Elements and delete every gadget you can by clicking on Edit, then Remove, in the window which opens.

The upload really should work now. If not then try clearing your browsers cache to get rid of any saved pages which may be popping up. Better still close your browser and use CCleaner, which is both free and excellent. After cleaning open up your Dashboard and try uploading again.

If none of the drastic action works then try a nice cup of tea or find a brick wall and beat your head on it.

If you have concerns about losing some of your favourite widgets when changing templates then have a look at another of Amanda Fazani’s articles on transferring your widgets.

Recent Posts and Recent Comments Widgets.

The nice people at Blogger have changed the way that their feeds work. Because of this the Recent Comments and Recent Posts widgets included in most third party templates do not work. We cannot blame the template designers for this as their widgets worked perfectly when they designed the templates.

I had one template (this one in fact) which immediately threw up the Blank Configure Feed Problem as soon as I tried to configure my feeds. This article, which is quite specific to this template, is still the most popular article on the blog as so many have had this problem.

If you have successfully uploaded your new template you will find that the Recent Comments and Recent Posts do not show as they are awaiting your feed URLs. But when you click on Edit for each of the widgets you will get the blank window as shown in The Blank Configure Feed Problem.

There is nothing you can do, not even delete it, as apart from the Help button there is nothing else there.

Add Feed What you need to do is use the Add a Gadget from the appropriate column to add a feed widget for each of the feeds. One for Recent Posts and another for Recent comments.

For Recent Posts enter the following URL, remembering to replace YOURBLOGNAME with your blog’s name.

http://YOURBLOGNAME.blogspot.com/feeds/posts/default

Feed URL

Click Continue then replace whatever pops up in the Title box with Recent Posts.

Recent Posts

Save it then position it where you want it to show then do exactly the same to add your Recent Comments widget. This time the URL must be:

http://YOURBLOGNAME.blogspot.com/feeds/comments/default

As for the original feeds: They are still there but not working. You can only get rid of them by looking for them in the HTML and deleting them. The code for the new feeds is much more compact than the old code so the old code will look like this:

<b:widget id='Feed1' locked='false' title='Recent Posts' type='Feed'>
<b:includable id='main'>
        <b:if cond='data:title'><h2><data:title/></h2></b:if>
        <div class='widget-content'>
            <ul class='comments' expr:id='data:widget.instanceId + &quot;_feedItemListDisplay&quot;'>
                <b:loop values='data:feedData.items' var='i'>
                    <li>
                        <span class='item-title'>
                            <a expr:href='data:i.alternate.href'>
                                <data:i.title/>
                            </a>
                        </span>
                        <b:if cond='data:showItemDate'>
                            <b:if cond='data:i.str_published != &quot;&quot;'>
                                <span class='item-date'>
                                    &#160;-&#160;<data:i.str_published/>
                                </span>
                            </b:if>
                        </b:if>
                        <b:if cond='data:showItemAuthor'>
                            <b:if cond='data:i.author != &quot;&quot;'>
                                <span class='item-author'>
                                    &#160;-&#160;<data:i.author/>
                                </span>
                            </b:if>
                        </b:if>
                    </li>
                </b:loop>
            </ul>
        </div>
    </b:includable>
</b:widget>

Make sure that you remove everything from the opening b:widget tag to the closing /b:widget tag including both tags. The above is for the original Recent Posts, the Recent Comments will look very similar.

Handy tip 1: If, in Layout>Page Elements you place your new widgets directly above each of the old widgets you can use your browser’s search/find to look for recent. You will find the new compact code first and the code to be removed will be directly below it.

Handy tip 2: If you know that your template has the old code delete it in your text editor before uploading the template.

I hope that this post has helped you to overcome your uploading problems.

Subscribe to comments for this post (RSS)  

Bookmark and Share

19 comments

  • WriterA
     

    Thanks Paul for this useful post...I was totally confused about this and your post helped me to solve my confusion quickly and easily. Thanks again!

  • Paul
     

    WriterA,

    Thank you for those kind words.

    The problem with most error messages is that they are written by programmers who understand the inner workings of the program. Unfortunately they are usually incomprehensible to the rest of us. My aim, once I have managed to find the cause of the problem, is to try and help bloggers who are as confused as me.

  • ez
     

    hi!
    i can't understand this one...
    ...check that the widget id matches the type every time....
    matches with one...?

  • Paul
     

    Hello ez,

    Every widget starts with a line like this:
    b:widget id='HTML2' locked='false' title='' type='HTML' between opening and closing brackets: <>
    The last item shows what type of widget it is, such as HTML, AdSense, Followers, Feed or Profile. The first item in the list is the id of the widget. This tells the browser to look for any special instructions on how to display that item and to apply them if they are there. It also allows the browser to display the widget in Layout>Page Elements.

    The id must be the same as the type. If the widget is type="Feed" then the id must also be Feed (id="Feed"). If not you will get the id is invalid for type error message.

    Now, you can only have one instance of each id on a page which is why they are numbered. You will need a different number for each one such as Feed1, Feed2, Feed3 and so on. If you have two widgets with the same ids you will get an error message and you will have to change one of the numbers so that each id is unique.

    I hope this helps to clarify it for you.

  • ShrikantModh
     

    Hello can you help me
    I didn't understand what to change
    I tried but still i get error

    We were unable to save your template
    Please correct the error below, and submit your template again.
    The new widget id "Recent-Comments-Widget" is invalid for type: Feed

    Please tell me exactly
    thanks

  • Paul
     

    ShrikantModh,

    Have a look at the answer to Ez's query, just above yours. You need to change "Recent-Comments-Widget" to "Feed" and give it a unique number such as "Feed3". Make sure that no other feed uses the number you give it.

    Open your template in a text editor, preferably one with a search facility, and find id="Recent-Comments-Widget" then change it. If your template has a Recent Posts widget do the same for that and change its id to Feed plus a number as well, for example "Feed4".

    When you have loaded the template you will find that the feeds will probably not work because Blogger has changed the way that it handles widgets. The next section of the article will help you to solve this.

    I know that the changes that Blogger has made to the way it works have caused problems uploading templates, most of which were written before the changes, but with a little bit of perseverance you can get them to work. I had every problem I have posted about in this blog but I still got it to work. That is why I started posting my solutions to help others.

    I hope that this helps you.

  • 4th &amp; Inches
     

    Could you not just give a template for - destinal.blogspot.com and Business Blue - that works?

  • Paul
     

    4th &Inches,

    Sorry I don't design or supply templates. I am just a blogger who had the same problems as any body else because of Blogger's changes. So I found out how to overcome them and decided to share what I had found.

    What the template designers are up to now I have no idea. But I don't like to complain as they have supplied these templates free, just as Blogger gives us a free blogging platform. So I'm just grateful to them all and if something doesn't work I will try to get it to work for me.

  • Yvettika
     

    I am still having the problem with type error. i went in and changed all of the types to match the ids but got this error:

    The new widget with id "Recent-Comments-Widget" has an invalid type: Recent-Comments-Widget

    I would save it and i would get this error

    Please confirm that the following widgets should be deleted. All the widgets' configuration data will be lost.

    * HTML1
    * HTML2

    and when i would hit save i would get the error above.

    i had already made sure that all they types and ids matched. recent comments

  • Paul
     

    Yvettika,

    It looks to me as if you are trying to change the type to match the id, which is why you are getting the invalid type error message. This is the wrong way round; you need to change the id to match the type.

    So, b:widget id='Recent-Comments-Widget' locked='false' title='Recent Comments' type='Feed' is wrong.

    It needs to be changed to: b:widget id='Feed22' locked='false' title='Recent Comments' type='Feed'. The id must always match the type and the number must not be the same as any other widget already in your template. Every id must be unique.

    As for the next message this is not an error. It is normal when downloading a third party template as these widgets are going to be replaced by widgets in your new template. You have to click the "confirm and save" button or your new template will not be installed. This is quite normal, however you can copy widgets from one template to another if you really want to do so. For help on this I would suggest that you read How I copy widgets from one template to another by Amanda Fazani. This post will also explain why some widgets are deleted when uploading a new template. This does not happen when using standard Blogger templates.

    I hope that this gives you some help.

  • Rizwan Ibrahim
     

    Thanks a lot friend.

    Even though I was frustrated, I tried many times.

    I think that you Should make this Even Simpler for making it understand people!

    Like:

    You Just need to Change the "Widjet Id"

    Eg:
    If the Widjet id Or error you r getting is from Recent Posts.

    Then Go the Recent Posts Widjet Area by Searching.

    Then, Just Change the Widjet id to Something.

    For Eg..

    *b:widget id='Feed11' locked='false' title='Recent Posts' type='Feed'*
    If its of feed.

    Just change the WIDJET ID Part and it'll Work :)

    If its Type = Feed, keep Widjet Id as Feed12 or Feed13 ;)

    And it'll work!

  • Rizwan Ibrahim
     

    And Well,

    TricksTerminal.Blogspot.com

    That is My Blog :-)

  • Paul
     

    Rizwan,

    The reason I have put in more detail is that most of the Recent Posts and Recent Comments widgets supplied with templates no longer work with Blogger. Fixing the widget id will allow you to upload the template but the widgets themselves may not work.

    To get them working you need to replace them with widgets which are now processed on Blogger's own servers.

    Paul

  • Rizwan Ibrahim
     

    yO PauL!

  • Rahul Chaurasia
     

    Very helpful. thanks i uploaded my template successfully.

    http://TechZed.com

  • moviefreak
     

    Thanks and good job, i stumbled upon the business blue template and was unable to update my site, now it works like a charm. http://karunadu.ws

  • Darmawan
     

    Thanks a lot.. it works now

  • Honey
     

    Thanks for these helpful tips!

  • Andy
     

    Thanks a lot. It took a long time to find out how to just get a list of recent posts, but your post here is spot on.

Post a Comment

Top of Page

Delivered by FeedBurner


Search Amazon UK

Search Amazon USA


Recent Posts

Recent Comments


Popular Posts