This plugin is incompatible with CBX PhpSpreadSheet Library
-
We have CBX PhpSpreadSheet Library enabled to provide PHPExcel support for several internally developed plugins. This has worked for years. But when I enable GravityExport Lite for Gravity Forms those plugins fail at this point
if (defined('CBXPHPSPREADSHEET_PLUGIN_NAME') && file_exists(CBXPHPSPREADSHEET_ROOT_PATH . 'lib/vendor/autoload.php')) { //Include PHPExcel require_once CBXPHPSPREADSHEET_ROOT_PATH . 'lib/vendor/autoload.php'; //now take instance $excel = new \PhpOffice\PhpSpreadsheet\Spreadsheet(); } else { error_log(__FILE__ . " CBX PhpSpreadSheet Library plugin is missing"); return false; } $sheet = new \PhpOffice\PhpSpreadsheet\Worksheet\Worksheet($excel, 'Active'); $excel->addSheet($sheet, 0);
The problem is the code is getting your version of the classes. Here is an error log message
PHP Fatal error: Uncaught TypeError: GFExcel\Vendor\PhpOffice\PhpSpreadsheet\Spreadsheet::addSheet(): Argument #1 ($pSheet) must be of type GFExcel\Vendor\PhpOffice\PhpSpreadsheet\W orksheet\Worksheet, PhpOffice\PhpSpreadsheet\Worksheet\Worksheet given, called in /home/ogsonca/public_html/wp-content/plugins/ogs-membership/class-ogs-membership-report.php on line 474 and defined in /home/og sonca/public_html/wp-content/plugins/gf-entries-in-excel/build/vendor_prefixed/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Spreadsheet.php:628 #0 /home/ogsonca/public_html/wp-content/plugins/ogs-membership/class-ogs-membership-report.php(474): GFExcel\Vendor\PhpOffice\PhpSpreadsheet\Spreadsheet->addSheet(Object(PhpOffice\PhpSpreadsheet\Worksheet\Work sheet), 0)
What do you suggest as a solution?
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘This plugin is incompatible with CBX PhpSpreadSheet Library’ is closed to new replies.