• Sid

    (@sidgtb)


    WordPress version 6.8.2 Active theme: Divi (version 4.27.4) Current plugin: Connections Business Directory (version 10.4.65) PHP version 8.3.24

    Error Details ============= An error of type E_COMPILE_ERROR was caused in line 130 of the file /wp-content/plugins/connections/includes/image/editors/class-wp-image-editor-gmagick.php. Error message: Declaration of WP_Image_Editor_Gmagick::set_quality($quality = null) must be compatible with WP_Image_Editor::set_quality($quality = null, $dims = [])

    Need assistance with this please. Is rolling back to older PHP the only option ?

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • You need tu update your file : /wp-content/plugins/connections/includes/image/editors/class-wp-image-editor-gmagick.php

    public function set_quality( $quality = null) {


    --->
    public function set_quality( $quality = null , $dims = [] ) {

    More details

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

    Line 130

    Error message:

    Fatal error: Declaration of WP_Image_Editor_Gmagick::set_quality($quality = null) must be compatible with WP_Image_Editor::set_quality($quality = null, $dims = [])

    To fix it, I updated the method signature from:

    public function set_quality($quality = null) {

    to:

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

    This change aligns the method with the parent class definition in WP core and resolves the fatal error on PHP 8+.

    • This reply was modified 6 months, 2 weeks ago by noelhunter.
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Fatal Error – Connections’ is closed to new replies.