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.

Error when upgrading from 1.5.2 to 2.7.3 - Call to a member function insert_string() on a non-object in system/installer/updates/ud_160.php on line 71

February 16, 2014 9:54am

Subscribe [1]
  • #1 / Feb 16, 2014 9:54am

    freakyspider

    2 posts

    Hi guys.

    I’m trying to upgrade a very old installation of EE 1.5.2 hosted on EngineHosting to the 2.7.3

    I went by the book and ran the admin.php file. After a prompt about removing trackbacks, I clicked to the next step and I got this 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/pmh5151/public_html/system/installer/updates/ud_160.php on line 71

    Line 71 is:

    $Q[] = $DB->insert_string('exp_sites', 
              array('site_id'  => 1, 
                'site_label' => $this->config['site_name'],
                'site_name'  => $this->create_short_name($this->config['site_name'])));

    I’ve run the server wizard and the server meets all requirements.

    Any idea what I can do to fix this? The exp_sites table doesn’t exist in the current database.

    Thanks.

     

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

ExpressionEngine News!

#eecms, #events, #releases