CodeIgniter HMVC error after updating PHP to PHP 7

后端 未结 3 2025
忘了有多久
忘了有多久 2021-01-22 21:23

After updating 5.6 to PHP 7. I was using HMVC implementation of Code Igniter and PHP upgrade started throwing following errors:-

  1. A PHP Error was encountered Sev

3条回答
  •  半阙折子戏
    2021-01-22 21:40

    You can read the description of your error, it said that some functions in MX_Loader class is not compatible. It is not compatible with the parent class.

    My MX Class extends CI_Loader, which is the CI Core loader. So just find the mentioned function in the error message and find it in the Core Loader. You can find it in system/core/loader.php

    For example, the error number 1 has library function error. Just find "library" function in core loader and copy the parameter inside the function to the parameter of the library function in your MX loader. And so on

提交回复
热议问题