• Resolved wagnerjoerg1965

    (@wagnerjoerg1965)


    I am using WordPress 5.3 German and WooCommerce 3.8.1 and the DHL Plugin 1.6.0. Since the last Update, I get in the Woocommerce Orders/DHL section the message: Notice: Undefined index:
    Notice: Undefined index: dhl_default_age_visual in /pages/20/4c/d0014586/home/htdocs/Wordpress_01/wp-content/plugins/dhl-for-woocommerce/includes/class-pr-dhl-wc-order-paket.php on line 238

    in actually each DHL Section. Does anybody has an idea what is going wrong ?
    It seems that the Plugin works correctly, what the messages make me feel uneasy.

    Regards
    Joerg

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

    (@shadim)

    Please save the settings under “Shipping” and let me know if this issue still persists.

    Thread Starter wagnerjoerg1965

    (@wagnerjoerg1965)

    it works thanks a lot

    @shadim,

    this thread should not be marked as resolved. Saving a setting is not a fix; it simply creates the options in the database that the plugin accesses without checking their existence.

    To really fix this, the plugin should properly check if an array key exists before accessing it. And WP_DEBUG should of course be enabled when testing the plugin.

    For the record, these are the array keys the plugin accesses:

    • dhl_default_age_visual
    • dhl_default_additional_insurance
    • dhl_default_no_neighbor
    • dhl_default_named_person
    • dhl_default_premium
    • dhl_default_bulky_goods
    • dhl_default_identcheck
    • dhl_default_identcheck_dob
    • dhl_default_is_codeable
    • dhl_default_routing
    Plugin Author Shadi Manna

    (@shadim)

    @tyrannous a fix was made in v1.6.1, please confirm on your end.

    Thread Starter wagnerjoerg1965

    (@wagnerjoerg1965)

    Looks good … thanks

    @shadim,

    the problem still exists (in v1.6.5) and still it is no fix to save the settings; this is only a workaround. The plugin is buggy and it needs to be fixed.

    Sorry, but that’s just embarrassing for the official DHL for WooCommerce plugin.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Notice: Undefined index – since new WordPress Update’ is closed to new replies.