× Shop / e-Commerce Integration

VM integration - automatic enrol

1 month 1 day ago
cyberlane-sales
Posts: 8
More
Topic Author
VM integration - automatic enrol #1
Hi . I reported a problem with my Config file corrupting.
We fixed it by disabling and enabling the VM plugins.
However I wanted to add new Courses and saw there were none . Checked and found I needed to re enable Virtuemart as shop integration.
Now I have a list of courses but the config file is once again corrupt. Ialso cannot publish the new bundle I created as I get a 500 error.
The Config is again corrupt???
If you managed to correct the above user can you let me know how to fix mine.
Thanks
1 month 1 day ago
Antonio Durán
Posts: 6975
More
VM integration - automatic enrol #2
Hi, I moved your porst to a new topic.

> Now I have a list of courses but the config file is once again corrupt.

What do you mean? Do you get a broken Joomdle config screen in Joomla backend?

Do you have Virtuemart correctly installed and working? ie: can you manually create a product there?
If you get a broken config screen after enabling only Joomdle VM plugins, it looks like VM is not installed properly....
1 month 7 minutes ago
cyberlane-sales
Posts: 8
More
Topic Author
VM integration - automatic enrol #3
VirtueMart 3.6.0 10113
Joomla! 3.9.8 Stable [ Amani ] 11-June-2019 20:00 GMT
Moodle Version 3.6.4 (Build: 20190513)
Both Installations are on the same server
Joomdle systems check shown no errors.


I still have the problem that the Joomdle configuration is corrupt.
In order to make changes I disable the “Joomdle Virtuemart Integration” plugin.
I then re-enable Plugin and set “shop integration” to Virtuemart. Also I ensure that “Shop Integration” is Virtuemart.
I have tried with “additional Data Sources” set to Vituemart or none – No Change

At no stage can I Publish or un-publish any of the courses on “Shop Integration” I get 500 error

I can purchase courses . Virtuemart records as per normal. User names are on joomla and Moodle. I have checked password requirements and ensured both are the same.
However user is not enrolled on moodle. I have checked the Enrolment setting on Moodle and Joomdle is activated to enroll.

Really pulling out my hair at this stage.

My initial install all worked well . Had one Moodle and one virtuemart update. Since then big issues.

Should I go back to an earlier version of Virtuemart ???

Thanks for your assistance
4 weeks 1 day ago
Antonio Durán
Posts: 6975
More
VM integration - automatic enrol #4
Hi.

I just tested and got the same problem when upgrading to latest VM version. I will look into it and get back to you as soon as possible.
4 weeks 1 day ago
Antonio Durán
Posts: 6975
More
VM integration - automatic enrol #5
Hi again.

I found the problem, and fix is easy if you want to do it yourself. We'll release a new plugin version once we do some more testing.
File to edit: plugins/joomdleshop/joomdlevirtuemart/joomdlevirtuemart.php
Function: onSellCourses
After:
        require_once(JPATH_ADMINISTRATOR . '/components/com_virtuemart/helpers/config.php');
Add:
        require_once(JPATH_ADMINISTRATOR . '/components/com_virtuemart/helpers/vobject.php');
4 weeks 1 day ago
Antonio Durán
Posts: 6975
More
VM integration - automatic enrol #6