• Resolved kletel

    (@kletel)


    I made a script to auto-update WordPress sites and plugins on a regular basis using wp-cli. It works fine for all the websites I’m hosting except for one which uses Imagify. When running wp core update --allow-root --path=/var/www/html or wp plugin update --all --allow-root --path=/var/www/html

    Or any other wp-cli commands on that site I get the error message

    PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 65536 bytes) in /var/www/html/wp-content/plugins/imagify/vendor/wordpress/php-mcp-schema/src/Common/Protocol/DTO/BaseMetadata.php on line 19

    Is a fix available for this ?

    • This topic was modified 2 weeks, 3 days ago by kletel.
Viewing 1 replies (of 1 total)
  • Plugin Support Saransh

    (@saranshwpm)

    Hi,

    Thank you for reaching out.

    From the error message, it looks like the PHP memory limit for your WP-CLI environment is being exhausted (currently 128 MB) while WordPress is loading, rather than the update command itself failing.

    Could you please try running the same command with a higher PHP memory limit, for example 256 MB or 512 MB, and let us know if the issue persists?

    Also, could you please share after hiding sensitive information:

    • Your Imagify version
    • The output of wp --info
    • The output of php -i | grep memory_limit

    This will help us determine whether the issue is related to the WP-CLI environment or something specific to Imagify.

    Best Regards,

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.