Due to business needs,DiscuzX3.2 Forum Plug-in development needs to use the phpexcel component to read the data in the execl spreadsheet, found in the actual development, the phpexcel When a component is placed on a single page, the data in the spreadsheet is read successfully, but the call fails when integrated into the Discuz plug-in architecture.
Error message:
discuz! System Error
oops! System file lost:class/phpexcel/phpexcel_shared_string.php
Causes of conflict:
Both Discuz and phpexcel use the PHP class's autoload technology to automatically register classes, but Discuz blocks spl_ Autoload_call the calling process.
Workaround:
Modify the source\class\class_core.php file to find the public static function AutoLoad ($class) function and put the bottom Discuz_error::exception_error ($EXC); Comment out. Such as:
Discuz Forum and Phpexcel component conflict resolution