WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Custom taxonomy and WordPress 3.1 Menu crashed... (9 posts)

  1. Ameisenman
    Member
    Posted 3 years ago #

    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

  2. Ameisenman
    Member
    Posted 3 years ago #

    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...

  3. LCD-NYC
    Member
    Posted 3 years ago #

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

  4. Ameisenman
    Member
    Posted 3 years ago #

    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!

  5. LCD-NYC
    Member
    Posted 3 years ago #

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

  6. Ameisenman
    Member
    Posted 3 years ago #

    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

  7. LCD-NYC
    Member
    Posted 3 years ago #

    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?

  8. amanolar@gmail.com
    Member
    Posted 2 years ago #

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

  9. amanolar@gmail.com
    Member
    Posted 2 years ago #

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

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

    Hope this helps.

Topic Closed

This topic has been closed to new replies.

About this Topic