I was recently upgrading the version of WordPress on one of the sites I run and encountered the following error: “Fatal error:
Call to a member function on a non-object in *SITEHERE*/taxonomy.php on line 289".
It took me a little looking around to find a solution but there was someone nice enough to look into it in the wordpress forums and posted a solution. Hopefully this article can save those of you with a similar issue some time in getting things running again.
The problem occurs due to an error in the “Podcasting Plugin by TSG”. The fix is actually pretty simple and requires a few quick steps:
1. Manually deactivate all plugins. The procedure to do so when you can’t access the administration menu is located here.
2. Edit the file SITEROOT/plugins/podcasting/podcasting.php – On line 15 replace the code:
register_taxonomy('podcast_format', 'custom_field');
to
function build_taxonomies() {
register_taxonomy('podcast_format', 'custom_field');
}
add_action( 'init', 'build_taxonomies', 0 );
3. Re-enable your plugins and test your site – if this was the issue, things should be working properly now.
4. Upgrade the Podcast plugin in the Plugins menu. I upgraded to Version 2.3.10.
Thanks to wordpress forum user ddarby14 for posting the solution. Source thread.
I checked out this plugin and the offending line I found was line 15 in /plugins/podcasting/podcasting.php
register_taxonomy('podcast_format', 'custom_field');
I changed this to a function call
function build_taxonomies() {
register_taxonomy('podcast_format', 'custom_field');
}
add_action( 'init', 'build_taxonomies', 0 );
