Support » Plugin: DHL for WooCommerce » PHP Fatal error: Uncaught Error: Class ‘PR’

  • The plugin causes a fatal error on my site. Any ideas?

    [Mon Sep 14 08:12:41.680508 2020] [php7:error] [pid 1494328] [client 93.244.127.169:56417] PHP Fatal error: Uncaught Error: Class 'PR \\DHL\\REST_API\\Drivers\\WP_API_Driver' not found in /var/www/domain.redacted/public_html/wp-content/plugins/dhl-for-woocommerce/include s/pr-dhl-api/class-pr-dhl-api-deutsche-post.php:117\nStack trace:\n#0 /var/www/domain.redacted/public_html/wp-content/plugins/dhl-for-woo commerce/includes/pr-dhl-api/class-pr-dhl-api-deutsche-post.php(77): PR_DHL_API_Deutsche_Post->create_api_driver()\n#1 /var/www/inisme ain.ie/public_html/wp-content/plugins/dhl-for-woocommerce/includes/pr-dhl-api/class-pr-dhl-api-factory.php(104): PR_DHL_API_Deutsche_P ost->__construct()\n#2 /var/www/domain.redacted/public_html/wp-content/plugins/dhl-for-woocommerce/pr-dhl-woocommerce.php(391): PR_DHL_AP I_Factory::make_dhl()\n#3 /var/www/domain.redacted/public_html/wp-content/plugins/dhl-for-woocommerce/pr-dhl-woocommerce.php(250): PR_DHL _WC->get_dhl_factory()\n#4 /var/www/domain.redacted/public_html/wp-content/plugins/dhl-for-woocommerce/pr-dhl-woocommerce.php(200): PR_DH L_WC->get_pr_dhl_wc_product()\n#5 /var/www/domain.redacted/public_html/wp-i in /var/www/domain.redacted/public_html/wp-content/plugins/dhl-f or-woocommerce/includes/pr-dhl-api/class-pr-dhl-api-deutsche-post.php on line 117

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Shadi Manna

    (@shadim)

    Did you just install this for the first time or did you upgrade the plugin? Maybe not all of the files were copied over to the plugin folder?

    Hi @shadim,

    I got the same problem, tried versions 2.2.4 and 2.2.5.

    PHP Fatal error:  Uncaught Error: Class 'PR\DHL\REST_API\Drivers\WP_API_Driver' not found in /home/j6noi206yu/domains/godert.me/web/app/plugins/dhl-for-woocommerce/includes/pr-dhl-api/class-pr-dhl-api-deutsche-post.php:117
    Stack trace:
    #0 /home/j6noi206yu/domains/godert.me/web/app/plugins/dhl-for-woocommerce/includes/pr-dhl-api/class-pr-dhl-api-deutsche-post.php(77): PR_DHL_API_Deutsche_Post->create_api_driver()
    #1 /home/j6noi206yu/domains/godert.me/web/app/plugins/dhl-for-woocommerce/includes/pr-dhl-api/class-pr-dhl-api-factory.php(104): PR_DHL_API_Deutsche_Post->__construct('NL')
    #2 /home/j6noi206yu/domains/godert.me/web/app/plugins/dhl-for-woocommerce/pr-dhl-woocommerce.php(391): PR_DHL_API_Factory::make_dhl('NL')
    #3 /home/j6noi206yu/domains/godert.me/web/app/plugins/dhl-for-woocommerce/pr-dhl-woocommerce.php(250): PR_DHL_WC->get_dhl_factory()
    #4 /home/j6noi206yu/domains/godert.me/web/app/plugins/dhl-for-woocommerce/pr-dhl-woocommerce.php(200): PR_DHL_WC->get_pr_dhl_wc_product()
    #5 /home/j6noi206yu/domains/godert.me/web/wp/ in /home/j6noi206yu/domains/godert.me/web/app/plugins/dhl-for-woocommerce/includes/pr-dhl-api/class-pr-dhl-api-deutsche-post.php on line 117
    Fatal error: Uncaught Error: Class 'PR\DHL\REST_API\Drivers\WP_API_Driver' not found in /home/j6noi206yu/domains/godert.me/web/app/plugins/dhl-for-woocommerce/includes/pr-dhl-api/class-pr-dhl-api-deutsche-post.php:117
    Stack trace:
    #0 /home/j6noi206yu/domains/godert.me/web/app/plugins/dhl-for-woocommerce/includes/pr-dhl-api/class-pr-dhl-api-deutsche-post.php(77): PR_DHL_API_Deutsche_Post->create_api_driver()
    #1 /home/j6noi206yu/domains/godert.me/web/app/plugins/dhl-for-woocommerce/includes/pr-dhl-api/class-pr-dhl-api-factory.php(104): PR_DHL_API_Deutsche_Post->__construct('NL')
    #2 /home/j6noi206yu/domains/godert.me/web/app/plugins/dhl-for-woocommerce/pr-dhl-woocommerce.php(391): PR_DHL_API_Factory::make_dhl('NL')
    #3 /home/j6noi206yu/domains/godert.me/web/app/plugins/dhl-for-woocommerce/pr-dhl-woocommerce.php(250): PR_DHL_WC->get_dhl_factory()
    #4 /home/j6noi206yu/domains/godert.me/web/app/plugins/dhl-for-woocommerce/pr-dhl-woocommerce.php(200): PR_DHL_WC->get_pr_dhl_wc_product()
    #5 /home/j6noi206yu/domains/godert.me/web/wp/ in /home/j6noi206yu/domains/godert.me/web/app/plugins/dhl-for-woocommerce/includes/pr-dhl-api/class-pr-dhl-api-deutsche-post.php on line 117
    Error: There has been a critical error on your website.Learn more about debugging in WordPress. There has been a critical error on your website.
    Thread Starter Gaillimh

    (@gaillimh)

    Installed first time, Shadi.

    Thanks.

    Plugin Author Shadi Manna

    (@shadim)

    @florisb Is this also the first time you are installing the plugin?

    Can we continue this conversation via email, please contact me at “dhlsupport [at] progressusmarketing.com” so I can review your site.

    The same problem

    Fatal error: Uncaught Error: Class ‘PR\DHL\REST_API\Drivers\WP_API_Driver’ not found in /var/www/latrika.com/data/www/latrika.com/wp-content/plugins/dhl-for-woocommerce/includes/pr-dhl-api/class-pr-dhl-api-deutsche-post.php:117 Stack trace: #0 /var/www/latrika.com/data/www/latrika.com/wp-content/plugins/dhl-for-woocommerce/includes/pr-dhl-api/class-pr-dhl-api-deutsche-post.php(77): PR_DHL_API_Deutsche_Post->create_api_driver() #1 /var/www/latrika.com/data/www/latrika.com/wp-content/plugins/dhl-for-woocommerce/includes/pr-dhl-api/class-pr-dhl-api-factory.php(104): PR_DHL_API_Deutsche_Post->__construct(‘RU’) #2 /var/www/latrika.com/data/www/latrika.com/wp-content/plugins/dhl-for-woocommerce/pr-dhl-woocommerce.php(406): PR_DHL_API_Factory::make_dhl(‘RU’) #3 /var/www/latrika.com/data/www/latrika.com/wp-content/plugins/dhl-for-woocommerce/pr-dhl-woocommerce.php(252): PR_DHL_WC->get_dhl_factory() #4 /var/www/latrika.com/data/www/latrika.com/wp-content/plugins/dhl-for-woocommerce/pr-dhl-woocommerce.php(202): PR_DHL_WC->get_pr_dh in /var/www/latrika.com/data/www/latrika.com/wp-content/plugins/dhl-for-woocommerce/includes/pr-dhl-api/class-pr-dhl-api-deutsche-post.php on line 117

    Latest Woo, WP and php 7.4

    Plugin Author Shadi Manna

    (@shadim)

    Have you used the plugin successfully before? It seems like all of the files were not downloaded and installed, you might want to delete the plugin and reinstall it.

    @shadim
    Thank you for the quick response.

    No, It’s a fresh installation. I tried to delete and then install it again – the same problem 🙁

    And not plugin related question – can you help me to find a page where I can get credentials for the plugin?
    We use this login page: https://mydhl.express.dhl/ru/ru/auth/login.html . But I can’t find any API related settings.

    Thank you so much.

    Plugin Author Shadi Manna

    (@shadim)

    Which country is your webshop based in?

    @shadim Russia

    Plugin Author Shadi Manna

    (@shadim)

    Unfortunately, the plugin does not support that country at the moment.

    Oh, ok, got you. Thank you

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘PHP Fatal error: Uncaught Error: Class ‘PR’’ is closed to new replies.