Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter williamcriteo

    (@williamcriteo)

    Looks like the /build/ folder wasn’t noticed on localhost and not commiting the file. I checked gitignore but that folder wasn’t ignored. the solution for me was to install the plugin via SFTP to the server and pull down via git which solved it

    Thread Starter williamcriteo

    (@williamcriteo)

    Hi sorry – the issue is that it can’t find a required file:

    Warning: require_once(build/shortpixel/autoload.php): failed to open stream: No such file or directory in /srv/bindings/[somepath]/code/wp-content/plugins/enable-media-replace/enable-media-replace.php on line 45 Fatal error: require_once(): Failed opening required ‘build/shortpixel/autoload.php’ (include_path=’.:/usr/share/pear:/usr/share/php’) in /srv/bindings/[somepath]/code/wp-content/plugins/enable-media-replace/enable-media-replace.php on line 45

    screenshot
    https://ibb.co/ZzSgrKR

    I’ve tried changing require_once(‘build/shortpixel/autoload.php’); to require_once(dirname(__FILE__) . ‘/build/shortpixel/autoload.php’); however this didn’t work.

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