Welcome Guest, Not a member yet? Register   Sign In
Call to undefined method VI_Loader::_ci_load_class()
#1

I am try to update a site from CodeIgnitor 2.2.2 to 3.1.6

I am getting

A PHP Error was encountered
Severity: Warning
Message: Declaration of MX_Loader::helper($helper) should be compatible with CI_Loader::helper($helpers = Array)
Filename: MX/Loader.php
Line Number: 389
A PHP Error was encountered
Severity: Warning
Message: Declaration of MX_Loader::helpers($helpers) should be compatible with CI_Loader::helpers($helpers = Array)
Filename: MX/Loader.php
Line Number: 0
A PHP Error was encountered
Severity: Warning
Message: Declaration of MX_Loader::_ci_get_component($component) should be compatible with & CI_Loader::_ci_get_component($component)
Filename: MX/Loader.php
Line Number: 0
A PHP Error was encountered
Severity: Notice
Message: Only variables should be assigned by reference
Filename: core/Loader.php
Line Number: 784
A PHP Error was encountered
Severity: Notice
Message: Only variables should be passed by reference
Filename: MX/Loader.php
Line Number: 135
An uncaught Exception was encountered
Type: Error
Message: Call to undefined method VI_Loader::_ci_load_class()
Filename: /home/zqnoinxl/cherylibarra.burtonconstruction.net/application/libraries/MX/Loader.php
Line Number: 152

Line 152 is

$this->_ci_load_class($library, $params, $object_name);

VI_Loader is under the core library

cand start with

<?php (defined('BASEPATH')) OR exit('No direct script access allowed');

/* load the MX_Loader class */
require APPPATH."libraries/MX/Loader.php";

class VI_Loader extends MX_Loader {

Why can't it find it? Any ideas please

Best regards
Reply
#2

(This post was last modified: 10-09-2020, 10:02 PM by InsiteFX.)

Search the forums here for HMVC there are several updates to fix errors like you are getting.

You can download my working copy from here.

HMVC CodeIgniter 3.x
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply




Theme © iAndrew 2016 - Forum software by © MyBB