Blog
Magento 2 - setup:di:compile - class \Zencard_Util does not exist
I'm adding a solution for posterity regarding an error in the Dialcom\Przelewy module from the popular Przelewy24.pl payment system for Magento. I'm currently working with version 2.3.1, but it likely occurs in other versions as well.
Apply the patch below.
diff --git a/composer.json b/composer.json
index dad458a5..0c85ab7e 100644
--- a/composer.json
+++ b/composer.json
@@ -45,7 +45,8 @@
]
},
"files": [
- "app/etc/NonComposerComponentRegistration.php"
+ "app/etc/NonComposerComponentRegistration.php",
+ "app/code/Dialcom/Przelewy/SharedLibraries/autoloader.php"
],
"exclude-from-classmap": [
"**/dev/**",Run the commands:
$composer dump-autoload $bin/magento setup:di:compile
Bests