Installing and upgrading help

"Coding error detected, it must be fixed by a programmer: The data source class does not exist."

 
d
"Coding error detected, it must be fixed by a programmer: The data source class does not exist."
 
Hello, 


I'm having problems, I need create quiz on my moodle but I can't create. 

The notification system is "Coding error detected, it must be fixed by a programmer: The data source class does not exist."

d


I use moodle version 3.1+ . 

Help me, Please. Thank you very much.

 
Average of ratings: -
Picture of Emma Richardson
Re: "Coding error detected, it must be fixed by a programmer: The data source class does not exist."
Documentation writersParticularly helpful Moodlers

Please turn debugging on to developer level, try again and then post the error message.  

 
Average of ratings: -
d
ตอบ: Re: "Coding error detected, it must be fixed by a programmer: The data source class does not exist."
 

Excuse Me,

How to turn debugging on to developer level, please.


 
Average of ratings: -
d
ตอบ: Re: "Coding error detected, it must be fixed by a programmer: The data source class does not exist."
 

Debug info: 
Error code: codingerror
×Stack trace:
  • line 513 of \cache\classes\definition.php: coding_exception thrown
  • line 314 of \cache\classes\helper.php: call to cache_definition::load()
  • line 2770 of \lib\grade\grade_category.php: call to cache_helper::purge_by_event()
  • line 2722 of \lib\grade\grade_category.php: call to grade_category::clean_record_set()
  • line 266 of \lib\grade\grade_object.php: call to grade_category->notify_changed()
  • line 263 of \lib\grade\grade_category.php: call to grade_object->update()
  • line 2135 of \lib\grade\grade_category.php: call to grade_category->update()
  • line 1577 of \lib\grade\grade_category.php: call to grade_category->get_children()
  • line 447 of \lib\grade\grade_category.php: call to grade_category->auto_update_weights()
  • line 1160 of \lib\gradelib.php: call to grade_category->pre_regrade_final_grades()
  • line 440 of \lib\gradelib.php: call to grade_regrade_final_grades()
  • line 804 of \mod\quiz\lib.php: call to grade_get_grades()
  • line 1177 of \mod\quiz\lib.php: call to quiz_grade_item_update()
  • line 96 of \mod\quiz\lib.php: call to quiz_after_add_or_update()
  • line 121 of \course\modlib.php: call to quiz_add_instance()
  • line 275 of \course\modedit.php: call to add_moduleinfo()
×Output buffer: <br /> <b>Notice</b>: Undefined property: stdClass::$delay1_adv in <b>C:\xampp\htdocs\Learning\mod\quiz\mod_form.php</b> on line <b>305</b><br />


 
Average of ratings: -
Tim at Lone Pine Koala Sanctuary
Re: ตอบ: Re: "Coding error detected, it must be fixed by a programmer: The data source class does not exist."
Core developersDocumentation writersParticularly helpful MoodlersPlugin developers

That error is deep in the Moodle caching code, called in relation to the Gradebook. So, it is not really a quiz issue. I will move this to the installation probelms forum.

 
Average of ratings: -
Picture of Howard Miller
Re: "Coding error detected, it must be fixed by a programmer: The data source class does not exist."
Core developersDocumentation writersParticularly helpful MoodlersPlugin developers

I think we'll struggle with this one. We're going to need more info.

What happened to make this start? Did it *ever* work? If so, what was changed to make it not work (even if you think it was not related)?

 
Average of ratings: -
Picture of Eiz Eddin Al Katrib
Re: "Coding error detected, it must be fixed by a programmer: The data source class does not exist."
Core developersPlugin developers

I am having similar error.

Coding error detected, it must be fixed by a programmer: The data source class does not exist.

×Debug info: 
Error code: codingerror
×Stack trace:
  • line 513 of /cache/classes/definition.php: coding_exception thrown
  • line 515 of /cache/classes/helper.php: call to cache_definition::load()
  • line 480 of /cache/classes/helper.php: call to cache_helper::purge_store()
  • line 323 of /admin/index.php: call to cache_helper::purge_all()


I think this started after I have pulled the latest MOODLE_31_STABLE branch from moodle.org repo, a few days ago.

I am using this site for development purposes only, so it is almost empty. I only have a couple of empty courses and a couple of users.

I think this error occurs when I am getting redirected to "admin/index.php", for updating the installation after downloading the latest release of that version I guess?

I can bypass that specific page and access almost all other pages normally.


 
Average of ratings: -
Picture of Muhammad Asif
Re: "Coding error detected, it must be fixed by a programmer: The data source class does not exist."
 

Hi I am trying to upgrade moodle 3.0 to 3.1.

I am getting same errors as Eiz. Did you manage to find the solution for this.

Coding error detected, it must be fixed by a programmer: The data source class does not exist.

More information about this error

Debug info: 
Error code: codingerror
×Stack trace:
  • line 513 of /cache/classes/definition.php: coding_exception thrown
  • line 515 of /cache/classes/helper.php: call to cache_definition::load()
  • line 480 of /cache/classes/helper.php: call to cache_helper::purge_store()
  • line 323 of /admin/index.php: call to cache_helper::purge_all()


 
Average of ratings: -
Picture of Eiz Eddin Al Katrib
Re: "Coding error detected, it must be fixed by a programmer: The data source class does not exist."
Core developersPlugin developers

For me, I have just created a new moodledata folder and it worked. It did not work when deleted the cache and localcache folders by themselves.

This workaround solution was okay for me as I did not actually have content on the site, and I did not have time to investigate this issue further.

 
Average of ratings: -
Picture of Muhammad Asif
Re: "Coding error detected, it must be fixed by a programmer: The data source class does not exist."
 

Thank you Eiz.

In my case I had data files in moodle data. I had to upgrade to moodle 3.2 instead of 3.1.

Therefore upgrading to 3.2 from 3.0 worked fine. There was no such error.


 
Average of ratings: -
Picture of Vaidas A.
Ats.: Re: "Coding error detected, it must be fixed by a programmer: The data source class does not exist."
 

Thanks pointing to the right direction! 

I removed config.php from [moodledata]/muc catalog, run cache clean, new config file generated and the problem disappeared.

 
Average of ratings: Useful (1)
Picture of Nitin Jain
Re: Ats.: Re: "Coding error detected, it must be fixed by a programmer: The data source class does not exist."
Plugin developers

yeah it worked.

 
Average of ratings: -
Picture of Rinky Verma
Re: Ats.: Re: "Coding error detected, it must be fixed by a programmer: The data source class does not exist."
 

how to run cache clean, so that config.php recreated??

 
Average of ratings: -
Picture of Nitin Jain
Re: Ats.: Re: "Coding error detected, it must be fixed by a programmer: The data source class does not exist."
Plugin developers

yoursite/admin/purgecaches.php

 
Average of ratings: -
Picture of Andrew Dunbar
Re: "Coding error detected, it must be fixed by a programmer: The data source class does not exist."
 
Thanks for this tip. It worked to get past the error on the upgrade, now I have to figure out how to get back the info from the old moodledata.
 
Average of ratings: -
Picture of Andrew Dunbar
Re: "Coding error detected, it must be fixed by a programmer: The data source class does not exist."
 

Actually, I am seeing all the data from my old site. I hope ALL is there. smile

 
Average of ratings: -