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.

Getting blank page when trying to run upgrade wizard

June 18, 2011 10:30am

Subscribe [3]
  • #1 / Jun 18, 2011 10:30am

    badfaery

    5 posts

    Hello

    I’m trying to upgrade from 1.5 to the latest version and have gotten stuck! I’ve uploaded the files as described in the installation guide but I’ve ended up with a blank page and can’t access the upgrade wizard.

    After allowing the debug thingy on the system index page I’m now getting this message:

    Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’ in /www/pmh5248/public_html/eesys/installer/core/Installer_Config.php on line 45

    Can anyone enlighten me as to where to go from here? I’m on Engine Hosting by the way. And be gentle I don’t anything about php 😊

  • #2 / Jun 20, 2011 8:25am

    Sue Crocker

    26054 posts

    Hi, badfaery.

    When you say you’re upgrading, are you going from 1.5 to 2.1.3, or are you trying to get to 1.7.1 first?

    You’re on an older EH account, you may want to make sure you are on a server that works with PHP5 if you are upgrading to 2.1.3.

    1. Using a text editor, create a new file containing only the following single line:

    <?php phpinfo(); ?>

      2. Save the file as ‘phpinfo.php’ and upload it to a publicly accessible directory on your server
      3. Point your browser to the location of the file, e.g. http://yoursite.com/phpinfo.php

    Verify which version of PHP you’re on. Is it 5.x or later? If not, request to be moved to a different server.

  • #3 / Jun 20, 2011 2:03pm

    badfaery

    5 posts

    Yes I’m was trying to go straight from 1.5 to 2.1.3.

    I’ve uploaded the php file as you suggested and according to it the server is running PHP Version 4.3.9.

    So I guess getting that changed is my first port of call.

  • #4 / Jun 20, 2011 3:33pm

    Sue Crocker

    26054 posts

    Yup, that would be the first step. 😊

    We’ll keep this open until you’re ready to continue.

  • #5 / Jun 24, 2011 6:54am

    badfaery

    5 posts

    The php upgrade is complete.

    This time I’ve got as far as the installation wizard.

    This is my new error message:

    A PHP Error was encountered

    Severity: Notice

    Message: Undefined variable: DB

    Filename: updates/ud_160.php

    Line Number: 71
    Fatal error: Call to a member function insert_string() on a non-object in /www/pmh5248/public_html/eesys/installer/updates/ud_160.php on line 71

  • #6 / Jun 27, 2011 12:05pm

    Brandon Jones

    5500 posts

    Hi badfaery,

    Sorry you’re running into this. Please open system/installer/updates/ud_160.php and just before line 71 add:

    $DB = $this->EE->db;

    so it will look like:

    $DB = $this->EE->db;
    $Q[] = $DB->insert_string('exp_sites', 
    ...


    Does that allow the upgrade to proceed?

  • #7 / Jun 27, 2011 1:23pm

    badfaery

    5 posts

    Nope.

    Error message is now:

    A Database Error Occurred

    Error Number: 1050

    Table ‘exp_sites’ already exists

    CREATE TABLE `exp_sites` ( `site_id` int(5) unsigned NOT NULL auto_increment, `site_label` varchar(100) NOT NULL default ‘’, `site_name` varchar(50) NOT NULL default ‘’, `site_description` text NOT NULL, `site_system_preferences` TEXT NOT NULL , `site_mailinglist_preferences` TEXT NOT NULL , `site_member_preferences` TEXT NOT NULL , `site_template_preferences` TEXT NOT NULL , `site_weblog_preferences` TEXT NOT NULL , PRIMARY KEY `site_id` (`site_id`), KEY `site_name` (`site_name`))

    Filename: updates/ud_160.php

    Line Number: 460

  • #8 / Jun 27, 2011 4:09pm

    Brandon Jones

    5500 posts

    Okay, that’s progress. Now I think we just need to run the update on your untouched database. So restore the backup of your 1.5 database (make sure you’re restoring into an empty database, and that the table “exp_sites” doesn’t exist after the restoration) and try the update again.

  • #9 / Jun 27, 2011 5:22pm

    badfaery

    5 posts

    Now the message is:

    Error Number: 1146

    Table ‘pmh5248a.exp_sites’ doesn’t exist

    SELECT `site_system_preferences` FROM exp_sites WHERE site_id = ‘1’

    Filename: core/Installer_Config.php

    Line Number: 165

  • #10 / Jun 27, 2011 7:26pm

    Brandon Jones

    5500 posts

    badfaery,

    Please check your email shortly.

  • #11 / Jun 29, 2011 5:27pm

    Brandon Jones

    5500 posts

    Hi badfaery,

    I was mostly able to get the site updated to 2.1.3. However, it looks like some of your templates were truncated/cut off and so are incomplete, resulting in tags not being parsed. The entries look fine (to me). Do you still have access to a copy of your 1.x site? Copying and pasting the templates over should work.

  • #12 / Jun 30, 2011 6:59am

    badfaery

    5 posts

    Thanks for getting me back up and running!

  • #13 / Jun 30, 2011 6:45pm

    Brandon Jones

    5500 posts

    Hi badfaery,

    This definitely wasn’t a smooth upgrade as very few sites are still on EE 1.5 or lower. Nevertheless we’re working to improve this in the future. And we are still looking into the template truncation, but I think copying and pasting the old templates over with some minor tweaks (exp:weblog:entries becomes exp:channel:entries, for example) will get you up and running the fastest. I’ll leave this thread open for you so let me know if you need further assistance. Thanks for your patience!

  • #14 / Aug 05, 2011 5:26pm

    Brandon Jones

    5500 posts

    Hi badfaery,

    Assuming that you are good to go but don’t hesitate to open a new thread if anything else comes up!

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

ExpressionEngine News!

#eecms, #events, #releases