• I’m getting the following error when I access my directory: Warning: Declaration of WP_Image_Editor_Gmagick::set_quality($quality = NULL) should be compatible with WP_Image_Editor::set_quality($quality = NULL, $dims = Array) in /home/dldimlmy/public_html/wp-content/plugins/connections/includes/image/editors/class-wp-image-editor-gmagick.php on line 130

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • EBurden

    (@eburden)

    I am having the same, or a very similar issue, I think. My 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 = [])

    Thank you.

    I started receiving the same fatal error today after upgrading our development server to PHP 8.4, preceded by warnings of undefined variables in the image class. The messages:

    PHP Warning: Undefined variable $dst_w in /home/wp/public_html/wp-content/plugins/connections/includes/image/class.image.php on line 975
    PHP Warning: Undefined variable $dst_h in /home/wp/public_html/wp-content/plugins/connections/includes/image/class.image.php on line 976
    PHP Fatal error: Declaration of WP_Image_Editor_Gmagick::set_quality($quality = null) must be compatible with WP_Image_Editor::set_quality($quality = null, $dims = []) in /home/wp/public_html/wp-content/plugins/connections/includes/image/editors/class-wp-image-editor-gmagick.php on line 130

    • This reply was modified 10 months, 3 weeks ago by tmarnell. Reason: add line number

    Ah, I see there’s a fix in the “develop” branch on GitHub. When will it be included in automatic WordPress updates?

    There is a fix published on Github. It does work.

    https://github.com/Connections-Business-Directory/Connections/commit/4c96b290e9129bc98ae9de6a760b7ee98c592a8c

    A present this plugin is “banned” from ww.wp.xz.cn over a security issue. I believe the author is trying to rectify which would lead to a proper plugin update. (this is my understanding from my reading of the Github post.)

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Declaration of WP_Image_Editor_’ is closed to new replies.