• Resolved ads97129

    (@ads97129)


    Hello,

    I try to compress images on 2 websites . I can compress images individually but I cannot have list of uncompressed images. An internal server error appears in console.

    Same problem on local. I have checked error log in apache folder :

    [Fri Aug 04 17:36:56.719021 2023] [php:error] [pid 18496:tid 1880] [client 127.0.0.1:56897] PHP Fatal error: Uncaught ArgumentCountError: 5 arguments are required, 4 given in C:\xampp\htdocs\archipel2\wp-content\plugins\wp-optimize\includes\class-updraft-smush-manager-commands.php:175\nStack trace:\n#0 C:\xampp\htdocs\archipel2\wp-content\plugins\wp-optimize\includes\class-updraft-smush-manager-commands.php(175): sprintf(‘Depuis la derni…’, ‘1120’, ‘0 bytes’, ‘0.00%’)\n#1 C:\xampp\htdocs\archipel2\wp-content\plugins\wp-optimize\includes\class-updraft-smush-manager.php(190): Updraft_Smush_Manager_Commands->get_ui_update(Array)\n#2 C:\xampp\htdocs\archipel2\wp-includes\class-wp-hook.php(308): Updraft_Smush_Manager->updraft_smush_ajax(”)\n#3 C:\xampp\htdocs\archipel2\wp-includes\class-wp-hook.php(332): WP_Hook->apply_filters(”, Array)\n#4 C:\xampp\htdocs\archipel2\wp-includes\plugin.php(517): WP_Hook->do_action(Array)\n#5 C:\xampp\htdocs\archipel2\wp-admin\admin-ajax.php(188): do_action(‘wp_ajax_updraft…’)\n#6 {main}\n thrown in C:\xampp\htdocs\archipel2\wp-content\plugins\wp-optimize\includes\class-updraft-smush-manager-commands.php on line 175, referer: https://localhost/

    Any idea?
    Thanks in the advance,
    regards.

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Support Kowsar Hossain

    (@kowsar89)

    @ads97129 We apologize for the inconvenience you’re experiencing. Before we can proceed further, could you kindly provide the following information:

    1. Which Operating System/Server architecture are you using? What version of PHP is installed? You can find these information in the screenshot provided here, screenshot: https://prnt.sc/aumv3wJPUcOA

    2. Please let us know the version of WP-Optimize you currently have installed.

    Thank you.

    Thread Starter ads97129

    (@ads97129)

    Hello,

    Thank you for your help.

    Web site on local : Windows NT 10.0 AMD64, PHP 8.1.17

    Website online : Linux 5.4.0-124-generic x86_64, PHP 8.1.19

    Version of WP-Optimize : 3.2.16

    Plugin Support Kowsar Hossain

    (@kowsar89)

    @ads97129

    I want to confirm a few things, please assist me with the following:

    1. It appears that the error log you’ve provided is from the local environment. Could you kindly share the error log from the live site instead?

    2. Is your website in English, or has it been translated into another language?

    Thanks

    Thread Starter ads97129

    (@ads97129)

    Hello,

    I will ask to my host for error log, but I think that the error is the same in live site because the error in console is the same. Each time I want to update uncompressed images, this message appears in console: XHR POST https://localhost/archipel2/wp-admin/admin-ajax.php on local site and XHR POST https://www.archipel-des-sciences.org/wp-admin/admin-ajax.php on live site.

    Websites are not in English but in French.

    Thanks for your help.

    Regards

    Plugin Support Kowsar Hossain

    (@kowsar89)

    @ads97129 Based on the error log you provided, the issue originates from line 175 in the file “class-updraft-smush-manager-commands.php”. This line contains the following sentence: Since your compression statistics were last reset, a total of %d image(s) were compressed on this site, saving approximately %s of space at an average of %02d percent per image.

    Have you, by any chance, translated this sentence to French? If so, please check if you translated it correctly. Additionally, switch back to the English language temporarily and check if the issue persists. Thank you.

    Thread Starter ads97129

    (@ads97129)

    Hello,

    I haven’t translated this sentence. I have deactivated French translations and the issue disappeared.

    Thank you.

    Regards

    Plugin Support Kowsar Hossain

    (@kowsar89)

    Please update WP-Optimize to the latest version (v3.2.17) and perform a recheck on the issue. If the problem continues to persist, please let us know. Thank you.

    Thread Starter ads97129

    (@ads97129)

    Hello,

    I have updated WP-Opimize and it’s working. But it doesn’t find images before 2022/11, only images in folders between 2023/08 and 2022/11. Is it normal?

    Thank you very much for the update.

    Regards

    Plugin Support Kowsar Hossain

    (@kowsar89)

    @ads97129 Do these images appear in the WordPress Media Library?

    Thread Starter ads97129

    (@ads97129)

    Hello,

    Yes, these images appear in WordPress media library.

    Plugin Contributor Venkat Raj

    (@webulous)

    @ads97129 Could you please provide a screenshot of Media Library and Uncompressed images screen?

    It is possible that prior to 2022/11, you have used another image compression plugin/service?

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Internal Server Error’ is closed to new replies.