WordPress database error: [Duplicate entry '51982' for key 1]
INSERT INTO wp_bas_visitors (visit_ip, referer, osystem, useragent, lasthere) VALUES (644300603, 1, 511, 4413, '2008-08-28 16:52:07');

WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND referer = referer_id AND osystem = os_id AND useragent = ua_]
SELECT * FROM wp_bas_visitors, wp_bas_refer, wp_bas_ua, wp_bas_os WHERE visit_id = AND referer = referer_id AND osystem = os_id AND useragent = ua_id

WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' '2008-08-28 16:52:07', 0, 3508)' at line 1]
INSERT INTO wp_bas_log (visit, stamp, outbound, page) VALUES (, '2008-08-28 16:52:07', 0, 3508);

Ali Sanaei’s Personal Blog » 2008 » February

Ali Sanaei’s Personal Blog


Why?

Posted in Politics, USA by Ali on the February 29th, 2008

US heavier than US
Why should four-five countries want to rule the whole world? Isn’t it time for real global peace and justice?

Who’s going the wrong way?

Posted in Politics, Iran, United Kingdom, USA, Middle East, Europe, France, Israel by Ali on the February 25th, 2008

Mohammad Albaradei going reverse

FIFA Street 3 trailer, OMG!

Posted in Movies, Computer Software, Football (Soccer), Sports by Ali on the February 20th, 2008

Unable to delete a page layout or a master page in SharePoint: This item cannot be deleted because it is still referenced by other pages

Posted in Websites, Computer Software, Science and Technology by Ali on the February 19th, 2008

Today I ran into an error while trying to delete a Master Page on MOSS 2007. I made a mistake by copying few wrong files and creating duplicated Master Pages under ”_catalogs”. I thought I can simply right click on it and delete it, but no, it wasn’t that simple! Even when deactivating and uninstalling a page layouts feature these pages still stay in the “Master Page and Page Layout Gallery”. I tried to delete it manually from the gallery and from designer. This gave me the following error message: 

SharePoint Master Page Deletion Error
“Server error: This item cannot be deleted because it is still referenced by other pages.”

After a bit of lookup, I realised that this is a confirmed problem by Microsoft. The KB article 926812 proposes to change the properties of the master page to Hidden. This long workaround did not solve my problem!

There was however one workaround that solved the problem very quickly:

1- Create a new sub-folder in the master page gallery.
2- Move the Master Pages to the new folder.
3- Now delete the new folder.
4- The unwanted Master Pages are finally gone from the gallery!

Note: I did the above steps by using SharePoint Designer. It’s also doable in SharePoint itself.

While my problem was specific to master pages; I think the same solution will work with Page Layouts as well.

Free Wireless Internet in Sydney and Melbourne

Posted in Computer Networking, Australia by Ali on the February 15th, 2008

I’ve always been grumbling to myself about the lack of free wireless internet access in Australia.

Thanks to the Company I’m working for; these days I use my 3G network from my laptop to access Internet wherever I am within Australia. Coverage and speeds are sufficient, and my mobile carrier offers 1 GB per month for the price of 10 coffees.

I’m in Sydney right now, I’m not carrying my 3G, and my hotel charges 2 coffees per 30 mins! So I had to do a bit of lookup to see if I can find any free connections around. I’m pleased to see that Unwired are setting up free wireless hotspots in a number of cafes in Sydney and Melbourne. The service is branded as uConnect. Keep an eye out for it. The map on the UnWired website shows a number of locations, but not all. see the map here and enjoy.

How to hide or unhide Folder Options

Posted in Computer Software, Science and Technology by Ali on the February 10th, 2008

If you are not able to access “Folder Options” under your windows explorer menu. This post is for you…
Restoring/Removing the “Folder Options” menu involves modifying the Windows Group Policy editor (gpedit.msc).
Just follow the below listed steps:
1. Go to Start >> Run
Type gpedit.msc and press Enter.

Tools NO Folder Options

2. In the resulting window, navigate to the folder
User Configuration >> Administrative Templates >> Windows Components >> Windows Explorer.
Look for the key named “Removes the Folder Options menu from the Tools Menu“.
Double-click the key and select Not Configured.
Click OK.

Tools Folder Options

3. To remove the “Folder Options” menu, follow the previous steps and select the Enable option for the “Removes the Folder Options menu from the Tools Menu” key.