Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

For some reason my admin panel seems to be a little busted. My themes title (Smashing Themes: Tank) now shows up as the full path of the theme instead of just he title. Kinda weird and a little annoying. It shows up in multiple browsers.

bug

share|improve this question

closed as too localized by toscho Jan 30 '13 at 19:50

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

    
What did you do immediately before this started? –  s_ha_dum Jan 29 '13 at 5:21
    
you need to post the code. –  Jamie Jan 29 '13 at 5:29
    
Just logged in for the first time today. Nothing special. –  Brian Jan 29 '13 at 5:29
    
Post what code? –  Brian Jan 29 '13 at 5:30
    
I switched themes and then switched back hoping that might fix it, but no luck. –  Brian Jan 29 '13 at 5:50

2 Answers 2

Do a project/directory wide search in your theme directory for add_menu_page and make sure second and first parameters of any calls to that function does not supply anything weird. By the looks of instead of a page name, the result of get_bloginfo('stylesheet_url') is used when setting up the menu page.

Also, if possible, try temporarily deactivating all your plugins or switching to different theme to verify that this is in deed caused by your theme, and nothing else.

share|improve this answer
    
Simon, It is definitely the theme. Switching themes resolved it temporarily, switching back and it returned. I will look into your code search suggestion and post updates. –  Brian Jan 29 '13 at 16:23
    
Only two instances of the aforementioned code and both were in the admin php page. Here is a paste add_menu_page('Theme', $name, 'manage_options', 'OptionsPage', array(&$this, 'ThemeOptionsPage'), '', 64); add_theme_page( $name, $name, 'manage_options', 'OptionsPage', array(&$this, 'ThemeOptionsPage')); –  Brian Jan 29 '13 at 16:27
    
The author of the theme had some updates that he did to it. I reuploaded the theme and it solved my problem. Thanks for your help in trying to diagnose. –  Brian Jan 29 '13 at 16:33
    
Great! Had just about completed my answer before your comment, so I'll post it just for the record: Try logging the second parameter in add_menu_page, $name and see what it contains. Just put var_dump($name); die(); before the call to add_menu_page and check the output. Somehow it seems to hold the stylesheet_uri rather than the menu item title like it should. –  Simon Jan 29 '13 at 16:35

Reinstalling the theme solved the problem, but thanks to Simon for his help.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.