Composer autoload isn’t correct loaded if WP itself uses composer
-
Hello,
I installed your awesome plugin and noticed an error: If the wordpress install, in which I install file-upload-types uses composer by itself, the following line of your plugin won’t work anymore:
file-upload-types.php:56
require_once ‘vendor/autoload.php’;PHP sees the vendor/autoload.php file in the root wordpress folder and doesn’t load the file-upload-types composer anymore.
I was required to change the line to the following to make the plugin work:
require_once __DIR__ . ‘/vendor/autoload.php’;Maybe you can consider this during the next update?
Thank you very much.
Kind regards
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Composer autoload isn’t correct loaded if WP itself uses composer’ is closed to new replies.