onOffice-Web-Org / oo-wp-plugin

onOffice for WP-Websites
https://wp-plugin.onoffice.com
GNU General Public License v3.0
9 stars 9 forks source link

PHP Error on loading vendor packages #142

Closed swunderer closed 2 years ago

swunderer commented 2 years ago

Hi,

i tried using your plugin on wordpress - bedrock (roots.io Stack), and there is an issue, i want you to know: In plugin.php calling require 'vendor/autoload.php'; throws a PHP Fatal error: Uncaught Error: Class 'DI\ContainerBuilder' not found in /var/www/html/web/app/plugins/onoffice-for-wp-websites/plugin.php:68 on wp-cli. This could be mitigated by replacing the line with: require plugin_dir_path( __FILE__ ).'vendor/autoload.php';

I hope this is a viable fix. Best regards

jayay commented 2 years ago

Hi @swunderer,

Thanks for the bug report, we'll look into it. Would you be able to provide a minimal setup for bedrock to reproduce this bug?

michaelarnold-dev commented 2 years ago

@swunderer Thank you for your feedback. we will see how we can incorporate the feedback into further development.

jmaas-onoffice commented 2 years ago

It appears that this was fixed recently in #152.