• Resolved 47links

    (@47links)


    If the ‘type’ key is not defined in the $option array, the code keeps creating the following record in the log.

    Warning: Undefined array key "type"
    
    /wp-content/plugins/bp-restrict/includes/options/inc/extensions/customizer/extension_customizer.php in ReduxFramework_extension_customizer::_register_customizer_controls at line 507
Viewing 3 replies - 1 through 3 (of 3 total)
  • Hey there,

    Thanks for reaching out to us.

    With respect to your query here, would you mind elaborating on the exact replication process to this warning.

    I look forward to your reply.

    Kind Regards

    Thread Starter 47links

    (@47links)

    Don’t know how to replicate it exactly. A lot of people are using our site. And didn’t have time to investigate it how to replicate it.

    But this would stop the warning…

    /wp-content/plugins/bp-restrict/includes/options/inc/extensions/customizer/extension_customizer.php line 507

    Replacing…

    if ( $option['type'] != "heading" && $option['type'] != "import_export" && ! empty( $option['type'] ) ) {

    …with…

    if ( isset( $option['type'] ) && $option['type'] != "heading" && $option['type'] != "import_export" && ! empty( $option['type'] ) ) {

    Hey there,

    Thanks for the update.

    I’m glad to hear that you managed to have this figured out.

    Kind Regards

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Warning: Undefined array key “type”’ is closed to new replies.