• I am having an incredible amount of trouble with my WP dashboard. Navigations menus wont load, I cannot edit or create a new post, my html tab in the editing page does not work, the logout dropdown does not come up, I cannot access my widgets in the widget page and there are other issues.

    after deactivating all my plug ins without success, deleted my plug-ins without it correcting the problem, contacting my hosting company who has no idea, I have been reading through the forums all day.

    I read in one forum post about changing code in the nav_menu.php, and I decided to look at my code. there I found the following code at line 22-23:

    wp_die( __( ‘Cheatin’ uh?’ ) and at lines 18-19:

    if ( ! current_theme_supports( ‘menus’ ) && ! current_theme_supports( ‘widgets’ ) )
    wp_die( __( ‘Your theme does not support navigation menus or widgets.’ ) );

    does this look right, or does this appear to be a hack?

Viewing 3 replies - 1 through 3 (of 3 total)
  • I’m not sure about that code… it does look a bit odd. I certainly never inserted anything like that in my theme.

    Have you tried switching to the default theme TwentyTen and see if the error goes away? If it does, then yes the theme is at fault and needs to be fixed.

    If not, I would reinstall a fresh WordPress installation. Everything but the wp-content folder.

    Thread Starter lajuice

    (@lajuice)

    Thank you for your response. I removed Twentyten,(twenty eleven) from my FTP when the site was created. I tried to re-install twenty eleven,as suggested, but WordPress won’t install it. Like most other functions in my Admin dashboard, theme installation just gets hung up and then the page goes blank.

    also, I did a google search of the shorter bit of code(wp_die( __( ‘Cheatin’ uh?’ ) and from what I can tell, it appears to be good code.

    You can install a copy of TwentyTen or any other theme via FTP.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘bizarre code in my wp-admin/nav_menus.php’ is closed to new replies.