• melston

    (@melston)


    Hello. I logged into WordPress to add a new entry to our provider directory. From the dashboard, I clicked Connections / Manage. This is where I saw that there was a “critical error”. I’m not sure how to proceed in fixing this. I’ve never had an issue with it before (10+ years).
    WordPress v6.9
    PHP v8.2.30
    Please let me know if additional info is needed and how I need to proceed. Thanks!

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • asw

    (@astreetweb)

    Download Connections Version 10.4.67 update here: https://ww.wp.xz.cn/support/topic/critical-error-858/

    It fixed it for me.

    Dieter_Z

    (@dieter_z)

    Error in this file, line 130:

    /wp-content/plugins/connections/includes/image/editors/class-wp-image-editor-gmagick.php

    PHP enforces that when a child class overrides a parent method, the child’s method signature must be compatible with the parent’s. The parent class WP_Image_Editor::set_quality() was updated (likely in a recent WordPress core update) to accept a second parameter $dims = [] (image dimensions), making its signature:

    public function set_quality( $quality = null, $dims = array() )

    But this plugin’s WP_Image_Editor_Gmagick::set_quality() still had the old signature with only $quality. PHP sees this as an incompatible override and throws a fatal error.
    What was changed (line 130):
    The method signature was updated from:

    public function set_quality( $quality = null )

    to:

    public function set_quality( $quality = null, $dims = array() )

    And the parent::set_quality() call was also updated to pass $dims through. This is a common issue when WordPress core updates method signatures and third-party plugins haven’t caught up yet — you may want to check if the Connections plugin has a newer version available that addresses this.

    • This reply was modified 1 month ago by Dieter_Z.
Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.