Tagged: 

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #1234082

    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.

    #1234549

    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

    #1235040
    This reply has been marked as private.
    #1235045

    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.

    #1235968

    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

    #1237629

    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?

    #1237630

    Hi,

    I’m glad that this was resolved. Did you need additional help with this topic or shall we close?

    Best regards,
    Jordan Shannon

    #1237642

    Yes. OK to close. Thank you.

    #1237647

    Hi,

    If you need additional help, please let us know here in the forums.

    Best regards,
    Jordan Shannon

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Too few arguments to function av_responsive_images::handler_wp_jpeg_quality()’ is closed to new replies.