Convert 1.4.0 modules to 1.4.4
Posted: 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"
- 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"