Moodle 2 Error Writing To Database
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business moodle 3 error writing to database Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs
Error/moodle/dmlwriteexception
Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just mysql max_packet_size like you, helping each other. Join them; it only takes a minute: Sign up Error writing to database in moodle up vote -1 down vote favorite I want to customize some strings into moodle. so when i clicked on open language pack for editing it will run till 69% and thowing an error "Error writing to database" Error/moodle/dmlwriteexception This indicates that a general error occurred when Moodle tried to write to the database. If you turn on Debugging you will get more detailed information about what the problem is. MySQL If you're using a MySQL database for your Moodle installation, this error can be caused by the server's max_allowed_packet size being configured incorrectly. Increasing this value may resolve the issue. I have tried to increase the value of max_allowed_packet 1M to 100M but still getting the same error. Please help me moodle share|improve this question edited Feb 19 '15 at 11:49 asked Feb 19 '15 at 11:22 user3395812 613 Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. –jurgemaister Feb 19 '15 at 11:24 Edit your question. –jurgemaister Feb 19 '15 at 11:33 add a comment| 2 Answers 2 active oldest votes up vote 0 down vote Its probably a custom plugin with an incorrect string id in the language file - https://moodle.org/mod/forum/discuss.php?d=222815 Try uninstalling any custom modules then trying again with the language customisation until you can identify which custom plugin is causing the issue. share|improve this answer answered Feb 19 '15 at 15:07 Russell England 5,1851926 add a comment| up vote 0 down vote Try putting the following settings in your config.php: @ini_set('display_errors', '1'); // NOT FOR PRODUCTION SERVERS! $CFG->debug = 32767; // NOT FOR PRODUCTION SERVERS! // for Moodle 2.0 - 2.2, use: $CFG->debug = 38911; $CFG->debugdisplay = true; // NOT FOR PRODUCTION SERVERS! That should tell
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million http://stackoverflow.com/questions/28605080/error-writing-to-database-in-moodle programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Error writing to database in Moodle up vote 0 down vote favorite I am trying to create a custom plugin for ask question to student in moodle. For this I have two tables. mdl_qadt and mdl_qads. I did the http://stackoverflow.com/questions/26178777/error-writing-to-database-in-moodle teacher part, that is teacher can add question. This is saved to table mdl_qadt. Now student login and select this activity display a form. Here students can post their answer. When posting the answer that give an error: Error writing to database. But the answer and relevant data are inserted into the table mdl_qads. Then why the error shows?? Image of error page Image of the form for student View.php echo $OUTPUT->heading($qadt->name); if ($qadt->intro) { // Conditions to show the intro can change to look for own settings or whatever echo $OUTPUT->box(format_module_intro('qadt', $qadt, $cm->id), 'generalbox mod_introbox', 'qadtintro'); } echo "". $qadt->question .""; require_once(dirname(__FILE__).'/stud_form.php'); $stud_form = new student_form("stud_action.php?id={$cm->id}&ref={$qadt->id}"); $stud_form->display(); echo $OUTPUT->footer(); stud_form.php require_once($CFG->dirroot.'/lib/formslib.php'); class student_form extends moodleform { function definition () { $mform =& $this->_form; //$mform->addElement('header', 'general', 'general'); $mform->addElement('text', 'answer', 'Your answer'); $mform->setType('answer', PARAM_TEXT); $mform->addRule('answer', null, 'required', null, 'client'); $this->add_action_buttons(false, 'submit'); } } stud_action.php require_once(dirname(dirname(dirname(__FILE__))).'/config.php'); require_once(dirname(__FILE__).'/lib.php'); require_once($CFG->dirroot.'/lib/formslib.php'); $answer = $_REQUEST['answer']; //answer given by student or user if(isset($_GET['ref'])) { $refid = $_GET['ref']; // refid } if(isset($_GET[
workstation in separate directories. When logging into the site with the root account, I receive Error writing to database. I believe the permissions are correctly set within phpMyAdmin and I also have full administrative rights https://community.bitnami.com/t/error-writing-to-database-version-2-8-5/35987 to the local machine. Lastly, if I attempt to connect to http://*localhost*/admin/settings.php/section=debugging, I receive This page can't be displayed. Any suggestions would be appreciated. Thank you in advance. jota 2015-08-03 10:10:21 UTC #2 Hi @Foxnbvr, Did http://www.joomdle.com/forum/r04-support/3887-xml-rpc-error-0-error-writing-to-database you follow our guide about how to migrate your Moodle? https://wiki.bitnami.com/Applications/BitNami_Moodle#How_to_migrate_your_Moodle_installation.3f I followed it and everything is working fine. I didn't get any "Error writing to database" error. Let us know if it works for you. error writing Jota Foxnbvr 2015-08-03 13:16:51 UTC #3 Yes, I followed the migration guide and the data appears to be there. We attempted both phpMyAdmin and manual steps for importing and exporting the database. Each step was also attempted for versions 2.8.5 and 2.9.1 in addition to multiple fresh installations. jota 2015-08-04 07:29:34 UTC #4 Hi @Foxnbvr, Could you please answer this questions? Did you follow the steps to remove the database, create error writing to a new one and grant the privileges to the bitnami user? Did you set the password that is in the htdocs/config.php file? Did you get any issue if you recover the backup manually? Could you please create a new backup (start all the process again) and try to recover the new backup? I don't know if you got any issues when you create the other backup. I hope it helps. Jota Foxnbvr 2015-08-05 14:47:04 UTC #5 I followed all the steps again and everything appears to be working now. It seemed to be a combination of a bad back backup and performing the export and import manually, as opposed through phpMyAdmin. One step that was not in the migration documentation was copying the salt option from the old version to the new. Thanks again for you assistance. jota 2015-08-06 07:08:02 UTC #6 Hi @Foxnbvr, I'm glad to hear that your problem was solved. Thanks for letting us know that info for the migration, we'll review the wiki. Don't hesitate to contact us if you have any more questions. Jota Home Categories FAQ/Guidelines Terms of Service Privacy Policy Powered by Discourse, best viewed with JavaScript enabled Bitnami provides free all-in-one installers, virtual machines and cloud images for popular open source applications. Get them now!
Me Log in Forgot your password? Forgot your username? Create an account IndexSearch Welcome, Guest Forum Older Versions R04 No Longer Supported XML-RPC Error (0): Error writing to database Page:12 TOPIC: XML-RPC Error (0): Error writing to database XML-RPC Error (0): Error writing to database 5 years 10 months ago #1 gadalf Offline Karma: 0 I have installed moodle and joomdle. they looks to work ok but I cant create new users in joomla. When I fill the registration form then klik register get this error :XML-RPC Error (0): Error writing to database The administrator has disabled public write access. Re: XML-RPC Error (0): Error writing to database 5 years 10 months ago #2 gadalf Offline Karma: 0 This problem comes when choose jomsocial in Additional data source. The administrator has disabled public write access. Re: XML-RPC Error (0): Error writing to database 5 years 10 months ago #3 Antonio Durán Offline Karma: 139 It seems you found a bug. Moodle 2.0 is much strict with data types, so I was expecting that some params may have not been tested. I will try to replicate it locally when I can. What mappings did you define? What Jomsocial version are you using? The administrator has disabled public write access. Re: XML-RPC Error (0): Error writing to database 5 years 10 months ago #4 gadalf Offline Karma: 0 Jomsocial 2.0x when choose none it Additional data source it works. The courses tab show in toolbar. Thats what I have at the tested at the moment. The administrator has disabled public write access. Re: XML-RPC Error (0): Error writing to database 5 years 10 months ago #5 Antonio Durán Offline Karma: 139 are you using jomsocial to register? are you filling all the fileds that you set mappings for? What mappings did you set? The administrator has disabled public write access. Re: XML-RPC Error (0): Error writing to database 5 years 9 months ago #6 benjamin carrasco Offline Karma: