• Resolved homu9

    (@homu9)


    When visiting /wp-admin/upload.php
    PHP Fatal error: Uncaught ArgumentCountError: 4 arguments are required, 3 given in /wp-content/plugins/wp-smushit/core/media-library/class-media-library-row.php:584

    I added $count_images to it, seems fixed it.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Jair – WPMU DEV Support

    (@wpmudevsupport15)

    Hello @homu9

    I tried to replicate this issue on a lab site but everything was working fine there. Checking the code, I can see why adding that line may fix this, but the original files of the plugin doesn’t have it, and I looked at different, older versions of the plugin and the code from that file hasn’t changed.

    Whatever is happening in your site it seems to be a conflict with another plugin, theme or even the configuration of your site. I suggest you to make a backup of the site, then run a Conflict Test by deactivating other plugins, and return to the default WordPress theme. The code that’s causing the error seems related to the translation of the site; if you changed the language of your site’s backend before, switch it back to English and see if the issue persist.

    Kind regards,
    Jair.

    Thread Starter homu9

    (@homu9)

    @wpmudevsupport15
    You are absolutely right.
    It is caused by wrong translation of zh-CN.

    . translators: %1$s: bytes savings, %2$s: percentage savings : core/media-library/class-media-library-row.php:396

    msgid "Reduced by %1$s (%2$s)"
    msgstr "%3$d个图像减少了%1$s(%2$s)"

    It inherits additional argument from the translation above.


    Plugin Support Nebu John – WPMU DEV Support

    (@wpmudevsupport14)

    Hi @homu9,

    Glad to know that you managed to resolve the issue.

    If you have found our plugin helpful, we kindly ask you to leave us a rating. Your support will motivate us to continue maintaining and offering the free version for everyone to use.

    https://wordpress.org/support/plugin/wp-smushit/reviews/

    Best Regards,
    Nebu John

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

The topic ‘PHP Fatal error: Uncaught ArgumentCountError’ is closed to new replies.