Post by Qphoria » Tue Mar 23, 2010 11:59 pm

In 1.4.1, a few changes were made to some major classes. While the changes are a bit harsh, the fixes are fairly simple. These steps will help get around the following problems:

- Fatal error: Call to a member function http() on a non-object
- Fatal error: Call to a member function https() on a non-object
- Error: Could not load helper image!

If you are having any of the above errors, then you need either globally find/replace with a good text editor like notepad++. Or do it in each file manually. If you are still having other errors after making these changes, then you will likely need to contact the developer as there may be other issues not covered by this conversion.
This only handles original 1.4.0 contribs. It won't help much on porting older versions.

Follow these Find/Replace steps carefully. It may look like they are redundant, but they are done very carefully to make use of global find/replace without having to modify files manually. These are the exact same changes I've used to port all my mods to 1.4.4 and they are confirmed working.


1. in all .php & .tpl files
FIND:
($this->url->https('
REPLACE WITH:
((HTTPS_SERVER . 'index.php?route=

2. in all .php & .tpl files
FIND:
$this->url->https('
REPLACE WITH:
(HTTPS_SERVER . 'index.php?route=

3. in all .php & .tpl files
FIND:
($this->url->http('
REPLACE WITH:
((HTTP_SERVER . 'index.php?route=

4. in all .php & .tpl files
FIND:
$this->url->http('
REPLACE WITH:
(HTTP_SERVER . 'index.php?route=

5. in all .php & .tpl files
FIND:
($url->https('
REPLACE WITH:
((HTTPS_SERVER . 'index.php?route=

6. in all .php & .tpl files
FIND:
$url->https('
REPLACE WITH:
(HTTPS_SERVER . 'index.php?route=

7. in all .php & .tpl files
FIND:
($url->http('
REPLACE WITH:
((HTTP_SERVER . 'index.php?route=

8. in all .php & .tpl files
FIND:
$url->http('
REPLACE WITH:
(HTTP_SERVER . 'index.php?route=

9. in all .php & .tpl files
FIND:
$this->load->helper('image');
REPLACE WITH:
$this->load->model('tool/image');

10. in all .php & .tpl files
FIND:
image_resize(
REPLACE WITH:
$this->model_tool_image->resize(

11. in admin .tpl files only. This will make the new admin tabs work
FIND:
class="tabs"
REPLACE WITH:
class="tabs htabs"

OpenCart 2.0.x Mod Update Info

Image
Donate!|OpenCart Basics|GeoZones
Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by Silver » Sun Mar 28, 2010 3:01 pm

thanks a lot for your help Qphoria.

for convert 1.4.0 modules to 1.4.5 is the same procedure or I need to change another thing?

thanks

New member

Posts

Joined
Wed Oct 21, 2009 6:55 pm

Post by Silver » Mon Mar 29, 2010 12:41 pm

No one knows ?

New member

Posts

Joined
Wed Oct 21, 2009 6:55 pm

Post by Qphoria » Mon Mar 29, 2010 2:03 pm

How can anyone know if it just came out and its a sunday?

OpenCart 2.0.x Mod Update Info

Image
Donate!|OpenCart Basics|GeoZones
Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by Vqz » Fri May 07, 2010 4:53 pm

How i need to change this one?
header("Location: " . $this->url->https('checkout/success'));

Vqz
Newbie

Posts

Joined
Sun Jan 10, 2010 12:02 am

Post by SteveSherry » Sat May 08, 2010 6:45 am

isn't that just number 2 on the list?

My Website ¦ Summer Madness Special Offer ¦


Active Member

Posts

Joined
Thu Apr 08, 2010 7:47 am
Location - Wirral, UK

Post by konservasi » Sun May 09, 2010 9:48 am

great..I have install this module in my site..awesome..thank you very much

http://galerigis.com" onclick="window.open(this.href);return false;

http://galerigis.com

http://galeritiket.net


Active Member

Posts

Joined
Wed May 05, 2010 2:29 am


Post by konservasi » Sun May 09, 2010 1:51 pm

hmmm..anyone know where can I found where the place while customer want to add the testimonial? where is the mistake?

I didn't find it in my site

http://galerigis.com

http://galeritiket.net


Active Member

Posts

Joined
Wed May 05, 2010 2:29 am


Post by SteveSherry » Mon May 10, 2010 4:19 am

testimonials are a separate module, it's not a standard module (I'm currently on 1.4.4)

My Website ¦ Summer Madness Special Offer ¦


Active Member

Posts

Joined
Thu Apr 08, 2010 7:47 am
Location - Wirral, UK

Post by konservasi » Tue May 11, 2010 9:03 pm

yeah..me too..I wish the customer can add the testimonial there

http://galerigis.com

http://galeritiket.net


Active Member

Posts

Joined
Wed May 05, 2010 2:29 am


Post by jpbhcom » Thu Mar 03, 2011 2:29 am

Qphoria wrote:In 1.4.1, a few changes were made to some major classes. While the changes are a bit harsh, the fixes are fairly simple. These steps will help get around the following problems:

- Fatal error: Call to a member function http() on a non-object
- Fatal error: Call to a member function https() on a non-object
- Error: Could not load helper image!
I'm quite pleased with the shopping cart. I like your responses you're intelligible. I hate having to clean up mods for others coders, but such is life SO for your guide here....

THANK YOU Qphoria!

It is much appreciated.
Jared

Newbie

Posts

Joined
Thu Mar 03, 2011 2:25 am

Post by MySweetf » Sun Sep 18, 2011 11:03 am

testimonials are a separate module, it's not a standard module (I'm currently on 1.4.4)

Newbie

Posts

Joined
Sun Sep 18, 2011 10:43 am

Post by pfiper » Tue Nov 01, 2011 3:06 pm

MySweetf wrote:testimonials are a separate module, it's not a standard module (I'm currently on 1.4.4)
And what can be done to fix this?

Newbie

Posts

Joined
Tue Nov 01, 2011 2:49 pm

Post by TimothyLam » Fri Sep 23, 2016 11:28 pm

It appears my last question was too difficult.

I would like to get a refund.

Please advise how.

Newbie

Posts

Joined
Thu Sep 22, 2016 9:33 pm
Location - Ireland
Who is online

Users browsing this forum: Blackwood and 12 guests