Post by index » Sun Mar 21, 2010 9:34 am

Hi,

We just finished uploading Fastway_plugin_1_1_1 onto our Opencart 1.4.4 and after we installed it via the backend we went to [edit] and got a blank page with the following error message:

Fatal error: Call to a member function https() on a non-object in /home/www/mydomain.com.au/store/admin/controller/shipping/fastway.php on line 46

Does anyone know what this means and how can we fix it.

Thanks

Newbie

Posts

Joined
Sat Mar 20, 2010 10:49 am

Post by hockings » Tue May 25, 2010 11:16 am

I've just installed this too and got the same error. To fix it I updated the fastway.php file to match the other examples in the directory. I tried to attach the updated file to the post, but I can't attach a .php file so you'll have to update yourself.
I'm brand new to opencart and php so I'm making a fix based on the other example files - whether it works or not, who knows! All I can say is that it doesn't cause errors any more in the admin page.

Find the line in the admin\controller\shipping\fastway.php file starting with "//" as indicated and update with the following line.

Line 17
// $this->redirect($this->url->https('index.php?extension/shipping'));
$this->redirect(HTTPS_SERVER . 'index.php?route=extension/shipping');

Line 44
// $this->redirect($this->url->https('index.php?extension/shipping'));
$this->redirect(HTTPS_SERVER . 'index.php?route=extension/shipping');

Line 50
// 'href' => $this->url->https('extension/shipping'),
'href' => HTTPS_SERVER . 'index.php?extension/shipping',

Line 56
// 'href' => $this->url->https('shipping/fastway'),
'href' => HTTPS_SERVER . 'index.php?shipping/fastway',

Line 61
// $this->data['action'] = $this->url->https('shipping/fastway');
$this->data['action'] = HTTPS_SERVER . 'index.php?shipping/fastway';

Line 63
// $this->data['cancel'] = $this->url->https('extension/shipping');
$this->data['cancel'] = HTTPS_SERVER . 'index.php?extension/shipping';

Newbie

Posts

Joined
Tue May 25, 2010 11:09 am

Post by shanni73 » Thu Oct 07, 2010 5:05 am

Hello;

I have installed this plugin. I am getting the admin Login screen come up each time I press 'Edit' to go into the shipping area of the admin to setup the rest of the settings, it says 'Invalid token session. Please login again.'

I have tried unticking the tokens in the admin settings, to see if it makes an difference. It only refresh the page when I try to go into the fastways 'edit'.

Does anyone know how to get around this, or why this may be happening.

Thank you

http://australianwebsitesolutions.com.au Australian Website Hosting for Opencart Shopping sites- Serious Hosting for Serious Aussie Shopping Sites!


New member

Posts

Joined
Mon Sep 27, 2010 7:26 pm
Location - Central Coast NSW

Post by readyman » Thu Oct 07, 2010 10:10 am

Looks like it might just need upgrading to opencart 149...

http://www.alreadymade.com
Follow me on twitter.com/alreadymade


User avatar
Global Moderator

Posts

Joined
Wed May 20, 2009 5:16 am
Location - Sydney

Post by shanni73 » Thu Oct 07, 2010 10:28 am

How can I go about doing this?

thanks

http://australianwebsitesolutions.com.au Australian Website Hosting for Opencart Shopping sites- Serious Hosting for Serious Aussie Shopping Sites!


New member

Posts

Joined
Mon Sep 27, 2010 7:26 pm
Location - Central Coast NSW
Who is online

Users browsing this forum: No registered users and 4 guests