• Resolved Irian

    (@irian)


    Good day,

    I noticed in my error log the following two errors appearing many times.

    • PHP Notice: Undefined index: url in …/wp/wp-content/plugins/hummingbird-performance/core/modules/minify/class-minify-group.php on line 1226
    • PHP Notice: Undefined index: file in …/wp/wp-content/plugins/hummingbird-performance/core/modules/minify/class-minify-group.php on line 1229

    I fixed it by changing the code from

    $url = empty( $suffix ) ? $upload['url'] : str_replace( $suffix, '', $upload['url'] );
    
    update_post_meta( $group->file_id, '_url', $url );
    update_post_meta( $group->file_id, '_path', $upload['file'] );

    to

    if ( array_key_exists( 'url', $upload ) && array_key_exists( 'file', $upload ) ) {
      $url = empty( $suffix ) ? $upload['url'] : str_replace( $suffix, '', $upload['url'] );
    
      update_post_meta( $group->file_id, '_url', $url );
      update_post_meta( $group->file_id, '_path', $upload['file'] );
    }

    Maybe you could change this too in the next release?

    Kind regards,
    Irian

    • This topic was modified 3 years, 8 months ago by Irian.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @irian,

    Thank you for contacting us.

    Could you try resetting Hummingbird settings to default or reinstalling the plugin and let us know if the notice persists?

    I will also forward your code reference to our plugin team for further check.

    Best,
    Jonathan S

    Plugin Support Patrick – WPMU DEV Support

    (@wpmudevsupport12)

    Hi @irian

    I hope you are doing well and safe!

    We haven’t heard from you in a while, I’ll mark this thread as resolved.

    Feel free to let us know if you have any additional question or problem.
    Best Regards
    Patrick Freitas

    Thread Starter Irian

    (@irian)

    Hi Patrick,

    sorry for the late reply. I did not have time to check this earlier.

    I noticed however, that the plugin also caused the following error:

    Error Establishing a Database Connection

    In the error log, the following error showed up many times:

    User ... already has more than 'max_user_connections' active connections.

    I have disabled the plugin, and now both errors are gone.

    Kind regards,
    Irian

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Undefined index: url & file’ is closed to new replies.