WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] Custom taxonomy and WordPress 3.1 Menu crashed…

[Resolved] Custom taxonomy and WordPress 3.1 Menu crashed…

  • Hi there,
    since my upgrade to wp 3.1, everytime I try to add a custom taxonomy to the menue, it gave me the

    Catchable fatal error: Object of class WP_Error could not be converted to string in C:\xampp\htdocs\wordpress\wp-admin\includes\nav-menu.php on line 73

    This never happened until the update! For creating the custom taxonomy I used this:

    register_taxonomy('Terminarten', array('termine'), array(
    	'hierarchical' => true,
    	"label" => 'Terminarten',
    	'labels' => array(
    		'name' => 'Terminarten',
    		'singular_name' => 'Terminart',
    		'search_items' => 'Terminart suchen',
    		'popular_items' => 'Beliebteste Terminarten',
    		'all_items' => 'Alle Terminarten',
    		'parent_item' => 'Übergeordnete Terminart',
    		'edit_item' => 'Terminart bearbeiten',
    		'update_item' => 'Terminart aktualisieren',
    		'add_new_item' => 'Neue Terminart anlegen',
    		'new_item_name' => 'Neue Terminart',
    		'add_or_remove_items' => 'Terminarten hinzufügen/entfernen'
    	),
    	'singular_label' => 'Terminart',
    	'rewrite' => true,
    )
    );

    Any help would be really nice!!!

    Thanx in advance

Viewing 8 replies - 1 through 8 (of 8 total)
  • Okay, it was my fault and I fixed it, sorry!!! By the way, the error was to give the taxonomy an internal name with a capital letter at the beginning…

    I’m having this same problem. Can you please Outline what you did to fix this problem.

    Hi,
    my problem was the capital letter T for Terminarten:
    register_taxonomy(‘Terminarten’, array(‘termine’),

    After changed it to
    register_taxonomy(‘terminarten’, array(‘termine’),

    everything worked fine again.

    Hope it helps!

    Thanks for your answer.
    In what file did you change that in??
    Is that a wordpress bug?

    No, it’s not a wordpress bug. Where did you registered your custom taxonomy? Inside of your theme’s function.php? Than this is the place to go to. Otherwise change the bit of code where you register your custom taxonomy.

    Hope that helps

    I’m using a Theme name “Stereoline” from ThemeForest. It allows me to create Video Categories. When i try to add any of the Video Categories to a menu i get the error message: Catchable fatal error: Object of class WP_Error could not be converted to string in /home/content/b/x/w/bxweb/html/site/wp-admin/includes/nav-menu.php on line 73

    Same error message you get. I’m still seeking the solution.

    AND

    When I click on Video Categories, I get the error message: Cheatin’ uh?

    Hmmm, same here with wooTheme listing. I tried to find a possible sloppy term in taxonomy but not much luck 🙁

    Just to say that I found the answer to my pb there:

    http://support.pexeto.com/topic/cant-access-menu

    Hope this helps.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[Resolved] Custom taxonomy and WordPress 3.1 Menu crashed…’ is closed to new replies.