{"id":837,"date":"2013-03-26T05:31:21","date_gmt":"2013-03-26T09:31:21","guid":{"rendered":"https:\/\/gonzalo.aro.cl\/blog\/?p=837"},"modified":"2013-03-26T05:34:21","modified_gmt":"2013-03-26T09:34:21","slug":"resolviendo-could-not-find-a-top-level-course-en-moodle","status":"publish","type":"post","link":"https:\/\/gonzalo.aro.cl\/blog\/2013\/03\/26\/resolviendo-could-not-find-a-top-level-course-en-moodle\/","title":{"rendered":"Resolviendo \u00abCould not find a top-level course!\u00bb en Moodle"},"content":{"rendered":"<p>En un desarrollo especifico cometi el error de borrar todos los cursos que no pertenec\u00edan a los datos que me entregaron, entre esos cursos que borre fue el curso con ID 1, que es el curso maestro de moodle.  Esto hizo que apareciera el error<\/p>\n<p><em>\u00abCould not find a top-level course!\u00bb<\/em><\/p>\n<p>El que resolvi reinsertando el curso base. <\/p>\n<pre class=\"brush: sql\">\r\ninsert into [prefijo_moodle]_course (id, category, sortorder, fullname, shortname, idnumber, summary, summaryformat, format, showgrades, modinfo, newsitems, startdate, numsections, marker, maxbytes, legacyfiles, showreports, visible, visibleold, hiddensections, groupmode, groupmodeforce, defaultgroupingid, lang, theme, timecreated, timemodified, requested, restrictmodules, enablecompletion, completionstartonenrol, completionnotify)\r\nValue\r\n( 1, 0, 1, 'moodle', 'moodle', '', '', 0, 'site', 1, 'a:0:{}', 3, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, '', '', 0, 0, 0, 0, 0, 0, 0);\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>En un desarrollo especifico cometi el error de borrar todos los cursos que no pertenec\u00edan a los datos que me entregaron, entre esos cursos que borre fue el curso con ID 1, que es el curso maestro de moodle. Esto hizo que apareciera el error \u00abCould not find a top-level course!\u00bb El que resolvi reinsertando [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,48,12],"tags":[],"class_list":["post-837","post","type-post","status-publish","format-standard","hentry","category-desarrollo","category-moodle","category-web"],"_links":{"self":[{"href":"https:\/\/gonzalo.aro.cl\/blog\/wp-json\/wp\/v2\/posts\/837"}],"collection":[{"href":"https:\/\/gonzalo.aro.cl\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gonzalo.aro.cl\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gonzalo.aro.cl\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gonzalo.aro.cl\/blog\/wp-json\/wp\/v2\/comments?post=837"}],"version-history":[{"count":2,"href":"https:\/\/gonzalo.aro.cl\/blog\/wp-json\/wp\/v2\/posts\/837\/revisions"}],"predecessor-version":[{"id":839,"href":"https:\/\/gonzalo.aro.cl\/blog\/wp-json\/wp\/v2\/posts\/837\/revisions\/839"}],"wp:attachment":[{"href":"https:\/\/gonzalo.aro.cl\/blog\/wp-json\/wp\/v2\/media?parent=837"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gonzalo.aro.cl\/blog\/wp-json\/wp\/v2\/categories?post=837"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gonzalo.aro.cl\/blog\/wp-json\/wp\/v2\/tags?post=837"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}