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.

No Theme in Control Panel

June 21, 2007 10:18am

Subscribe [0]
  • #1 / Jun 21, 2007 10:18am

    stinhambo

    1268 posts

    Hi all,

    I’ve just downloaded 1.6 and installed it on a local server but I get a Control PAnel with no theme (no CSS).

    I downloaded again in case it was corrupted but still no joy.

    Also there is no drop down in the ‘My Account’ -> ‘Customise Control Panel’ area

    If I click on the update button anyway I get this error message -

    Notice: Undefined index: cp_theme in C:\dev\hambodesign\system\cp\cp.myaccount.php on line 2078

    Warning: Cannot modify header information - headers already sent by (output started at C:\dev\hambodesign\system\cp\cp.myaccount.php:2078) in C:\dev\hambodesign\system\core\core.functions.php on line 296

  • #2 / Jun 21, 2007 10:47am

    stinhambo

    1268 posts

    Is no one else having these problems?

    I am chomping at the bit to play with 1.6 but I can’t!!!

  • #3 / Jun 21, 2007 11:31am

    Robin Sowell

    13255 posts

    It’s only you.  I think Paul slipped you a bad copy just to mess with your head! 

    Hm- well, pooter.  I think nothing is getting put in as a default site theme- but I can’t tell if it’s session related or pref related.  Er- may have to call the crew.  It’s considerably more complex back there now.  One thing you could try real fast?  Edit the config.php file and put in a cp_theme manually- base if off of your backup copy.  That bit has been moved to the database- but putting it in the config.php file may do the trick as a short fix.

    And I’ll try to figure why this isn’t happening more.  I suspect it’s a conditional:

    $theme = ($SESS->userdata['cp_theme'] == '') ? $PREFS->ini('cp_theme') : $SESS->userdata['cp_theme'];

    And basically?  You don’t have a theme set for you and most folks do.  Hence it’s only hating on you.

    Anyway- get back to you asap once I have a better idea of why it’s happening.

  • #4 / Jun 21, 2007 12:01pm

    nathanpitman

    531 posts

    Very odd, I’m having the same problem today but not with 1.6, but 1.5.2.

    I tried to amend the path for the admin area. On my local test server everything went well but on my live server I’m getting no CP CSS and the following error if I click update on the control panel theme page:

    Notice: Undefined index: cp_theme in /home/probel/public_html/admin/cp/cp.myaccount.php on line 2044

    Warning: Cannot modify header information - headers already sent by (output started at /home/probel/public_html/admin/cp/cp.myaccount.php:2044) in /home/probel/public_html/admin/core/core.functions.php on line 293

    Note, I have no themes visible in the CP theme drop down menu though the files ‘are’ there in the themes folder on the live server.

  • #5 / Jun 21, 2007 12:27pm

    Robin Sowell

    13255 posts

    nathan- your issue may well be different.  Did it work before and just break?  Also- double check your config.php file- should have:

    $conf['cp_theme'] = "default";

    Spot that in there?  And you have the default theme uploaded in the usual spot?

    (i.6 moved this out of the config- thus I’m thinking the two issues are different.)

  • #6 / Jun 21, 2007 3:58pm

    Paul Burdick

    480 posts

    stinhambo with this error “Notice: Undefined index: cp_theme in C:\dev\hambodesign\system\cp\cp.myaccount.php on line 2078”;  When you go into My Account -> Control Panel Theme, are there any items in the select list?

    Nathan’s problem does sound unrelated as it seems to indicate the $SESS->userdata array does not have cp_theme defined, which would seem to only occur if he got into the CP as a non-logged in member.

  • #7 / Jun 21, 2007 6:12pm

    nathanpitman

    531 posts

    I’m not quite sure what happened but after a good few hours of faffing I noticed that the server path to the themes folder had changed somehow. I did the upgrade to 1.6, fixed the path and all seems to be good now. 😊

  • #8 / Jun 21, 2007 6:16pm

    Sue Crocker

    26054 posts

    Great, Nathan. Glad you’re up and running again.

  • #9 / Jun 21, 2007 7:30pm

    randykarels

    8 posts

    I was having the same problem with a fresh 1.6 install on an xampp/localhost setup on winXP.

    The solution for me:

    Take a look at “Theme Folder Path” in admin->system preferences->general configuration

    My path was borked, but I switched it to C://www/sitename/themes/ and all is well.

  • #10 / Jun 21, 2007 7:31pm

    Paul Burdick

    480 posts

    May I ask how it was bork’ed?

  • #11 / Jun 21, 2007 7:38pm

    randykarels

    8 posts

    I don’t remember exactly, something like
    c:\wwwsitenamethemes

    I remember selecting the “unix” choice when I was installing because I wasn’t sure what to choose since I was running apache on windows. That must have been the issue, eh?

  • #12 / Jun 21, 2007 7:40pm

    Paul Burdick

    480 posts

    Hm, well, the backslash is used for escaping in PHP, so I wonder if perhaps the change in 1.6 of putting many preferences into the database did not insure that the slash remained when it was pulled from config.php and put in the database.  I will investigate.

  • #13 / Jun 21, 2007 7:58pm

    randykarels

    8 posts

    Another quick note. I noticed that I had two slashes after the drive letter.
    This works, too:  c:/www/sitename/themes
    (and is probably the correct way to do it.)

  • #14 / Jun 21, 2007 10:40pm

    Helmi_xisnet

    71 posts

    I had this problem too; fresh install 1.6. Confirmed the theme path is borked. I’m using WAMP on localhost.

  • #15 / Jun 21, 2007 10:44pm

    Paul Burdick

    480 posts

    On Windows too?  I was able to fix the update, but I need a really bullet proof fix for a larger backslash problem.

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

ExpressionEngine News!

#eecms, #events, #releases