• Hello,

    I’ve received this messages while using this plugin:
    Notice: Undefined index: name in wp-content/plugins/windows-azure-storage/windows-azure-storage.php on line 408

    Notice: Undefined index: _wpnonce in wp-content/plugins/windows-azure-storage/windows-azure-storage.php on line 408

    I’ve been looking to the code and I’ve this sugestion to you:
    In line 408, instead of

    $post_array = wp_parse_args( $post_array, array(
    	'item_id' => $post_array['name'] . '_' . $post_array['_wpnonce'],
    ) );

    You can use this

    $post_array_name = isset($post_array['name']) ? $post_array['name'] : '';
    $post_array_wponce = isset($post_array['_wpnonce']) ? $post_array['_wpnonce'] : '';
    $post_array = wp_parse_args( $post_array, array(
    	'item_id' => $post_array_name . '_' . $post_array_wponce,
    ) );

    This way it’s possible to prevent those errors when those variables are null.

    Thanks

    • This topic was modified 3 years, 4 months ago by marioteixeira.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Some errors’ is closed to new replies.