• Resolved salvation62

    (@salvation62)


    Hi Guys

    I have a problem in my menus

    I am setting a blog using a custom theme, I have created 2 menus and added pages to them, everything worked fine, then I created some post and categories and now i want to add some categories in those menus but when I click the menu tab, down a list of available choices for the menu I get this
    Catchable fatal error: Object of class WP_Error could not be converted to string in /home/greg2205/public_html/wp-includes/formatting.php on line 433

    I then check the formatting.php file on line 433 and I have this

    function wp_check_invalid_utf8( $string, $strip = false ) {
    	$string = (string) $string;
    
    	if ( 0 === strlen( $string ) ) {
    		return '';
    	}

    I don’t know what to do really, anyone can help?

Viewing 10 replies - 31 through 40 (of 40 total)
  • I ran into this error, and knew that it was a certain set of post categories that had since been removed that were causing the issue. I deleted those post categories, and the menu admin was functional again.

    Thanks internalwealth totallly just saved my bootay!

    ok… i am getting this error but it seems to have nothing to do with menus…

    i recently upgraded to network mode in 3.1.2
    that worked fine.

    then i installed a plugin for importing members… that seemed to work fine.

    i tested the import, worked fine.

    installed another plugin.

    now the import doesn’t work.

    deactivated that last plugin, still getting the “catchable fatal error”

    so… i’m stumped.

    thanks @internalwealth, i just installed the old theme that had the CPT and Taxonomies and removed those from the links to the custom archives from the menu manager.

    worked great. this should really be fixed in the core.

    //Frankie

    EffortlessEnglishClubPl

    (@effortlessenglishclubpl)

    I can confirm the info below. This was the solution. Go back to the/a template that will load the menus. Kill the ‘template specific’ menu. In my case I was using a portfolio type menu which created an additional ‘post/page’ input. They called it ‘portfolios’. Once I deleted the menu items pointing to those ‘template’ features I was able to access the menus again via the other templates.

    Hi All,

    I had the same problem and was able to fix it, so decided to share my experience.

    With my case, it turned out that there was a menu containing links to some custom taxonomies, that have been defined in a previous theme but did not exist in this one. So I had a taxonomy called “Portfolio Category” and links to several portfolio categories in a previously created menu. I was able to fix it by activating the previously installed theme and removing those links from the menu(removing the whole menu should also work).

    I hope this will be helpful.

    IT WAS ??

    Had to register to say I got this problem after moving servers and importing my backup sql file. I think it was a problem with the post links in the database being different to my custom permalinks.

    Anyway, I followed the Minkowski post, and deleted all nav_menu_items.

    Simples.

    I fixed this by restoring the taxonomy code that I deleted, going into the menu, deleting anything using that taxonomy from the menu, then removign the taxonomy code again. Worked fine afterwards.

    Apparently has to do with trying to use a menu item that uses a taxonomy that is no longer registered but still associated in the database, I am sure it could have been removed manually from the database as well.

    I had a custom menu called Library Nav that was causing the issue. From the database I browsed the wp_terms table and deleted the instance for that nav and everything worked.

    Thanks everyone.

    d.

    I just got the email from WordPress saying that my website was up but i still have to construct it. So i was picking themes and i installed (activated) the liquorice theme. Then i go ahead to see how it looks on the site but when the page uploads i get a message saying: Fatal error: Call to undefined function add_theme_support() in /home/lucrevie/public_html/thefinestcakedecoratingtechniques.com/wp-content/themes/liquorice/functions.php on line 23. I don’t know what to do . I also can’t log in to the admin area because u get the same thing? Need help please?

    The problem is that in the functions.php on line 23 you are trying to access a function that doesnt exist in the file.

    What you need to do is open that file /liquorice/functions.php in FTP, and remove the function add_theme_support();
    it will look like this:

    function add_theme_support()
    {

    }

    Another option is to delete the theme liquorice files in the backend and that will force WordPress into a safe mode to assign a new one. I think it reverts to default.

Viewing 10 replies - 31 through 40 (of 40 total)
  • The topic ‘Catchable fatal error: Object of class WP_Error could not be converted to string’ is closed to new replies.