CRITICAL error: Cannot redeclare Matrix\adjoint
-
Hi!
I just wanted to let you know, the latest PHPSpreadsheet library you switched this importer to yesterday (Which uses Mark Baker’s Matrix vendor class) is causing a Critical Error on my client’s server, who happens to be using the same libraries.
2021-06-16T21:03:29+00:00 CRITICAL Cannot redeclare Matrix\adjoint() (previously declared in /wp-content/plugins/woo-product-excel-importer/Classes/markbaker/matrix/classes/src/functions/adjoint.php:20) in /wp-content/plugins/wordpress-store-locator/vendor/markbaker/matrix/classes/src/Functions/adjoint.php on line 20That plugin is called “WordPress Store Locator” ( https://www.welaunch.io/en/product/wordpress-store-locator/ ).
Unfortunately, both your plugin and the store locator call PHPOffice\PHPSpreadsheet globally, so there’s a conflict. (Your plugin uses it in
\woo-product-excel-importer\import.php). I will be contacting the other developer as well.In the mean time, is there something you can do? Like, using a Namespace in that file and calling
EX:
namespace WooPEI; ... use PhpOffice\PhpSpreadsheet\IOFactory; ... function stuff () { WooPEI\IOFactory::load(etc); }???
The topic ‘CRITICAL error: Cannot redeclare Matrix\adjoint’ is closed to new replies.