Fatal error: Uncaught Error: Class ‘Pagup\Bialty\Core\Plugin’ not found
-
Hi.
I’m using your plugin and had this installed via the Plugin marketplace. No issues.
But, now I’m changing it up to load via composer (using wpackagist). For some reason after I’ve setup the composer base, the following error appears:
Fatal error: Uncaught Error: Class 'Pagup\Bialty\Core\Plugin' not found
This is due to the fact that the autoload.php in the plugin folder is loaded as
require 'vendor/autoload.php'
which can’t be reached for some reason.
I’ve changed this to
require plugin_dir_path(__FILE__) . 'vendor/autoload.php';
and now it works. Is it possible to include this into the plugin please?Thanks in advance.
Kind regards, Axel
- The topic ‘Fatal error: Uncaught Error: Class ‘Pagup\Bialty\Core\Plugin’ not found’ is closed to new replies.