WordPress.org

Support

Support » Themes and Templates » [Resolved] Javascript Not Functioning On Admin Pages after 3.3 Upgrade

[Resolved] Javascript Not Functioning On Admin Pages after 3.3 Upgrade

  • Just upgraded to 3.3 – site still runs fine, but admin pages broken. No Javascript – can’t upload media, screen options doesn’t pull down, etc. Also no admin bar when browsing site when logged in. No apparent errors.

    Followed master list, installed Hotfix 0.8, no dice. Switched to twenty-eleven, and that immediately fixed it, so i know it is a theme issue. Can’t see anything in the CSS that could cause problem – any tips? Assuming it must be a javascript issue, but I don’t even know where to begin.

    Thanks to all who try to help, it is much appreciated. Fortunately site is not down, but I have updates scheduled and can’t do them (no upload capability).

Viewing 15 replies - 1 through 15 (of 24 total)
  • BTW – also disabled plugins, that didn’t change anything, only seems to be theme-related. Also tried manual install.

    Do you intend to give us some sort of clue as to which theme you are using?

    sorry, it’s completely custom. what can i post that would help?

    Mentioning that it was a custom/bespoke theme would have helped. Try removing all javascript from your theme. If that doesn’t work, start emptying out the function.php file. Also turn debug on and enable error logging.

    Thanks for your help. Will try that first. I’m trying to figure out, though, why the theme javascript would affect the admin pages. As far as I can tell no code from the theme is pulled in the admin, is it?

    Oh… yes…

    ok, tried removing the entire contents of main.js, as well as emptying functions.php, to no avail. I’m looking at the header of the dashboard admin page, and I don’t see it loading anything theme-specific. Will work on debugging next, but I’m having a hard time seeing where my theme is messing up my dashboard as I don’t see anything being loaded from the theme….thanks again

    [Code moderated as per the Forum Rules. Please use the pastebin]

    When I enable debug I get the following errors (never messed with debug before, so trying to sort out which are critical and which are not)…

    Notice: Undefined index: aiosp_google_analytics_id in /var/www/domain/htdocs/wp-content/plugins/all-in-one-seo-pack/all_in_one_seo_pack.php on line 693
    
    Notice: Undefined index: aiosp_enabled in /var/www/domain/htdocs/wp-content/plugins/all-in-one-seo-pack/all_in_one_seo_pack.php on line 717
    
    Notice: Undefined index: aiosp_enabled in /var/www/domain/htdocs/wp-content/plugins/all-in-one-seo-pack/all_in_one_seo_pack.php on line 717
    
    Notice: Undefined index: page in /var/www/domain/htdocs/wp-content/plugins/custom-contact-forms/custom-contact-forms.php on line 91
    
    Notice: Undefined property: CustomContactFormsAdmin::$getAdminOptionsName in /var/www/domain/htdocs/wp-content/plugins/custom-contact-forms/custom-contact-forms.php on line 62
    
    Notice: automatic_feed_links is deprecated since version 3.0! Use add_theme_support( 'automatic-feed-links' ) instead. in /var/www/domain/htdocs/wp-includes/functions.php on line 3458
    
    Notice: Undefined index: ccf_export in /var/www/domain/htdocs/wp-content/plugins/custom-contact-forms/custom-contact-forms-admin.php on line 40
    
    Notice: Undefined index: ccf_clear_import in /var/www/domain/htdocs/wp-content/plugins/custom-contact-forms/custom-contact-forms-admin.php on line 51
    
    Notice: Undefined index: ccf_merge_import in /var/www/domain/htdocs/wp-content/plugins/custom-contact-forms/custom-contact-forms-admin.php on line 51
    
    Notice: has_cap was called with an argument that is deprecated since version 2.0! Usage of user levels by plugins and themes is deprecated. Use roles and capabilities instead. in /var/www/domain/htdocs/wp-includes/functions.php on line 3542
    
    Notice: has_cap was called with an argument that is deprecated since version 2.0! Usage of user levels by plugins and themes is deprecated. Use roles and capabilities instead. in /var/www/domain/htdocs/wp-includes/functions.php on line 3542
    
    Notice: has_cap was called with an argument that is deprecated since version 2.0! Usage of user levels by plugins and themes is deprecated. Use roles and capabilities instead. in /var/www/domain/htdocs/wp-includes/functions.php on line 3542
    
    Notice: add_contextual_help is deprecated since version 3.3! Use get_current_screen()->add_help_tab() instead. in /var/www/domain/htdocs/wp-includes/functions.php on line 3458
    
    Notice: Undefined property: CustomContactFormsDashboard::$getAdminOptionsName in /var/www/domain/htdocs/wp-content/plugins/custom-contact-forms/custom-contact-forms.php on line 62
    
    Notice: Undefined property: CustomContactFormsDashboard::$getAdminOptionsName in /var/www/domain/htdocs/wp-content/plugins/custom-contact-forms/custom-contact-forms.php on line 62
    
    Notice: Undefined property: CustomContactFormsDashboard::$getAdminOptionsName in /var/www/domain/htdocs/wp-content/plugins/custom-contact-forms/custom-contact-forms.php on line 62

    Can you post (via Pastebin) your header.php and functions.php files?

    Thanks for your help. Will try that first. I’m trying to figure out, though, why the theme javascript would affect the admin pages. As far as I can tell no code from the theme is pulled in the admin, is it?

    That depends entirely on the Theme, and how you’re linking/including/enqueueing scripts. If done properly, front-end scripts will not be loaded in the back end. But, we need to see the actual code, in order to sort it out.

    Chip – not sure if it is done properly, I didn’t personally build the theme. would appear it is not – but everything did work perfectly on 3.2.1

    Hmm, okay… can you also post pastebins for the following files?

    include( TEMPLATEPATH.'/constants.php' );
    include( TEMPLATEPATH.'/classes.php' );
    include( TEMPLATEPATH.'/widgets.php' );

    classes.php > http://pastebin.com/H2PuzzE3
    widgets.php > http://pastebin.com/aVbK58dM

    there is no constants.php.

    disregard the last post, those were from wrong site, sorry!!!!!

    here are the correct links:

    constants.php > http://pastebin.com/P7QujqzB
    classes.php > http://pastebin.com/xVmUM7WJ
    widgets.php > http://pastebin.com/y08as99N

Viewing 15 replies - 1 through 15 (of 24 total)
  • The topic ‘[Resolved] Javascript Not Functioning On Admin Pages after 3.3 Upgrade’ is closed to new replies.
Skip to toolbar