Non-priviledged ajax calls return nothing, nada, zilch

I had this problem a couple of months ago and I couldn’t  find the solution then. When i was tinkering with my development  server today I noticed that all ajax widgets had stopped working. All calls stopped returning data and no errors would be shown. Checked the logs and they were all clear, left me quite dumbfounded. I had set up a new domain for the website and updated the database accordingly.

On closer examination I noticed that the calls stopped working as I used the home link. This link is a custom menu link from the new menu module (Graciously donated by the WOO crowd, many thanx for that). The link was still pointing to the old domain and thus the ajax calls stopped working. The site would still be shown since the dns entries hadn’t been removed yet. So a couple of months too late but i found the solution.

Call to member function add_rewrite_tag() on a non-object

I got this beauty when working with permalink taxonomies. I set the rewrite rule to true and all of a sudden things stopped working. But luckily our friendly neighbourhood spiderman…. err i mean search engine was around and gave me the answer. It seems that register_taxonomy is fired before the rewrite engine has started.

This is the correct way to register the taxonomy:

/* Initiate Taxonomy */
function initialize_taxonomy() {
	register_taxonomy( 'pss_media_tag', 'pss_object', array(
			'hierarchical' => false,
			'query_var' => true,
			'rewrite' => array( 'slug' => 'media' ),
			'public' => true,
			'show_ui' => true,
		) );
}
add_action( 'init', 'initialize_taxonomy', 0 );

Now the rewrite engine is running and accepts the new permalink structure for your custom taxonomy.

Page not found after renaming taxonomy

When I was working on page templates I came across some very strange behaviour.  I added a rewrite slug to use permalinks for media tags related pages.  After adding the slug I kept coming up with page not found when visiting a permalink for media tags.  After check the .htaccess file I noticed the rewrite rules were not up to date.

Once a taxonomy has been registered it’s rewrite rules wont update if the code is changed. To update them just visit the permalinks page and they will be overwritten.

Jumplists bug: icons dissapear after a while

The icons of the jumplists dissapear after a while, not sure what is happening  I checked the paths in the html and they seem fine. This might be an Internet Explorer 9 issue. I’m working on a fix for this.

Update: I deleted the sites from my taskbar and dragged them back again and that fixed the problem. So i’m assuming its an beta issue.

WordPress, Internet Explorer 9 and jumplists

With mixed feelings I tried out the new beta for Internet Explorer. I was curious what they have been up to but as mentioned in one of my earlier post I want it stabbed, buried and forgotten. IE6 used to be king once it had beaten Netscape to a pulp (Whether they fought fair or not is not in the scope of this post and I prefer not to step into that beehive again) but then the triumphant youngling turned into an old gumpy little git that you cant get rid off even if you wanted it too.
(more…)