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.
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.