I'm attemptng to run a codeigniter site locally on a vargrant CentOS VM. I have downloaded all the files, and set up the yaml / host file etc.
I am getting this error on screen
A PHP Error was encountered
Severity: 8192
Message: Non-static method MY_Loader::define_module() should not be called statically, assuming $this from incompatible context
Filename: controllers/Front_Controller.php
Line Number: 43
This file looks compiled, but does reference ionCube. I had to install that as well, but that has all been done. I can't see why I'm getting this error.
Could the PHP / ioncube version be an issue? On the live site, it is running PHP 5.2.17 and 4.0.7 (i'm on 5.6 and 4.7.5 locally).
Can't see whats going on.
You can change line 43 of Front_Controller.php to instantiate the class like:
$loaderObj = new MY_Loader();
$loaderObj->define_module($module . '/');
instead of
MY_Loader::define_module($module . '/');
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.