Hello, i wanted to install this pluggin. Went to admin, installed it but when i try clicking edit i get this:
"
Fatal error: Call to a member function https() on a non-object in ...\admin\controller\module\account.php on line 43"
The problem is with the lines that contain https...
I had a look at the other login module posted by somebody else and saw another method which i successfully implemented in yours:
I had to replace the following lines in admin/controller/module/account.php:
Code: Select all
$this->redirect($this->url->https('extension/module'));
with
Code: Select all
$this->redirect((((HTTPS_SERVER) ? HTTPS_SERVER : HTTP_SERVER) . 'index.php?route=extension/module'));
and
Code: Select all
$this->document->breadcrumbs = array();
$this->document->breadcrumbs[] = array(
'href' => $this->url->https('common/home'),
'text' => $this->language->get('text_home'),z
'separator' => FALSE
);
$this->document->breadcrumbs[] = array(
'href' => $this->url->https('extension/module'),
'text' => $this->language->get('text_module'),
'separator' => ' :: '
);
$this->document->breadcrumbs[] = array(
'href' => $this->url->https('module/account'),
'text' => $this->language->get('heading_title'),
'separator' => ' :: '
);
$this->data['action'] = $this->url->https('module/account');
$this->data['cancel'] = $this->url->https('extension/module');
with
Code: Select all
$this->document->breadcrumbs = array();
$this->document->breadcrumbs[] = array(
'href' => (((HTTPS_SERVER) ? HTTPS_SERVER : HTTP_SERVER) . 'index.php?route=common/home'),
'text' => $this->language->get('text_home'),
'separator' => FALSE
);
$this->document->breadcrumbs[] = array(
'href' => (((HTTPS_SERVER) ? HTTPS_SERVER : HTTP_SERVER) . 'index.php?route=extension/module'),
'text' => $this->language->get('text_module'),
'separator' => ' :: '
);
$this->document->breadcrumbs[] = array(
'href' => (((HTTPS_SERVER) ? HTTPS_SERVER : HTTP_SERVER) . 'index.php?route=module/account'),
'text' => $this->language->get('heading_title'),
'separator' => ' :: '
);
$this->data['action'] = (((HTTPS_SERVER) ? HTTPS_SERVER : HTTP_SERVER) . 'index.php?route=module/account');
$this->data['cancel'] = (((HTTPS_SERVER) ? HTTPS_SERVER : HTTP_SERVER) . 'index.php?route=extension/module');
After replacing the above, i got the same error for catalog/controller/module/account.php:
I had to do the same thing for this one as well, practically replacing
$this->url->https('.........
with
(((HTTPS_SERVER) ? HTTPS_SERVER : HTTP_SERVER) . 'index.php?route=.............
so what i replaced was (notice that first line has http instead of https):
Code: Select all
$this->data['account_create'] = $this->url->http('account/create');
$this->data['forgotten'] = $this->url->https('account/forgotten');
$this->data['information'] = $this->url->https('account/edit');
$this->data['password'] = $this->url->https('account/password');
$this->data['address'] = $this->url->https('account/address');
$this->data['history'] = $this->url->https('account/history');
$this->data['download'] = $this->url->https('account/download');
$this->data['newsletter'] = $this->url->https('account/newsletter');
$this->data['logout'] = $this->url->https('account/logout');
with
Code: Select all
$this->data['account_create'] = (((HTTPS_SERVER) ? HTTPS_SERVER : HTTP_SERVER) . 'index.php?route=account/create');
$this->data['forgotten'] = (((HTTPS_SERVER) ? HTTPS_SERVER : HTTP_SERVER) . 'index.php?route=account/forgotten');
$this->data['information'] = (((HTTPS_SERVER) ? HTTPS_SERVER : HTTP_SERVER) . 'index.php?route=account/edit');
$this->data['password'] = (((HTTPS_SERVER) ? HTTPS_SERVER : HTTP_SERVER) . 'index.php?route=account/password');
$this->data['address'] = (((HTTPS_SERVER) ? HTTPS_SERVER : HTTP_SERVER) . 'index.php?route=account/address');
$this->data['history'] = (((HTTPS_SERVER) ? HTTPS_SERVER : HTTP_SERVER) . 'index.php?route=account/history');
$this->data['download'] = (((HTTPS_SERVER) ? HTTPS_SERVER : HTTP_SERVER) . 'index.php?route=account/download');
$this->data['newsletter'] = (((HTTPS_SERVER) ? HTTPS_SERVER : HTTP_SERVER) . 'index.php?route=account/newsletter');
$this->data['logout'] = (((HTTPS_SERVER) ? HTTPS_SERVER : HTTP_SERVER) . 'index.php?route=account/logout');
and
Code: Select all
$this->data['action'] = $this->url->https('account/login');
with
Code: Select all
$this->data['action'] = (((HTTPS_SERVER) ? HTTPS_SERVER : HTTP_SERVER) . 'index.php?route=account/login');
Please excuse me for posting so much code, but i did it in hopes of helping those that stumble into the same problem as me.