Widget wont display after upgrade.

Dec 29, 2015 at 10:48 PM
Edited Dec 29, 2015 at 11:08 PM
After upgrading to 3.2.0.1 my website will not display the search widget, displaying

Widget Search not found.
Object reference not set to an instance of an object.X


Where the X is the button to close or remove the widget except it wont remove it.

I use the Simple Blog theme on my site, I havent spotted any other problems yet, not a web developer so could do with some help. Thanks!
Coordinator
Dec 30, 2015 at 4:47 AM
Assuming you using default XML provider, check this directory: App_Data/datastore/widgets

It should have XML files for any widget zones (collection of widgets) and widget settings if needed.
For example, standard release has be_WIDGET_ZONE.xml with code below. If your search widget somehow got corrupted, you should be able to remove it by deleting line #4 and then add new search widget.
<?xml version="1.0" encoding="utf-8"?>
<widgets>
  <widget id="42fcbe7c-2c9c-440a-bad9-65a94472fccc" title="Administration" showTitle="True">Administration</widget>
  <widget id="fb38ecdd-5813-4d10-8c5f-8d901c7c731e" title="Search" showTitle="False">Search</widget>
  <widget id="e02e41df-35d8-4572-a862-0dd0fb2fa504" title="Calendar" showTitle="True">Calendar</widget>
  <widget id="dd0a6215-8f33-441e-83c8-9f2ae0abae27" title="Category list" showTitle="True">Category list</widget>
  <widget id="8d2f6869-e27d-4585-bada-a9cc84f0978a" title="Tag cloud" showTitle="True">Tag cloud</widget>
  <widget id="dc246169-0320-459f-a181-0f7f423dfbb5" title="Page List" showTitle="True">Page List</widget>
  <widget id="e0437d2e-de82-4f51-b679-f162fc01b20c" title="Month List" showTitle="True">Month List</widget>
  <widget id="aecb8218-37d0-4b1c-989e-9bddc027ad09" title="AuthorList" showTitle="True">AuthorList</widget>
</widgets>
Dec 30, 2015 at 11:39 AM
Thanks.

Tried that. The be_WIDGET_ZONE.xml now reads:
<?xml version="1.0" encoding="utf-8"?>
<widgets>
  <widget id="4a1ca8d3-113f-4710-815c-f18f30dc7d1c" title="Administration" showTitle="True">Administration</widget>
  <widget id="dd0a6215-8f33-441e-83c8-9f2ae0abae27" title="Category list" showTitle="True">Category list</widget>
  <widget id="802a283b-84c9-4e3d-9f48-c5dca4dd551d" title="Twitter" showTitle="True">Twitter</widget>
  <widget id="e0437d2e-de82-4f51-b679-f162fc01b20c" title="Month List" showTitle="True">Month List</widget>
  <widget id="aecb8218-37d0-4b1c-989e-9bddc027ad09" title="AuthorList" showTitle="True">AuthorList</widget>
  <widget id="8d2f6869-e27d-4585-bada-a9cc84f0978a" title="Tag cloud" showTitle="True">Tag cloud</widget>
  <widget id="8b1c16f3-993b-4295-b0ba-053aaeaf2989" title="Visitor info" showTitle="True">Visitor info</widget>
</widgets>
However the problem remains, even after a CTRL+F5 refresh.
Coordinator
Dec 30, 2015 at 5:04 PM
You need to restart website for changes to take effect.
If you don't have access to IIS to restart application, simply make any change to web.config.
For example, change anything in any comment (<!-- text between tags like these -->).
Dec 30, 2015 at 6:45 PM
Ok, so I made a change to web.config & saved. CTRL+F5 refreshed the website, no change.

Stopped and Started the IIS application pool on the control panel of the site, no change.

Its hosted on GoDaddy. Can't see anywhere else on the panel that 'restarts' the website.

Any other thoughts?
Coordinator
Dec 30, 2015 at 8:06 PM
You may be using database and not XML for example, or your theme may use different widget zones. I'm assuming you have all defaults, but I may be mistaken. Do you have widgets in your blog as they listed in that XML file? What if you remove all widgets and reset app - any changes?

Also might help to look at site.master in your theme folder - post it here if you not familiar with HTML. It should have widget zone registered in there.
And I would still touch web.config by modifying comment to force reload the app.
Dec 30, 2015 at 8:56 PM
So I removed every entry in that be_WIDGET_ZONE.xml, made a change in the web.config (to reload site) and all the widgets disappeared. Including the Search one with the error.

I tried to add them back but Search wont add, its as if the upgrade deleted the widget completely.

Can I upload the widget files back up? If so which which files and to where.
Coordinator
Dec 31, 2015 at 12:06 AM
/custom/widgets/search
Jan 1 at 11:32 AM
Edited Jan 1 at 11:33 AM
Manually moving the files from the archive /custom/widgets/search to the location on my site with the same name resolved this problem for me.
Jan 5 at 11:41 AM
Searched, don't seem to have an archive folder anywhere on the hosting platform.

Where do I get the files to restore back up? I've downloaded BlogEngine, but they're not in there... what am I missing? Laymens terms please!
Jan 6 at 10:57 AM
Edited Jan 6 at 10:57 AM
Just download the Blogengine 3.2.0 files again.
You'll find them in there.
Marked as answer by jonniehack on 1/6/2016 at 6:38 AM
Jan 6 at 2:38 PM
Sorted.

Thanks! for all your help.
Jan 29 at 5:14 PM
What are the file names you uploaded from /custom/widgets/search to fix this? The source code file has more files than are listed on my website's file directory for /custom/widgets/search. The ones listed in the directory are screenshot.png, widget.ascx, and widget.xml.

Thanks.
Jan 29 at 5:37 PM
Do we move all the files listed in /custom/widgets/search?

There are only three visible in my website's directory for /custom/widgets/search. Thank you.
Jan 29 at 5:38 PM
Everything that was in the folder for the search widget, I uploaded and overwritten. That fixed my issues.
Jan 29 at 6:51 PM
jonniehack wrote:
Everything that was in the folder for the search widget, I uploaded and overwritten. That fixed my issues.
Sorry for another question. So you uploaded the entire contents of the Search folder in Widgets to customer/widgets/search? The contents of the files in the source code files are as follows:

edit
edit.ascx.cs
edit.ascx.designer.cs
screenshot
widget
widget.ascx.cs
widget.ascx.desinger.cs
widget



Thank you.
Jan 29 at 6:55 PM
Yeah. Download the software, extract to a folder. Locate the search widget folder, upload entire contents to exact same folder location on the live site. Refresh. Search now works.

If you hit any other errors, I'm unsure as to how to fix them as I'm not a web developer.
Jan 29 at 6:59 PM
jonniehack wrote:
Yeah. Download the software, extract to a folder. Locate the search widget folder, upload entire contents to exact same folder location on the live site. Refresh. Search now works.

If you hit any other errors, I'm unsure as to how to fix them as I'm not a web developer.
Uploaded entire Search folder, works now. Thanks!
Jan 29 at 7:02 PM
Good news! Happy to have helped!
Jan 30 at 1:00 PM
Thanks for posting a workaround, fixed for me too. I copied the files straight from github: https://github.com/rxtur/BlogEngine.NET/tree/master/BlogEngine/BlogEngine.NET/Custom/Widgets/Search

Not sure why this helped - seems like a bug, though the search widget source hasn't changed in 8 months.