• Resolved Ingrid Azéma

    (@grigrid)


    Hello,

    I have installed Enable Media Replace on a multisite installation, and whether I try to enable it on the network or on a single site, I have a fatal when I try to enable it:

    Warning: file_get_contents(/var/www/cib/root/web/app/plugins/enable-media-replace/build/shortpixel/composer.json): Failed to open stream: No such file or directory in /var/www/cib/root/web/app/plugins/enable-media-replace/build/shortpixel/PackageLoader.php on line 22

    Fatal error: Uncaught Error: Class “EnableMediaReplace\ShortPixelLogger\ShortPixelLogger” not found in /var/www/cib/root/web/app/plugins/enable-media-replace/classes/emr-plugin.php:106 Stack trace: #0 /var/www/cib/root/web/app/plugins/enable-media-replace/enable-media-replace.php(97): EnableMediaReplace\EnableMediaReplacePlugin::get() #1 /var/www/cib/root/web/app/plugins/enable-media-replace/enable-media-replace.php(99): emr() #2 /var/www/cib/root/web/wp/wp-admin/includes/plugin.php(2318): include_once(‘/var/www/cib/ro…’) #3 /var/www/cib/root/web/wp/wp-admin/plugins.php(192): plugin_sandbox_scrape() #4 {main} thrown in /var/www/cib/root/web/app/plugins/enable-media-replace/classes/emr-plugin.php on line 106

    I tried to remove the plugin and install it again but the fatal is still present. Do you have any ideas of how to solve it?

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Gerard Blanco

    (@sixaxis)

    Hi Ingrid,

    A couple of questions:

    1. Does this happen on a different multisite, or is it only happening on this one?
    2. Can you try to enable it with all other plugins deactivated?
    3. What if you try to upload the plugin instead of installing it from the WordPress repository?

    Thanks.

    Thread Starter Ingrid Azéma

    (@grigrid)

    Hi Gerard,

    1. It happens only on this site
    2. I can’t really try this because some plugins such as ACF are required by the theme
    3. I try to install the plugin via composer and wpackagist (there is a composer.json file and a deployment pipeline that runs “composer install”). If instead I connect via SSH to the server and run “wp plugin install –activate enable-media-replace” it works fine.

    However, I need to make it work with the composer way

    Thread Starter Ingrid Azéma

    (@grigrid)

    Actually, the issue came from a bad configuration of the pipeline ??

    Thanks for your help.

    Plugin Support Gerard Blanco

    (@sixaxis)

    You are welcome, Ingrid! Glad to hear it got solved.

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.