Archive for July, 2008

Obsolete Google Adsense links makes WordPress post go empty

In one of my posts here I had a referral link for Google Adsense. Recently, Google sent an email around that it will stop using them. I read that with half a mind and dismissed it.

However, this has one interesting consequence in WordPress — this link confuses the_content() API call and it returns empty string. I removed this Adsense link (broken into several lines for clarity):

HTML:
  1. <a title="Ads by Google" href="http://pagead2.googlesyndication.com/pagead/iclk?sa=l
  2. &amp;num=0&amp;client=ca-ref-pub-1148791019820431
  3. &amp;adurl=https://www.google.com/adsense/%3Fhl%3Den_US%26ai%3DBSsF-kUZjRc6ZFpWA-wK2rKTwCI2f8heZ0tCAAsWNtwEAEAEgyM
  4. 61BEDLFkicOVDBw_S-A2D8pvuN9CWgAZeVyP0DsgEFYXBsdXPIAQHaARBodHRwOi8vYXBsd
  5. XM6ODEv4AECgAIBlQITul4KqAMD
  6. &amp;ai=BwfOLkUZjRc6ZFpWA-wK2rKTwCI2f8heZ0tCAAsWNtwEAEAEgyM61BEDLFkicOVDD64L
  7. CAmD8pvuN9CWgAZeVyP0DsgEFYXBsdXPIAQHaARBodHRwO
  8. i8vYXBsdXM6ODEv4AECgAIBlQITul4KqAMD">Adsense</a>

and things were back in normal. No idea what is exact problem, just posting for the sake of others having the same problem. Thank you goes to commenter David that alerted me to this.

Moved to new domain

This domain used to reside on the aplus.co.yu domain. .yu domain belonged to former Yugoslavia, which has died, despite the futile attempts to keep whatever is left of it under the same name.

With it, the TLD is on its way out and the new Serbian domain is .rs

Thus this blog and all its auxiliary content is now under aplus.rs web address. All the links pointing to old web site will get R=301 message and will hopefully soon be pointing to new addresses.

MSN Messenger viruses become more clever

Funny bit is that in this case it sounded almost completely legit. They missed the “hello” at the start. :)

Upgrading WordPress, the *nix way

I always forget the set of command line stuff I need to do when new version of WP is out. And always waste time figuring out what to do and which switches tar and cp needs. So, this is a reminder for the future.

wget http://wordpress.org/latest.tar.gz
gzip -d latest.tar.gz
tar -xvf latest.tar
cp -r wordpress/* SITE/wpa

That should do it. Now off to upgrade rest of the blogs.

Note that wpa in the SITE/wpa above is my wordpress folder. Replace that with correct path for your installation.