Uncaught Error: Class “PR\DHL\REST_API\Drivers\WP_API_Driver” not found
-
Hi,
we are having an issue with the latest version 3.8.0.
PHP Fatal error: Uncaught Error: Class “PR\DHL\REST_API\Drivers\WP_API_Driver” not found in <PATH_TO_WP>/wp-content/plugins/dhl-for-woocommerce/includes/pr-dhl-api/class-pr-dhl-api-deutsche-post.php:117
This issue seems to happen when there are multiple active plugins with their own autoloaders.
We were able to fix this manually by adding full path to includes.
For example
include_once 'vendor/autoload.php';
=>include_once __DIR__ . '/vendor/autoload.php';
/**
* Include required core files used in admin and on the frontend.
*/
public function includes() {
// Auto loader class
include_once 'includes/class-pr-dhl-autoloader.php';
// Load abstract classes
include_once 'includes/abstract-pr-dhl-wc-order.php';
include_once 'includes/abstract-pr-dhl-wc-product.php';
// Composer autoloader
include_once 'vendor/autoload.php';
}
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.