Shop / e-Commerce Integration

Joomdle shop error 'Web services error: Invalid parameter value detected.

  • Terence Love
  • Topic Author
  • Offline
  • New Member
  • New Member
More
2 months 6 days ago #1 by Terence Love
Installed Joomdle successfully using Quick install guide. System check all good.
Installed plg_joomdleshop_joomdleshophikashop_v1.2.1.zip
In Joomdle configuraiton configured shop as Hikashop
Configured category to point to directory of existing long list of Moodle course products in Hikashop from the dropdown in the selection window.
Then when I select 'Shop' in Joomdle I get no shop and instead get message 'Web services error: Invalid parameter value detected'.
Have I missed something? How do I resolve this?
Best regards, Terence
PS I spent 9 hours last night installing, configuring and finally uninstalling Joomdle. Reinstalled it today slowly to give it another chance, but getting to the point where I"ll drop it and move sites to WordPress.

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

More
2 months 6 days ago #2 by Antonio Durán
Hi.

Sorry to know that you are having trouble setting up Hikashop integration... I don't know where that error is coming from. You can try enabling debugging in Moodle to get more info about the error.

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

  • Terence Love
  • Topic Author
  • Offline
  • New Member
  • New Member
More
2 months 6 days ago #3 by Terence Love
With developer debugging on in Moodle the full error message is
'Web services error: Invalid parameter value detected (Missing required key in single structure: enrollable_only) (Missing required key in single structure: enrollable_only)'

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

More
2 months 5 days ago - 2 months 5 days ago #4 by Antonio Durán
That's weird... the plugin uses a helper function to get the course list, and the same functions is used everywhere, so I don't know why you would get that....
If you go to Joomdle->Course Requests, do you get the course list, or the same error?

Also, are you using REST or XMLRPC? If you are using XMLRPC, try changing it to REST.
Last edit: 2 months 5 days ago by Antonio Durán.

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

  • Terence Love
  • Topic Author
  • Offline
  • New Member
  • New Member
More
2 months 5 days ago #5 by Terence Love
I used the work of someone else on the Forum (Artle?) who found out that the problem is that the Joomdle Configuration entry and processing for the Moodle URL is oversensitive to variants. The problem being that the person setting it up doesn't know whether to put domain.com or www.domain.com . In my case adding the www resolved at least the initial issue.
For the future three things would help ensuring this never happens again for any of your custmers (I wouldn't wish my 12 hours wasted time on anyone)>
First would be to find some way to clearly identify the exact Moodle URL. Currently the instructions are also out of date as they suggest putting in http:// rather than https://which I haven't seen for a decade or so.
Second would be some code in that form to sort this issue out automatically.
Third, would be an entry in the support notes that if this problem emerges (which it does for enrollable users, search and other factors) then to test variants of the Moodle URL.
Best,
Terence

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

More
2 months 4 days ago #6 by Antonio Durán
Glad to know that you figured it out... it is weird, as usually you won't have a green system check if you enter the wrong URLs.
I will try to improve the docs, thanks for your suggestions.

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

  • Terence Love
  • Topic Author
  • Offline
  • New Member
  • New Member
More
2 months 4 days ago #7 by Terence Love
This suggests the criteria for ensuring a handshake for the green system check are very different to the criteria in the check checks by the hikashop plugin in exchanging data between the joomla and moodle domains.
Can you arrange for these to be aligned?
Question: how does the person configuring joomdle identify exactly which moodle url to use (www or non-www, http or https)?

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

More
2 months 4 days ago #8 by Antonio Durán
> Can you arrange for these to be aligned?

They usually are.... so I don't know what happens in your case. If you want me to investigate further, I would need to check your site to try to understand what is going on.

> Question: how does the person configuring joomdle identify exactly which moodle url to use (www or non-www, http or https)?

This is set in Moodle config.php file, int he $CFG->wwwroot variable. You should always use that.

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

  • Terence Love
  • Topic Author
  • Offline
  • New Member
  • New Member
More
2 months 4 days ago #9 by Terence Love
I just uninstalled Joomdle and it left the submissions on the current course broken. I've replaced the Moodle code etc but it seems to be a change in the database.

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

More
2 months 2 days ago #10 by Antonio Durán
I don't know what you mean...the only thing that can be broken after uninstalling Joomdle is that you still have Moodle users with auth=joomdle. If that is the case, you will need to change them to manual auth, and change their passwords.

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