ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

control panel links' dropdown menus not appearing

June 28, 2013 2:03pm

Subscribe [3]
  • #1 / Jun 28, 2013 2:03pm

    Easterly

    31 posts

    hello, my CP links at the top are not showing their dropdown menus when clicked (content, design, add-ons, members, admin, etc) - has anyone come across this before? this is a clean install, 2.6.1 and no 3rd party add-ons at the moment…
    thx!

  • #2 / Jun 28, 2013 2:54pm

    wildrock

    262 posts

    If your page doesn’t load all the way, or if javascript is turned off the menus won’t load.

  • #3 / Jun 28, 2013 3:27pm

    Easterly

    31 posts

    thx, yeah, i checked to make sure javascript was enabled/no errors and that the page finished loading. i also tried changing the session to cookies only, but that didn’t help…

    the CP is functional, though - if i c/p a query string from another CP (i.e. ‘S=0&D=cp&C=admin_system&M=general_configuration’ to get to the General Config) i can get to the page and update it - just can’t access it from the main nav

    there shouldn’t be any js or css conflicts either, since it’s a new install w/ no 3rd party add-ons yet… i don’t get it…

  • #4 / Jun 28, 2013 4:15pm

    wildrock

    262 posts

    Got the jquery module turned on? It’s needed for javascript in the CP, i believe.

  • #5 / Jun 28, 2013 4:20pm

    Easterly

    31 posts

    it’s installed, v1.0… just for kicks i uninstalled/reinstalled it - nothing changed… :(

  • #6 / Jun 28, 2013 4:37pm

    SamCo

    6 posts

    Apologies if I’m suggesting something stupid. But when this happens to me, it’s usually because I’ve broken something in my themes folder.

    (I do development, and when I copy stuff from one environment to another, I break stuff *all the time*.)

    Start simple with your config settings. Specifically under Admin => General Configuration - the link to your themes folder might have an error. For example, you’re missing a leading forward slash, or you have backslashes instead of forward ones, or maybe the path to your themes folder isn’t quite right.

    Good luck.

  • #7 / Jun 28, 2013 4:58pm

    Easterly

    31 posts

    not at all! i appreciate any ideas and suggestions - i’ve been staring at this too long. i was originally migrating a site from one server to another, when i noticed the menu problem after logging in for the first time. i similarly thought i must have missed something in the themes folder, so re-upped everything to no avail. then i re-upped the system folder too, fiddled with the config file, paths, etc. - still didn’t work right. so i thought i’d just do a clean install, with a brand new db, and see what happens.

    but yeah the themes path is ok, cuz i was able to switch from default to corporate. deleting the trailing slash broke the style, so i put it back. i’m stumped. the site’s at eleven2, which passed the ee wizard just fine, so i don’t think it’s the server environment (or is it? i can’t assume. but i’ve had other sites on eleven2 with no problem).

    it does sound like a javascript/jQuery issue, tho, as wildrock suggested - the menus are there (can see in firebug), display property for the nested ul just isn’t being toggled.

  • #8 / Jun 28, 2013 5:40pm

    SamCo

    6 posts

    Hmm, that’s interesting. The trailing slash broke stuff, did it?

    Does your domain name have a trailing slash after it in the general admin?

    Assuming a fresh download and all the files uploaded to the directory in place. I’d be inclined to suspect you’ve got a variable set incorrectly.

    Either in the admin or directly in your config file. 

    If this helps, here’s a bit that I put in my config.php file, so I don’t have to set the urls in the general admin (and I can move it from one URL to another).

    $protocol                       = (isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] == "on") ? "https://" : "http://";
    $base_url                       = $protocol . $_SERVER['HTTP_HOST'];
    $base_path                      = $_SERVER['DOCUMENT_ROOT'];
    
    $config['base_url']             = $base_url . "/";
    $config['site_url']             = $config['base_url'];
    $config['cp_url']               = $config['base_url'].$system_folder."/index.php";
    $config['theme_folder_path']    = $base_path . "/themes/";
    $config['theme_folder_url']     = $base_url . "/themes/";


    Though, it’s possible that it’s a server issue. Like you need to change php to run in FastCGI instead of apache mode. (or vice versa)

  • #9 / Jun 28, 2013 6:15pm

    Easterly

    31 posts

    thx SamCo for the config file edits - i inserted and that works as advertised. As for the php module I’ll check with host…

    it occurred to me just now - i’m running this install on a temporary url - would that have anything to do with the menu fail? in the past that hasn’t been an issue… just required some steps to set to the production url when ready and it didn’t affect the CP any.

  • #10 / Jun 28, 2013 10:55pm

    Easterly

    31 posts

    ok heard back from webhost - server is running apache with suphp handler… would switching to fastcgi affect the cp menu display? not even sure we can switch since it’s a shared host, come to think of it…

  • #11 / Jul 02, 2013 1:12pm

    SamCo

    6 posts

    Oh yeah, the temp url is the culprit.

    Short version: some of the code is loaded from the local directory (/var/www/vhosts/etcetc), and then the rest is loaded via the URL listed (mysite.com/themes/etcetc). So if there’s a url that’s not set up yet, it’ll fail to load some things.

    So, your URLs have to be consistent throughout the settings.

    The code I gave you above came from Carl Crawley’s Bootstrapping EE: http://eeinsider.com/blog/carl-crawley-bootstrapping-expressionengine - I’ve used this for a few sites.

    Also, Focus Labs has a “EE Master Config” which works in a similar way.

    Lastly, the php mode may have been a red herring in this case. But it was a possible cause. As you noted, shared hosting may not allow you to edit this, so I guess it’s something worth asking any new hosting company about, to see if they have any recommended settings.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases