Hi,
I have been trying to figure out this error for a few days now.
I have a a plugin that use the Cache API and its definition 'simplekeys' is set to true.
It has been working fine on Moodle 3.0 but when I upgraded to Moodle 3.1.6 it stopped working and generated the following error:
Coding error detected, it must be fixed by a programmer: Cache definition [NAME] requires simple keys. Invalid key provided.
Backtrace:
* line 863 of /cache/classes/loaders.php: call to cache_helper::hash_key()
* line 300 of /cache/classes/loaders.php: call to cache->parse_key()
* line 690 of /local/[plugin]/classes/task/[file.php]: call to cache->get()
the rest of the trace goes back to the local plugin code that I can't share.
The error message suggests that somewhere the simplekeys are not set to True but as far as I know that's not the case. As I said it used to work fine on Moodle 3.0 so I am guessing something changed in 3.1.6 but I couldn't see what exactly.
The closest thing I could get to is this bug https://tracker.moodle.org/browse/MDL-56675 but then it was fixed so it's not supposed to be the cause. I'm really lost.
Any help is highly appreciated.
Thanks
PS: I am not sure this is where I am supposed to post this message.