How To / General

COM_JOOMDLE_WEB_SERVICES_ERROR: Error writing to database

  • Stephen
  • Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 11 months ago #1 by Stephen
Good day - I've been using this plugin for many years- thank you for your ongoing development.
I've come across a new error although I haven't changed my setup for at least 6 months.
I'm using Joomla 4 and Moodle 4.1. Joomdle has been working great and the system check is all green checks.

I get a COM_JOOMDLE_WEB_SERVICES_ERROR: Error writing to database when trying to login with 3 new users. I also get the error in the Joomla backend when trying to change their user group. The user are create correctly in both joomla and moodle. When I navigate to Moodle, the user is logged in despite the error. If I get the error changin user group in Joomla, when I go back the user group has been added or removed despite the error.

I'm not sure where to start - I'm wondering if there is a database issue. There is nothing helpful in the joomla, moodle or PHP logs.

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

More
2 years 11 months ago #2 by Antonio Durán
Hi.

You can enable debugging in Moodle to try to get more info about the error.

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

  • Stephen
  • Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 11 months ago #3 by Stephen
Thank you - I didn't even think of Moodle.

I had a Joomla field mapped to a custom Moodle field. It turns out that when I was creating a user, it had not given the Joomla field a default value and was trying to send a Null value to the Moodle.

Issue resolved -thank you for your help.

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

More
2 years 11 months ago #4 by Antonio Durán
Great, thanks for the feedback.

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