Error Detected From Non-object
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 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Coding error detected, it must be fixed by a programmer: insert_records() passed non-traversable object up vote -1 down vote favorite i want to insert my form data to moodle db, i have 2 table which needs to update every time im trying to insert at the same time, here is my code $result = $DB->update_record('newmodule', $newmodule); if (!$DB->get_record('newmodule1', array('course_id' => $newmodule->id))) { //now i need to insert data to db //object builder foreach ($newmodule as $key => $value) { if($key == 'time' || $key == 'audio' || $key == 'entxt' || $key == 'fatxt' || $key == 'url'){ $new->$key = $value; }elseif ($key == 'id') { $new->course_id = $value; } } //just trying for finding a way $result = $DB->insert_records('newmodule1', $new); } every time trying to insert data i getting this Coding error detected, it must be fixed by a programmer: insert_records() passed non-traversable object how can i split stdclass, then insert each part to db ? php mysql arrays insert moodle share|improve this question edited Feb 6 at 11:24 asked Feb 6 at 10:41 madman 652411 So what is the problem, be a little more specific –RiggsFolly Feb 6 at 10:54 And where/what is this stdClass you want to split –RiggsFolly Feb 6 at 10:55 1 Please read How to ask a good question And the perfect question –RiggsFolly Feb 6 at 10:55 @RiggsFolly sorry dude i tought title will explain it all ! my problem is with non-traversable object ! –madman Feb 6 at 11:04 in which line you got this error,and really this error is occurring? try to add error_reporting(E_ALL);ini
Sign in Pricing Blog Support Search GitHub This repository Watch 508 Star 11,985 Fork 1,400 Valloric/YouCompleteMe Code Issues 55 Pull requests 7 Projects 0 Wiki Pulse Graphs New issue python requests errors after updating YouCompleteMe #610 Closed crisidev opened this Issue Oct 25, 2013 · http://stackoverflow.com/questions/35240053/coding-error-detected-it-must-be-fixed-by-a-programmer-insert-records-passed/35255631 12 comments Projects None yet Labels None yet Milestone No milestone Assignees No one assigned 5 participants crisidev commented Oct 25, 2013 I have updated YouCompleteMe to the latest source and recompiled the core. Now, when I https://github.com/Valloric/YouCompleteMe/issues/610 try to use it over a python source, it returns this error: Printing YouCompleteMe debug information... Error detected while processing function 86_DebugInfo: line 2: Traceback (most recent call last): File "", line 1, in File "/Users/matteobigoi/.homesick/repos/crisivim/home/.vim/bundle/YouCompleteMe/autoload/../python/ycm/youcompleteme.py", line 261, in DebugInfo 'debug_info' ) File "/Users/matteobigoi/.homesick/repos/crisivim/home/.vim/bundle/YouCompleteMe/autoload/../python/ycm/client/base_request.py", line 59, in PostDataToHandler timeout ) ) File "/Users/matteobigoi/.homesick/repos/crisivim/home/.vim/bundle/YouCompleteMe/autoload/../python/ycm/client/base_request.py", line 118, in JsonFromFuture response.raise_for_status() File "/Users/matteobigoi/.homesick/repos/crisivim/home/.vim/bundle/YouCompleteMe/third_party/requests/requests/models.py", line 722, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 503 Server Error: Service Unavailable E858: Eval did not return a valid python object I am using MacVim compiled from homebrew with python support on MacOSX 10.8.2. crisidev commented Oct 25, 2013 I have a ycmd process running and reachable on localhost. u-nikos commented Oct 25, 2013 I'm also using MacVim compile
Sign in Pricing Blog Support Search GitHub This repository Watch 25 Star 25 Fork 24 iomad/iomad Code Issues 72 Pull https://github.com/iomad/iomad/issues/310 requests 5 Projects 0 Pulse Graphs New issue Coding error detected on assigning users as a manager #310 Open canyasa opened this Issue Feb 12, 2016 · 12 comments Projects None yet Labels enhancement Milestone No milestone Assignees No one assigned 4 participants canyasa commented Feb 12, 2016 I can not assign users error detected as a manager to a sub company, having this error: Moodle 2.9.2 (Build: 20150914) Iomad 2.9 (No patches added) Coding error detected, it must be fixed by a programmer: invalid enrol instance! Debug info: Error code: codingerror Stack trace: line 1292 of \lib\enrollib.php: coding_exception thrown line 297 of \local\iomad\lib\user.php: call to enrol_plugin->enrol_user() line 208 of \blocks\iomad_company_admin\company_managers_form.php: error detected from call to company_user::enrol() line 427 of \blocks\iomad_company_admin\company_managers_form.php: call to company_managers_form->process() Any Ideas? Thank you. ehuggett commented Feb 16, 2016 What's changed since this last worked? when did this last work? does this happen with other companies / sub departments have you deleted/removed/disabled/updated any courses recently? have you also had any problems assigning staff members onto any courses recently? Can you enable debugging to see if you get any extra information? (Site Administration -> Development -> Debugging, set debug to DEVELOPER and enable debugdisplay) I've run out of time for now, here's my notes // Deal with company courses. if ($companycourses = $DB->get_records('company_course', array('companyid' => $this->selectedcompany))) { foreach ($companycourses as $companycourse) { if ($DB->record_exists('course', array('id' => $companycourse->courseid))) { if ($DB->record_exists('company_created_courses', array('companyid' => $companycourse->companyid, 'courseid' => $companycourse->courseid))) { company_user::enrol($adduser, array($companycourse->courseid), $companycourse->companyid, $companycourseeditorrole->id); } else { LINE208> company_user::enrol($adduser, array($companycourse->courseid), $companycourse->companyid, $companycoursenoneditorrole->id); } } } } Since company_user::enrol was called I know that (from following the if statements) at least one course is assigned to the company the course assigned