fmido88 / moodle-enrol_wallet

Enrollment using wallet credit with coupons and using payments gateways with restrictions.
Other
4 stars 1 forks source link

Showing error Exception - Class 'core_payment\helper' not found #4

Closed development-csipl closed 11 months ago

development-csipl commented 1 year ago

We have added moodle-enrol_wallet plugin, however after adding the plugin. Website is showing below error.

Exception - Class 'core_payment\helper' not found. core_payment

Any suggestion would be helpful.

Thanks in advance.

fmido88 commented 1 year ago

Greetings, Yes indeed this happen for moodle versions less than 3.11 as there is no payment helper class yet, What version of moodle do you use?

fmido88 commented 1 year ago

To resolve this for now you can first delete settings.php file, then uninstall the plugin. For me in further updates I'll try to make the plugin compatible with lower versions of moodle

development-csipl commented 1 year ago

Thanks. We are using Moodle version 3.9.7. We have tried to download "Payment" folder from Moodle version 3.11 and uploaded on our version, however that did not work.

Any suggestion would be helpful.

Thanks

fmido88 commented 1 year ago

I think it is safer to update moodle version

fmido88 commented 1 year ago

Greetings @development-csipl In the latest version of this plugin, I add a check for the existance of payment classes before any action regarding it. You can try it now and feel free to report any new issue.

development-csipl commented 1 year ago

How can we downgrade the plugin for Moodle 3.9.

development-csipl commented 1 year ago

Greetings @development-csipl In the latest version of this plugin, I add a check for the existance of payment classes before any action regarding it. You can try it now and feel free to report any new issue.

We are facing same issue. Also getting below issue initially.

Install plugin from ZIP file Validating enrol_wallet ... Error [Error] Required Moodle version [2020110911] Installation aborted due to validation failure

fmido88 commented 1 year ago

@development-csipl that is because the dependants on version.php file if you can change it before installing to 2016120509, and I'll change it in the new version and complete the tests

fmido88 commented 11 months ago

I decreased the required version, now it should be installed into moodle 3.9, I tested it using moodle-ci, but not fully tested. You can try now and tell me if there is anything goes wrong.