Closed gerald0804 closed 1 year ago
Interesting. I'm guessing Learnpress does a similar WPDB override that we do here which is causing a conflict. I'll take a look at what they are doing and see if we can come up with something compatible.
OK, the problem is learnpress is running a database query before other plugins load. Therefore during our plugin's WPDB handover the last query is still in the cache, which then gets freed twice, once in our clone class and once in the original.
The error is harmless, but it means there are things we aren't capturing. We might not be able to solve that without WP core changes, but we should be able to stop this error happening. I suspect the best way would be on first query in our class we need to clear our own $result
and call flush on the parent.
I'll do some testing of this next week.
Fix created, once this has merged I will cut a new release that contains it.
1.0.2 released with the fix.
Thanks ! It works for me. No more error... Good job !
When plugin is activated, i have a fatal error on Learnpress lessons and quiz admin page. My config : 10.6.12-MariaDB-1:10.6.12+maria~ubu2204 Ubuntu 22.04.2 LTS PHP 8.1.7 Wordpress 6.2
In php logs :