Skip Navigation

[Resolved] Types 3.3.11 issue with Smush plugin

This thread is resolved. Here is a description of the problem and solution.

Problem:
The user was having fatal errors when saving posts with image custom fields due to a conflict with WP Smush plugin.

Solution:
A fix will be released very soon, on the meantime, we published a path on this errata https://toolset.com/errata/fatal-error-in-image-optimisation-plugins-when-using-types-3-3-11/

This support ticket is created 4 years, 6 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 - - 9:00 – 13:00
14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 - - 14:00 – 18:00

Supporter timezone: Africa/Casablanca (GMT+01:00)

Tagged: 

This topic contains 4 replies, has 2 voices.

Last updated by coriP 4 years, 6 months ago.

Assisted by: Jamal.

Author
Posts
#1667195

Similar errors when using WP Smush: https://wordpress.org/plugins/wp-smushit/

Fatal error: Uncaught ArgumentCountError: Too few arguments to function SmushCoreCore::big_image_size_threshold(), 1 passed in /public_html/wp-includes/class-wp-hook.php on line 287 and exactly 4 expected in /public_html/wp-content/plugins/wp-smushit/core/class-core.php:662 Stack trace: #0 /public_html/wp-includes/class-wp-hook.php(287): SmushCoreCore->big_image_size_threshold(2560) #1 /public_html/wp-includes/plugin.php(206): WP_Hook->apply_filters(2560, Array) #2 /public_html/wp-content/plugins/types/vendor/toolset/types/embedded/includes/fields/image.php(36): apply_filters('big_image_size_...', 2560) #3 /public_html/wp-includes/class-wp-hook.php(289): WPCF_Fields::{closure}('hidden link...') #4 /public_html/wp-includes/plugin.php(206): WP_Hook->apply_filters('hidden link...', Array) #5 /public_html/wp-content/plugins/types/vendor/toolset/toolset-common/toolset-forms/classes/class.types.php(359): a in /public_html/wp-content/plugins/wp-smushit/core/class-core.php on line 662

UPDATE: After further testing, I disabled WP Smush and the issue still occurred. Rolled Types back to 3.3.10 and issue was fixed.

#1667203

Hello,

I was able to reproduce this issue too and I, now, escalated it to our 2nd Tier for further analysis. I'll get back to you as soon as possible.

Best regards,
Jamal

#1668043

This ticket is now escalated to our 2nd Tier for further analysis. I'll get back to you as soon as possible.

#1669487

Our developers have found a fix for this issue and an erratum containing a patch has been published here https://toolset.com/errata/fatal-error-in-image-optimisation-plugins-when-using-types-3-3-11/

I tested the patch for Smush plugin and it is working without issues. Please test on your site and let us know. Take a backup for security measures.

#1672451

My issue is resolved now. Thank you!