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.

PHP Error and Blank Control Panel

March 10, 2011 4:49pm

Subscribe [3]
  • #1 / Mar 10, 2011 4:49pm

    PJ4Quilts

    15 posts

    I was trying to change the theme on my site and did the unforgiveable and fogot to make a backup. So I tried to revert the site back to my previous backup.

    When I tried to access the Control Panel I was getting a Blank page, though I could see the site pages. The error points to the fruit CP theme which I was using with the last install but I wasn’t using fruit with the backed up install.  Where can I point the cp back to the default cp theme?

    Here is my error when I turned on de-bugging
    A PHP Error was encountered
    Severity: Notice
    Message: Undefined property: CI_Loader::$view
    Filename: account/login.php
    Line Number: 6

    Fatal error: Call to a member function head_title() on a non-object in /home/xxxx/public_html/themes/cp_themes/fruit/account/login.php on line 6

  • #2 / Mar 11, 2011 5:37am

    John Henry Donovan

    12339 posts

    PJ4Quilts,

    Are you familar with phpMyAdmin and would you be comfortable making a change in your database?

    If so open up the exp_members table. Your admin accoutn will be at row 1. Edit that and change the cp_theme to default

    If that doesnt do it then download the latest fruit them and upload that to your cp_themes folder

  • #3 / Mar 11, 2011 1:49pm

    PJ4Quilts

    15 posts

    Thanks, I did go into MyPHP and changed the CP to “default” and now I am getting these errors:

    A PHP Error was encountered
    Severity: Warning
    Message: filemtime() [function.filemtime]: stat failed for /home/xxxxxx/public_html/themes/cp_themes/default/css/global.css
    Filename: libraries/Cp.php
    Line Number: 158

    A PHP Error was encountered
    Severity: Warning
    Message: Cannot modify header information - headers already sent by (output started at /home/xxxxx/public_html/xxxxxx/codeigniter/system/core/Exceptions.php:166)
    Filename: core/Common.php
    Line Number: 424

    An Error Was Encountered
    Unable to load the requested file: account/login.php
    (I did check to make sure login.php was there and it is)

  • #4 / Mar 11, 2011 2:01pm

    PJ4Quilts

    15 posts

    Actually just tried it again, giving the database a moment of rest and this is the error I am getting

    A PHP Error was encountered
    Severity: Notice
    Message: Undefined property: CI_Loader::$view
    Filename: account/login.php
    Line Number: 6

    Fatal error: Call to a member function head_title() on a non-object in /home/xxxxx/public_html/themes/cp_themes/default/account/login.php on line 6

  • #5 / Mar 11, 2011 5:02pm

    Sue Crocker

    26054 posts

    Hi, PJ4Quilts - are you on a Plesk hosting plan? Has your domain propagated yet? When I query for that error message, that’s what I found.

    http://ellislab.com/forums/viewthread/179375/

  • #6 / Mar 11, 2011 6:45pm

    PJ4Quilts

    15 posts

    Hi Sue, no not a plesk plan. Domain has been active on same hosting plan for a few years now.
    I was going to change the format of the site anyway so I guess this is as good a time as any to start from scratch.

    Is the best way to do that to remove everything and then upload all new files and then install?

  • #7 / Mar 12, 2011 5:42pm

    John Henry Donovan

    12339 posts

    PJ4Quilts,

    What version and build of EE are you using? An upgrade might be the way to go here if you are behind a bit and may be the cause of your issue too if you are using a newer theme now.

  • #8 / Mar 12, 2011 8:24pm

    PJ4Quilts

    15 posts

    Hi John, I upgraded to the latest version 2.1.3 and build about 2 weeks ago, my backup that I have on hand was version 2.1.0. I try to keep it updated each version, I tend to skip most of the build updates.

  • #9 / Mar 13, 2011 9:07pm

    John Henry Donovan

    12339 posts

    PJ4Quilts,

    Ok can I get you remove the fruit theme for now and re-download EE2.1.3 and just upload the themes inside cp_themes and see if that works for you

  • #10 / Mar 15, 2011 12:59pm

    PJ4Quilts

    15 posts

    Hi John, did as you asked, downloaded a fresh copy of 2.1.3 and then uploaded cp-themes folder.
    Also made sure in phpAdmin to make sure it said default and I am getting this error.

    A PHP Error was encountered
    Severity: Notice
    Message: Undefined property: CI_Loader::$view
    Filename: account/login.php
    Line Number: 6
    Fatal error: Call to a member function head_title() on a non-object in xxx/xxx/public_html/themes/cp_themes/default/account/login.php on line 6

  • #11 / Mar 16, 2011 7:41am

    John Henry Donovan

    12339 posts

    PJ4Quilts,

    Ok lets back up a while here

    So I tried to revert the site back to my previous backup.

    That backup wasn’t for a different version of EE was it?

    Now check your server to see if safe mode is on or not.

    Open up your system/expressionengine/config/config.php and add the following lines after changing to your own path and url

    $config['theme_folder_path'] = '/path/to/themes/';
    $config['theme_folder_url'] = 'http://example.com/themes/';
  • #12 / Mar 16, 2011 11:57am

    PJ4Quilts

    15 posts

    Hi John, yes my backup was for a previous version, I had forgotten to backup the latest version.
    My config file says version 2.10

    I added the lines you specified. the “path” line was already there, so I added the “URL to the theme” line.
    Safe Mode is not on
    Still getting same result

  • #13 / Mar 16, 2011 1:06pm

    PJ4Quilts

    15 posts

    An update, I looked at this thread that was getting the same error message
    http://ellislab.com/forums/viewthread/179512/

    So I decided to upload the default theme from version 2.1.0 and I now have my control panel back.

    Thanks for your help John.

    Now I will upgrade to 2.1.3 and hopefully this time I won’t have anymore problems.

  • #14 / Mar 17, 2011 3:56am

    John Henry Donovan

    12339 posts

    PJ4Quilts,

    Yeah sorry, should have caught that at the start that you reverted to an older version of EE’s database.
    I’ll keep this thread open for a while longer in case you have any issue upgrading

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

ExpressionEngine News!

#eecms, #events, #releases