• Resolved hoog

    (@dutchdeveloper)


    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)
  • Plugin Author Shin Ho

    (@shindhl)

    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

    (@planetshaker)

    Hello,

    we’re getting a fatal error even with 7.4 – but strangely, only in the frontend. The backend still works.

    Any idea?

    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 Shadi Manna

    (@shadim)

    @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.

    Plugin Author Shin Ho

    (@shindhl)

    Hi @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

    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 Shadi Manna

    (@shadim)

    @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.