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.

Changing Theme URL Causing Multiple Errors

March 03, 2011 11:14pm

Subscribe [2]
  • #1 / Mar 03, 2011 11:14pm

    hokua

    35 posts

    Hello.

    Under Admin > General Configuration, I changed the URL to my theme from: http://domain.com/ee/themes to http://domain.com/ee/. My EE install is in a sub-directory (e.g. /server/ee/) while I develop it, and I plan to move it after the site is complete.

    I updated the URL to change the theme location for an add-on.

    Boy do I wish I hadn’t done that. Since I’ve had two (what appear to be) major errors.

    1. I got the error “Unable to load the requested file: _shared/menu/item_parent.php” right after I changed the theme URL.

    I Googled that error and came across this thread: http://ellislab.com/forums/viewthread/144399/. Unfortunately changing the value in the DB did not good. And updating the config.php file made it even worse. Which leads me to…

    2. Based on an instruction in that prior thread, I added the following line to the config.php in /ee/system/config/config.php: $config[‘cp_theme’] = ‘default’;

    UPDATE: I’m almost there. I installed another copy of EE in a test directory, and copied the config.php from the new install back into my old install. Everything is back to normal except for one thing: the CSS isn’t showing up in my control panel.

    This is the line I added to my config.php file: $config[‘theme_folder_path’] = “http://domain.com/ee/themes/profile_themes/default/”;

    This is the CSS file that the control panel is looking for:
    http://domain.com/ee/themes/profile_themes/default/cp_themes/default/css/global.css?v=1298217471

    I feel like I’m almost there. Any ideas on how I can get that CSS to work?
    This gave me an config.php error. So, I decided to revert to the original config.php file. No dice. Next I uploaded the original config.php file to the server. Even worse. Now I get the following error: Your config file does not appear to be formatted correctly.

    It appears I have dug myself a huge ditch here. I have the build posted from around 12/20/2010. I’d give you the actual build number/info if I could see it on the EE site. I was just using the default theme. I never made a change to it before this.

    Is my site salvageable? Can anyone help?

  • #2 / Mar 04, 2011 10:19am

    Ingmar

    29245 posts

    Welcome to the forums!

    Based on an instruction in that prior thread, I added the following line to the config.php in /ee/system/config/config.php: $config[‘cp_theme’] = ‘default’;

    That’s just the selected theme. In your case you’d probably need to change the theme path:

    $config['theme_folder_path'] = "/home/mysite/public_html/themes/";
    $config['theme_folder_url'] = "/themes/";

    This is the line I added to my config.php file:

    $config['theme_folder_path'] = "http://domain.com/ee/themes/profile_themes/default/";

    This should be a path, not a URL. Can you try that?

  • #3 / Mar 06, 2011 1:19pm

    hokua

    35 posts

    That did it, thank you! I did manage to get it to work temporarily by using http://domain.com/ee/themes/, and a change to “/ee/themes/” did the same thing. Does it have to be a relative URL? Is there any reason why I should use one vs. the other?

    Thanks again. Really appreciate it!

  • #4 / Mar 07, 2011 3:25am

    John Henry Donovan

    12339 posts

    hokua,

    did the same thing. Does it have to be a relative URL? Is there any reason why I should use one vs. the other?

    A server path will 99% of the time be relative like this and you will need to use it like so. The URL does not have to be absolute and can be relative. There is no difference and other than convenience it shouldn’t matter.

    Closing this one out for you. Feel free to start a new thread if you have any more questions.

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

ExpressionEngine News!

#eecms, #events, #releases