Tagged: bug
Since the latest update, I’m seeing the following error:
PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function av_responsive_images::handler_wp_jpeg_quality(), 1 passed in [path-removed]/wp-includes/class-wp-hook.php on line 287 and exactly 2 expected in [path-removed]/wp-content/themes/enfold/framework/php/class-responsive-images.php:310
The site isn’t getting much traffic, but I see the error once for each of the past 4 days.
Hey Hugh,
Sorry for the problem. Please send us a temporary WordPress admin login and login URL so that we can have a closer look. You can post the details in the Private Content section of your reply.
Best regards,
Rikard
I’ve had a look at the code, and I thin the problem is with the$context
argument, which is expected by handler_wp_jpeg_quality()
, but isn’t available to the jpeg_quality
filter, so is never passed.
To overcome this, handler_wp_jpeg_quality()
should have a default value for $context
in the declaration or only have one argument and somehow figure out the context before applying the avf_jpeg_quality
filter.
Hi,
Thank you for the info. We’ll forward this thread to our channel and maybe include the missing parameter in the next patch.
Best regards,
Ismael
The problem seems to be resolved in 4.7.6.2. Thank you.
For some reason, the changelog hasn’t been updated with this version. Was that intentional?
Hi,
I’m glad that this was resolved. Did you need additional help with this topic or shall we close?
Best regards,
Jordan Shannon
Yes. OK to close. Thank you.
Hi,
If you need additional help, please let us know here in the forums.
Best regards,
Jordan Shannon