• Resolved nagayama

    (@megdai)


    Hello,

    I am experiencing a fatal error when accessing the settings page of the Print Invoice & Delivery Notes for WooCommerce plugin, which prevents me from changing or saving any settings.

    Below are the details of my environment and the exact error message.

    Environment

    • WordPress: 6.9
    • WooCommerce: 10.4.3
    • PHP: 8.2.28

    Error message

    Fatal error: Uncaught TypeError: Cannot access offset of type string on string 
    in /wp-content/plugins/woocommerce-delivery-notes/includes/class-wcdn-settings.php:328
    
    Stack trace:
    #0 /wp-includes/class-wp-hook.php(341): WCDN_Settings->add_assets('')
    #1 /wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters('', Array)
    #2 /wp-includes/plugin.php(522): WP_Hook->do_action(Array)
    #3 /wp-content/plugins/woocommerce/includes/admin/class-wc-admin-settings.php(176): do_action('woocommerce_settings_page_init')
    #4 /wp-content/plugins/woocommerce/includes/admin/class-wc-admin-menus.php(358): WC_Admin_Settings::output()
    #5 /wp-includes/class-wp-hook.php(341): WC_Admin_Menus->settings_page('')
    #6 /wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters('', Array)
    #7 /wp-includes/plugin.php(522): WP_Hook->do_action(Array)
    #8 /wp-admin/admin.php(264): do_action('woocommerce_page_wc-settings')
    #9 {main}

    This error occurs consistently when opening the WooCommerce settings page related to this plugin.

    Could you please advise whether this is a known compatibility issue with PHP 8.2 or WooCommerce 10.4.3, or if there is a recommended fix or workaround?

    Thank you very much for your support.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support anjitha21

    (@anjitha21)

    Hi @megdai ,

    This is a known issue, and our developers have already reviewed it. We’ve prepared a patch to resolve the error and I’m sharing it with you below.

    You can download the patch here: https://www.dropbox.com/scl/fi/kk2bh2cprs8rve6w3b12z/class-wcdn-settings.php?rlkey=deke459yddwe1yo2175k16nxt&st=8ljgutko&dl=0

    After downloading the file, you can replace with the original file at \plugins\woocommerce-delivery-notes\includes\ via FTP.

    The patch makes the necessary changes to fix the bug and has been tested thoroughly. Please make sure you take a backup before replacing the file.

    We will be fixing this issue in our next update.

    Thanks again for your patience and understanding!

    Thread Starter nagayama

    (@megdai)

    Hi there,

    I wanted to let you know that I applied the patch for class-wcdn-settings.php,
    and it fixed the issue perfectly.

    Thanks a lot for your prompt help. Much appreciated!

    Best regards,

    Plugin Support anjitha21

    (@anjitha21)

    Hi @megdai ,

    Thank you for the update! I’m really glad to hear that applying the patch for class-wcdn-settings.php resolved the issue.

    Your feedback helps other users and motivates our team to keep improving.

    You can leave a review here:
    https://ww.wp.xz.cn/support/plugin/woocommerce-delivery-notes/reviews/

    Please feel free to reach out if you need any further assistance.

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

You must be logged in to reply to this topic.