Title: Fatal error with PHP 8
Last modified: May 10, 2021

---

# Fatal error with PHP 8

 *  Resolved [hoog](https://wordpress.org/support/users/dutchdeveloper/)
 * (@dutchdeveloper)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-with-php-8-3/)
 * Hi,
 * When i try to use PHP 8 with the DHL plugin i’m getting the following fatal error:
 * PHP Fatal error: Uncaught Error: Class “DHLPWC_Controller_Isolated_Load_Switcher”
   not found in /var/www/vhosts/donza.nl/httpdocs/wp-content/plugins/dhl-for-woocommerce/
   dhlpwoocommerce/dhlpwoocommerce.php:57″
 * Should the plugin be working on PHP8?

Viewing 7 replies - 1 through 7 (of 7 total)

 *  [Shin Ho](https://wordpress.org/support/users/shindhl/)
 * (@shindhl)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-with-php-8-3/#post-14424352)
 * Hi dutchdeveloper,
 * Thanks for using the DHL for WooCommerce plugin. Currently the plugin has not
   been optimized yet for PHP 8, but it’s in our immediate radar and tasked in our
   backlog. For now, PHP 7.4 or lower is recommended.
 * I’ve added a note to update this ticket to notify you when changes are live.
 * Greetings,
    Shin Ho Plugin Development Team DHL Parcel Netherlands
 *  [Albert Brückmann](https://wordpress.org/support/users/planetshaker/)
 * (@planetshaker)
 * [4 years, 12 months ago](https://wordpress.org/support/topic/fatal-error-with-php-8-3/#post-14552860)
 * Hello,
 * we’re getting a fatal error even with 7.4 – but strangely, only in the frontend.
   The backend still works.
 * Any idea?
 *  [Roland](https://wordpress.org/support/users/mediaventa/)
 * (@mediaventa)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-with-php-8-3/#post-14980897)
 * Hi Shin Ho,
 * I also got errors with PHP 8.0 and switched back to PHP 7.4.
    Maybe you are interested
   in the error code from my German website:
 * Aktuelles Plugin: DHL for WooCommerce (Version 2.6.1)
    PHP-Version 8.0.10-he.
   0
 * Fehler-Details
    ============== Ein Fehler vom Typ E_ERROR wurde in der Zeile 
   1047 der Datei /is/htdocs/…/wp-content/plugins/dhl-for-woocommerce/lib/PDFMerger/
   fpdf/fpdf.php verursacht. Fehlermeldung: Uncaught Error: Call to undefined function
   get_magic_quotes_runtime() in /is/htdocs/…/wp-content/plugins/dhl-for-woocommerce/
   lib/PDFMerger/fpdf/fpdf.php:1047 Stack trace: #0 /is/htdocs/…/wp-content/plugins/
   dhl-for-woocommerce/lib/PDFMerger/fpdf/fpdf.php(81): FPDF->_dochecks() #1 /is/
   htdocs/…/wp-content/plugins/dhl-for-woocommerce/lib/PDFMerger/PDFMerger.php(80):
   FPDF->__construct() #2 /is/htdocs/…/wp-content/plugins/dhl-for-woocommerce/includes/
   abstract-pr-dhl-wc-order.php(1227): PR_DHL\lib\PDFMerger\PDFMerger->merge(‘file’,‘/
   is/htdocs/wp10…’) #3 /is/htdocs/…/wp-content/plugins/dhl-for-woocommerce/includes/
   abstract-pr-dhl-wc-order.php(1188): PR_DHL_WC_Order->merge_label_files_pdf(Array)#
   4 /is/htdocs/…/wp-content/plugins/dhl-for-woocommerce/includes/abstract-pr-dhl-
   wc-order.php(1105): PR_DHL_WC_Order->merge_label_files(Array) #5 /is/htdocs/…/
   wp-content/plugins/dhl-for-woocommerce/includes/abstract-pr-dhl-wc-order.php(
   931): PR_DHL_WC_Order->process_bulk_actions(‘pr_dhl_create_l…’, Array, 13) #6/
   is/htdocs/…/wp-includes/class-wp-hook.php(303): PR_DHL_WC_Order->process_orders_bulk_actions(”)#
   7 /is/htdocs/…/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters(NULL,
   Array) #8 /is/htdocs/…/wp-includes/plugin.php(470): WP_Hook->do_action(Array)#
   9 /is/htdocs/…/wp-admin/admin.php(374): do_action(‘load-edit.php’) #10 /is/htdocs/…/
   wp-admin/edit.php(10): require_once(‘/is/htdocs/wp10…’) #11 {main}
 * Best, Roland
 *  Plugin Author [Progressus](https://wordpress.org/support/users/shadim/)
 * (@shadim)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-with-php-8-3/#post-14983355)
 * [@mediaventa](https://wordpress.org/support/users/mediaventa/) we are in the 
   process of switching this library with one that is compatible with PHP 8. We 
   hope to have this done soon.
 *  [Shin Ho](https://wordpress.org/support/users/shindhl/)
 * (@shindhl)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/fatal-error-with-php-8-3/#post-15227479)
 * Hi [@dutchdeveloper](https://wordpress.org/support/users/dutchdeveloper/),
 * Sorry for the late reply. We have fixed the autoloader issue in version 2.5.11
   and be compatible with PHP8.
 * Greetings,
    Shin Ho Plugin Development Team DHL Parcel Netherlands
 *  [frosch-team](https://wordpress.org/support/users/frosch-team/)
 * (@frosch-team)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/fatal-error-with-php-8-3/#post-15296348)
 * Hi,
    we use Version von DHL – 2.7.6 and PHP 8.1 and get fatal error all to undefined
   function get_magic_quotes_runtime() in /wp-content/plugins/dhl-for-woocommerce/
   lib/PDFMerger/fpdf/fpdf.php:1047 Stack trace: #0 Is this the same Problem ? Can
   you help me?
 *  Plugin Author [Progressus](https://wordpress.org/support/users/shadim/)
 * (@shadim)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/fatal-error-with-php-8-3/#post-15296693)
 * [@frosch-team](https://wordpress.org/support/users/frosch-team/) we are releasing
   a new version of the plugin that will support PHP 8 next week.
 * If you would like to test it ahead of time please reach out to “dhlsupport [at]
   progressusmarketing.com”.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Fatal error with PHP 8’ is closed to new replies.

 * ![](https://ps.w.org/dhl-for-woocommerce/assets/icon.svg?rev=1777040)
 * [DHL Shipping Germany for WooCommerce](https://wordpress.org/plugins/dhl-for-woocommerce/)
 * [Support Threads](https://wordpress.org/support/plugin/dhl-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/dhl-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/dhl-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/dhl-for-woocommerce/reviews/)

 * 7 replies
 * 6 participants
 * Last reply from: [Progressus](https://wordpress.org/support/users/shadim/)
 * Last activity: [4 years, 4 months ago](https://wordpress.org/support/topic/fatal-error-with-php-8-3/#post-15296693)
 * Status: resolved