Database Writing Error
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss
Moodle 3 Error Writing To Database
the workings and policies of this site About Us Learn more about moodle upgrade error writing to database 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 4.7 million programmers, just 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
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 http://stackoverflow.com/questions/28605080/error-writing-to-database-in-moodle community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Moodle Error writing to database up vote 2 down vote favorite 1 I am getting Error writing to database in moodle: Code: if (is_siteadmin()) { class addschedule_form extends moodleform { function definition () http://stackoverflow.com/questions/25524878/moodle-error-writing-to-database { $mform =& $this->_form; $mform->addElement('text', 'id', 'Enter ID:'); $mform->setType('id', PARAM_TEXT); $this->add_action_buttons(true, 'submit'); } } $ti_form = new addschedule_form(); $ti_form->get_data(); if ($ti_form->is_cancelled()) {redirect('index.php');} if ($recs = $ti_form->get_data()) { $deleteit = $DB -> delete_records('DELETE * FROM `mdl_schedules` WHERE id = ' . $recs -> id . ''); redirect('schedule.php'); } } else { } $ti_form->display(); What could be the reason? Any reference or help will be much appreciated. Regards moodle share|improve this question asked Aug 27 '14 at 10:33 MOZ 356526 add a comment| 1 Answer 1 active oldest votes up vote 2 down vote accepted The syntax is $DB->delete_records('schedules', array('id' => $recs->id)); You might want to keep this open in a tab for reference - https://docs.moodle.org/dev/Data_manipulation_API share|improve this answer answered Aug 27 '14 at 10:37 Russell England 5,1821926 Thanks its working! :) –MOZ Aug 27 '14 at 10:45 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using G
Started Documentation Release Overview Trailhead Books & Cheat https://developer.salesforce.com/forums/?id=906F00000005K3yIAE Sheets On-Demand Webinars Certification Blogs Tools Force.com IDE Lightning Design System Source Code Scanner More Tools & Toolkits By Topic App Distribution App Logic Architect Database Lightning Mobile Integration Security User Interface Websites Community Developer Forums Events Calendar Developer MVPs Developer Groups Developer Success Stories Blogs Blog All Blogs Developer Relations Engineering Force.com Labs error writing Tech Docs Trailhead Trailhead - Trails - Modules - Projects Get Help Join the Community Login with Salesforce Don't have an account? Signup for a Developer Edition Browse by Topic Apex Code Development (56039) General Development (42628) Visualforce Development (29002) Formulas & Validation Rules Discussion (6926) APIs and Integration (6581) Jobs Board (6101) Other Salesforce Applications error writing to (5556) Force.com Sites & Site.com (3584) Java Development (3494) .NET Development (3329) Mobile (1750) Lightning (1516) Trailhead (3236) Perl, PHP, Python & Ruby Development (1894) AppExchange Directory & Packaging (1805) Mobile (1750) Security (1722) Lightning (1516) Chatter and Chatter API Development (1436) Visual Workflow (1085) Salesforce Labs & Open Source Projects (1008) Desktop Integration (968) Apple, Mac and OS X (708) VB and Office Development (613) Schema Development (605) Architecture (425) Salesforce Summer of Hacks (132) Salesforce $1 Million Hackathon (127) Predictive Services (4) View More Topics See All Posts Welcome to Support! Search for an answer or ask a question of the zone or Customer Support. Need help? Dismiss ShowAll Questionssorted byDate Posted ShowAll QuestionsUnanswered QuestionsUnsolved QuestionsSolved Questions sorted byDate PostedRecent ActivityMost Popular + Start a Discussion You need to sign in to do that Sign in to start a discussion Don't have an account? Signup for a Developer Edition Solved QuestionsThis Question Simi Tresa AntonyError : Trailhead unit -> Apex Basics & Da