[Solved] XML-RPC Error

  • max bittle
  • Topic Author
  • Offline
  • New Member
  • New Member
More
14 years 10 months ago - 14 years 10 months ago #1 by max bittle
[Solved] XML-RPC Error was created by max bittle
Hello,

I'm using Tienda with Joomdle for online courses. I've got a tester up now that costs $0 and have tested it successfully, however now for some reason, when I test it I cannot get through the checkout process. Here's the error I get when I try to confirm the order: XML-RPC Error (0): Coding error detected, it must be fixed by a programmer: PHP catchable fatal error

Any help would be greatly appreciated.

Thanks,

Max
Last edit: 14 years 10 months ago by Antonio Durán.
The topic has been locked.
More
14 years 10 months ago #2 by Antonio Durán
Replied by Antonio Durán on topic Re: XML-RPC Error
Hi.

This is working fine for me and may other users, so it may be some special configuration/problem in your server.
Also, you say it was working before, so something must have changed since...

As we are talking about Tienda, what I would do first is disable the joomdletienda plugin, and complete a purchase, to see if you get the same problem.
The topic has been locked.
  • max bittle
  • Topic Author
  • Offline
  • New Member
  • New Member
More
14 years 10 months ago #3 by max bittle
Replied by max bittle on topic Re: XML-RPC Error
Hi Antonio,

Thanks for the quick response. I disabled the plugin and it worked like a charm.

Is this something that I should just keep unpublished?

Thanks--
The topic has been locked.
More
14 years 10 months ago #4 by Antonio Durán
Replied by Antonio Durán on topic Re: XML-RPC Error
Nope.

It was just for testing.

This plugin is the one which does the enrolment in Moodle courses after payment, so you need it.

My first guess is that it is failing on the save user data function, maybe because you set some strange data mappings, i don't know.

To test, publish the plugin, but edit it first (file plugins/system/joomdletienda.php)

And comment out this line:
JoomdleHelperContent::call_method ("create_joomdle_user", $user->username);

Then, test again.
The topic has been locked.
  • max bittle
  • Topic Author
  • Offline
  • New Member
  • New Member
More
14 years 10 months ago #5 by max bittle
Replied by max bittle on topic Re: XML-RPC Error
Hmmm....I commented out the line and it still gave me the same error. I'm not sure that set any data mappings outside of the norm, but possible.

Anywhere else I should be looking to see about the problem?

Thanks again-
The topic has been locked.
More
14 years 10 months ago #6 by Antonio Durán
Replied by Antonio Durán on topic Re: XML-RPC Error
If you commented out the line, and still have the problem, it is clear that it is not a profile issue.

Then, it see,s a problem with the enrol function.

Before this line:
JoomdleHelperContent::enrolUser ($user->username, (int) $orderitem->product_sku);

Add:
print_r ($orderitem->product_sku);
print_r ($user->username);
exit ();

You should get a blank page with the course id and your username.
The topic has been locked.
  • max bittle
  • Topic Author
  • Offline
  • New Member
  • New Member
More
14 years 10 months ago #7 by max bittle
Replied by max bittle on topic Re: XML-RPC Error
Hi Antonio,

I got a blank page with just the user name on it when I tried this.

I should mention that the orders are going through and I'm getting a receipt and notification of them. But am unable to access the course even after the error.

I'm so baffled here. Thanks again for all the help Antonio, super appreciate it.
The topic has been locked.
More
14 years 10 months ago #8 by Antonio Durán
Replied by Antonio Durán on topic Re: XML-RPC Error
Did you create the products in Tienda using the Joomdle backend?

It seems your products does not have a sku, which is where joomdle stores moodle course id.
The topic has been locked.
  • max bittle
  • Topic Author
  • Offline
  • New Member
  • New Member
More
14 years 10 months ago #9 by max bittle
Replied by max bittle on topic Re: XML-RPC Error
It was the sku number that needed to be filled in. Thanks so much for everything Antonio!
The topic has been locked.