Shop / e-Commerce Integration

Explosion of webservice/xmlrpc/server.php processes

  • Tim
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
9 years 5 months ago #1 by Tim
I have Joomla and Moodle are communicating thanks to Joomdle (thanks for this awesome product!) on two sites.

Once site is working fine (both products under the same domain) and does not have the issue I will describe below about the other one.

On the other site I am experiencing an explosion of processes that never stop when making a course purchase.

PHP version is 5.6.29
Joomla version 3.6.5 is running in public_html
Moodle 3.2+ (Build: 20161222) is running in public_html/academy
Both are in the same cpanel account but operating under different domains.
Virtuemart registration is being used by Joomdle - though Community Profiler is also used when people sign up for Joomla (true on on both sites).

The same problem happened when I used Hikashop - which I abandoned thinking it was the problem.

The two process that take off and llast about 100 seconds before new ones occur are:

/firewise/public_html/index.php
and
/public_html/academy/webservice/xmlrpc/server.php

They occur in pairs - there are an equal number of instance for both (currently 38)

The processes also range in CPU% use from as high as 50% down to .1%

I appreciate any help or direction you can give me.

Please Log in or Create an account to join the conversation.

More
9 years 5 months ago #2 by Antonio Durán
Replied by Antonio Durán on topic Explosion of webservice/xmlrpc/server.php processes
Hi.

I don't remember seeing any problem reports like yours, so I am not sure where to start looking.
First thing I would do is try to know if shop has anything to do with the problem:
- Set a test course with Self enrol enabled
- Open Joomdle detail page for that course, and click the enrol button
- Check if same problem happens as when you do purchase

Please Log in or Create an account to join the conversation.

  • Tim
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
9 years 5 months ago - 9 years 5 months ago #3 by Tim
Thanks for that suggestion.

I have been unsuccessful in getting the enrol button to show up on my Joomla site on the free Moodle course. I added "self-enrol" to an existing course we have for free, deleted the course from Virtuemart, and reloaded the course in Joomdle config. I know it updating because I am able to turn the "go to course" button on and off with the options.

However, I have conducted another purchase test of a product and found the following:

When I submit the purchase the new user profile is created right away. This triggers the webservice/xmlrpc/server.php process and then it stops - resulting in a new profile in moodle.

But, when I confirm the purchase and complete it in PayPal, the webservice/xmlrpc/server.php processes explosion happens.

Is there a log somewhere that records this part of the process?

Also, as an after-edit, I just realized I should mention that I am using Rupostel's One Page Virtuemart Checkout. However, it is also used on the other site which is working fine.
Last edit: 9 years 5 months ago by Tim.

Please Log in or Create an account to join the conversation.

More
9 years 5 months ago #4 by Antonio Durán
Replied by Antonio Durán on topic Explosion of webservice/xmlrpc/server.php processes
> I have been unsuccessful in getting the enrol button to show up on my Joomla site on the free Moodle course. I added "self-enrol"

You should only need to do that AND disable any payment enrol methods you may have in the course.

As you say, "explosion" is happeing on enrolment, so it would be good to separate it from shop.

> Is there a log somewhere that records this part of the process?

No, no log.

Please Log in or Create an account to join the conversation.

  • Tim
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
9 years 5 months ago #5 by Tim
The only other enrolment method for that free course was allow guest users.

I removed that so only self-enroll was there, refreshed the course in Joomdle, and looked at the course on Joomla and nwo the button "buy course" shows up. In Virtuemart the price of the course is not set - each time I enter $0 the field reverts back to "not set". This seems to be a Virtuemart price setting I am missing and have also been looking for in forums to over come. It would be nice if VM allowed a more obvious way to make a product free.

That said, I was able to "buy the course" and in the shopping cart it came up $0.00. It bypassed PayPal for payment. There was no account creation in Moodle this time, but probably because I killed all the processes before they took off.

Please Log in or Create an account to join the conversation.

More
9 years 5 months ago #6 by Antonio Durán
Replied by Antonio Durán on topic Explosion of webservice/xmlrpc/server.php processes
Please try creating a new test course in Moodle, and just enable self-enrol.
Then go to its details page in Joomla to enrol in the course, to confirm that enrolment is causing your issue, instead of being related to shop.

Please Log in or Create an account to join the conversation.

  • Tim
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
9 years 5 months ago #7 by Tim
I created a new course from scratch and enabled self-registration (and deleted all other subscription methods), published the new course in joomdle, and created a link on the joomla site. In virtuemart the price is 0.00. The button that showed up on the course details page was "buy course". "Enrol into course" is not coming up.

I have also tried the above with php 7.0 selected on the web hosting account with no difference.

I apologize if I am missing something simple here - I can feel my brain at this point in the process, lol.

Please Log in or Create an account to join the conversation.

More
9 years 5 months ago #8 by Antonio Durán
Replied by Antonio Durán on topic Explosion of webservice/xmlrpc/server.php processes
Hi.

I think the problem is here:
> published the new course in joomdle,

Just create course and enable self-enrolment. Don't disable anything and don't publish course in joomdle.
Then go to your site.com/index.php?option=com_joomdle
You should see all courses listed. Enter the one just created, and Enrol button should appear.

Please Log in or Create an account to join the conversation.

  • Tim
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
9 years 5 months ago #9 by Tim
Thank you so much for your patience! Obviously I've been thinking about Joomdle different than how it works. I thought it was a go between virtuemart and moodle, but now I see Joomdle is more powerfully interacting directly with Moodle.

I followed your instructions and the enrol button did appear. I clicked it and got a 404 error on the Community Builder component. After some forum reading I set up Joomdle to talk to Community Builder and returned to the enrol button. It lead me to create a profile which I did and then returned to the course page and clicked the enrol button.

I successfully enrolled in the test course and the process did not take off.

Wondering if some of the changes I made had fixed the other problem, I logged out and bought a course as a different profile. The new profile was created without any explosion of processes.

However, as soon as the Paypal payment was made the process explosion did occur.

Sorry for making the progress on this slow.

Please Log in or Create an account to join the conversation.

More
9 years 5 months ago #10 by Antonio Durán
Replied by Antonio Durán on topic Explosion of webservice/xmlrpc/server.php processes
No problem at all, I am glad you could get it to show.

It seerms then that problem is only with Paypal, which is quite weird.
Are you buying a single course and not a bundle right?

So, you mean you go trhough all the purchase, and get to Paypal. Once there, you pay and... you notice something in browser, or you only see problem in server?

Please Log in or Create an account to join the conversation.