Community Forums

Convert 1.4.0 modules to 1.4.4

Support for mods, payments, shipping, totals, modules, and languages in OpenCart v1.x

Convert 1.4.0 modules to 1.4.4

Postby Qphoria » Tue Mar 23, 2010 3: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"
Image Image
Donate!|OpenCart Basics|GeoZones
Help me get more development cloud storage - Click Here to get DropBox
User avatar
Qphoria
Administrator
 
Posts: 18200
Joined: Mon Jul 21, 2008 7:02 pm
Donate to Qphoria

Re: Convert 1.4.0 modules to 1.4.4

Postby Silver » Sun Mar 28, 2010 7:01 am

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
Silver
 
Posts: 25
Joined: Wed Oct 21, 2009 10:55 am

Re: Convert 1.4.0 modules to 1.4.4

Postby Silver » Mon Mar 29, 2010 4:41 am

No one knows ?
Silver
 
Posts: 25
Joined: Wed Oct 21, 2009 10:55 am

Re: Convert 1.4.0 modules to 1.4.4

Postby Qphoria » Mon Mar 29, 2010 6:03 am

How can anyone know if it just came out and its a sunday?
Image Image
Donate!|OpenCart Basics|GeoZones
Help me get more development cloud storage - Click Here to get DropBox
User avatar
Qphoria
Administrator
 
Posts: 18200
Joined: Mon Jul 21, 2008 7:02 pm
Donate to Qphoria

Re: Convert 1.4.0 modules to 1.4.4

Postby Vqz » Fri May 07, 2010 8:53 am

How i need to change this one?
header("Location: " . $this->url->https('checkout/success'));
Vqz
 
Posts: 12
Joined: Sat Jan 09, 2010 4:02 pm

Re: Convert 1.4.0 modules to 1.4.4

Postby SteveSherry » Fri May 07, 2010 10:45 pm

isn't that just number 2 on the list?
SteveSherry
 
Posts: 583
Joined: Wed Apr 07, 2010 11:47 pm
Location: Wirral, UK

Re: Convert 1.4.0 modules to 1.4.4

Postby konservasi » Sun May 09, 2010 1:48 am

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

http://galerigis.com
konservasi
 
Posts: 184
Joined: Tue May 04, 2010 6:29 pm

Re: Convert 1.4.0 modules to 1.4.4

Postby konservasi » Sun May 09, 2010 5:51 am

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
konservasi
 
Posts: 184
Joined: Tue May 04, 2010 6:29 pm

Re: Convert 1.4.0 modules to 1.4.4

Postby SteveSherry » Sun May 09, 2010 8:19 pm

testimonials are a separate module, it's not a standard module (I'm currently on 1.4.4)
SteveSherry
 
Posts: 583
Joined: Wed Apr 07, 2010 11:47 pm
Location: Wirral, UK

Re: Convert 1.4.0 modules to 1.4.4

Postby konservasi » Tue May 11, 2010 1:03 pm

yeah..me too..I wish the customer can add the testimonial there
konservasi
 
Posts: 184
Joined: Tue May 04, 2010 6:29 pm

Re: Convert 1.4.0 modules to 1.4.4

Postby jpbhcom » Wed Mar 02, 2011 6:29 pm

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
jpbhcom
 
Posts: 1
Joined: Wed Mar 02, 2011 6:25 pm

Re: Convert 1.4.0 modules to 1.4.4

Postby MySweetf » Sun Sep 18, 2011 3:03 am

testimonials are a separate module, it's not a standard module (I'm currently on 1.4.4)
MySweetf
 
Posts: 3
Joined: Sun Sep 18, 2011 2:43 am

Re: Convert 1.4.0 modules to 1.4.4

Postby pfiper » Tue Nov 01, 2011 7:06 am

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?
pfiper
 
Posts: 1
Joined: Tue Nov 01, 2011 6:49 am


Return to Extension Support

Who is online

Users browsing this forum: No registered users and 13 guests

Hosted by Arvixe Web Hosting