Post by Eliyohu » Thu Aug 20, 2015 1:24 am

After uploading files for 2.0.3.1 and clicking http://www.mywebsite.com/install/ - I got this error:
Fatal error: Call to undefined method Loader::controller() in /.../public_html/install/controller/upgrade.php on line 24

How can I fix it?
Here is the part of the code related to this issue:
class ControllerUpgrade extends Controller {
private $error = array();

public function index() {
if (($this->request->server['REQUEST_METHOD'] == 'POST') && $this->validate()) {
$this->load->model('upgrade');

$this->model_upgrade->mysql();

$this->response->redirect($this->url->link('upgrade/success'));
}

$data = array();

if (isset($this->error['warning'])) {
$data['error_warning'] = $this->error['warning'];
} else {
$data['error_warning'] = '';
}

$data['action'] = $this->url->link('upgrade');

$data['header'] = $this->load->controller('header');
$data['footer'] = $this->load->controller('footer');

$this->response->setOutput($this->load->view('upgrade.tpl', $data));
}

Newbie

Posts

Joined
Mon Jul 16, 2012 11:43 pm

Post by deepvision » Mon Aug 24, 2015 11:46 am

You didn't upload all 2.0.x files.
system/engine/loader.php is the old one.
You should upload all new files again.

ImageImageImage


User avatar
Active Member

Posts

Joined
Tue May 19, 2015 1:03 am
Who is online

Users browsing this forum: No registered users and 12 guests