openedx / openedx-wordpress-ecommerce

You can sell your Open edX courses with WooCommerce using this free and open-source WordPress plugin.
https://docs.openedx.org/projects/wordpress-ecommerce-plugin/en/latest/index.html
GNU General Public License v2.0
11 stars 8 forks source link

["BUG"]The plugin could not be activated because it caused an error that could not be prevented. #62

Closed anonim-01 closed 4 months ago

anonim-01 commented 1 year ago

Describe the bug hata

The plugin could not be activated because it caused an error that could not be prevented.I get this error, it was added, but

[url=https://www.hizliresim.com/nr1qvdg][img]https://i.hizliresim.com/nr1qvdg.jpg[/img][/url]

MaferMazu commented 12 months ago

Hello, @anonim-01, thanks for reporting the bug.

Message in WordPress that @anonim-01 reports: "The plugin could not be activated because it caused an unavoidable error."

Could you let me know if you installed it from the ZIP file in the release? Screenshot from 2023-11-09 15-14-12

MaferMazu commented 5 months ago

@anonim-01, please let me know if this still happens.

felipemontoya commented 5 months ago

@anonim-01 Also it would be very helpful if you post the screenshot in english as the screenshot you provided is difficult to understand.

@MaferMazu given that this has been open without information from the reporter for quite a while, what do you think about having a 6 months deadline for closing reported issues without follow up?

bmtcril commented 4 months ago

Hi, all. I was attempting to install this and ran into a similar error (possibly the same one). Here are my steps to reproduce:

Wordpress logs state:

PHP Fatal error: Uncaught Error: Failed opening required '/var/www/html/wp-content/plugins/openedx-wordpress-ecommerce-2.0.4/vendor/autoload.php' (include_path='.:/usr/local/lib/php') in /var/www/html/wp-content/plugins/openedx-wordpress-ecommerce-2.0.4/includes/model/class-openedx-commerce-api-calls.php:14\nStack trace:\n#0 /var/www/html/wp-content/plugins/openedx-wordpress-ecommerce-2.0.4/includes/class-openedx-commerce.php(171): include_once()\n#1 /var/www/html/wp-content/plugins/openedx-wordpress-ecommerce-2.0.4/includes/class-openedx-commerce.php(74): OpenedX_Commerce\\Openedx_Commerce->load_dependencies()\n#2 /var/www/html/wp-content/plugins/openedx-wordpress-ecommerce-2.0.4/openedx-commerce.php(109): OpenedX_Commerce\\Openedx_Commerce->__construct()\n#3 /var/www/html/wp-content/plugins/openedx-wordpress-ecommerce-2.0.4/openedx-commerce.php(112): openedx_commerce_plugin_run()\n#4 /var/www/html/wp-admin/includes/plugin.php(2389): include_once('/var/www/html/w...')\n#5 /var/www/html/wp-admin/includes/plugin.php(675): plugin_sandbox_scrape('openedx-wordpre...')\n#6 /var/www/html/wp-admin/plugins.php(60): activate_plugin('openedx-wordpre...', 'https://wordpre...', false)\n#7 {main}\n thrown in /var/www/html/wp-content/plugins/openedx-wordpress-ecommerce-2.0.4/includes/model/class-openedx-commerce-api-calls.php on line 14, referer: https://wordpress.tutor-nightly-local.orb.local/wp-admin/update.php?action=upload-plugin

And indeed there is no commerce-2.0.4/vendor/autoload.php file in that location.

Screenshot 2024-06-25 at 12 44 13 PM Screenshot 2024-06-25 at 12 44 26 PM
bmtcril commented 4 months ago

I did also try to downgrade Wordpress to the 6.3.1 listed in the readme, but Woocommerce will no longer install on a version that old.

MaferMazu commented 4 months ago

Hello @bmtcril, thanks for reporting this. I will take a look ASAP, but I think your report doesn't relate to the first one reported here. I believe it is associated with some recent changes I made to have a ZIP file only with the necessary files #76.

I will take a look and keep you posted. Thanks again for the report.

MaferMazu commented 4 months ago

@bmtcril, I created this ZIP file with the fix, would you mind install and activate this version?

The formal PR is #82

I am attentive to any feedback.

bmtcril commented 4 months ago

Yep, that zip works for me. Thanks!