Tuesday, December 20, 2011

302 object moved for temp/iconcache images

Sometimes when you log into the Sitecore Admin you may see that icons are not loading.  When you look in fiddler you will see that its returning a 302 - Object moved message.

I found a few other causes to the problem stated on other blogs and in some cases this may solve your problem.
These range from missing images in the temp/IconCache folder to missing zip files in the "sitecore\shell\Themes\Standard" folder.  Once the icons exist in both places if they still will not show up then
you will need to try my solution below:

The solution is to stop IIS, delete all the files in the temp/iconcache folder then restart IIS.  Now when you log into the admin, this will force sitecore to refill the iconcache and the icons will show up again.

If you have any tips, tricks or resources you would like to share with the Guild please email them to sitecoreguild@outlook.com and we will post them here.
You can also tweet them referencing @sitecoreguild

Saturday, December 3, 2011

Tips On Setting up Sitecore Content Delivery Server

Setting up a Content Delivery Server the first time is not easy but there is help.
Firstly, download the Sitecore Scaling Guide and the SwitchMasterToWeb.Config
from this SDN Link

Once you have followed the above steps you may get the following error:

Exception: System.InvalidOperationException
Message: Could not find configuration node: databases/database[@id='master']

If you are running Sitecore 6.5 the fix is to open the SwitchMasterToWeb.Config and paste this at the bottom just inside the  </sitecore>
<!– extra setting to bypass analytics error –>
<setting name=“Analytics.DefaultDefinitionDatabase“ value=“web“ />
If you still get the error or are running 6.4 or lower then there may be references to master in the web.config that were added after the standard install.  One example is the news mover module.  The solution is to find all references to these (<database>master</database>) in your web.config and comment them out.