To be fair, our code works fine without the advanced tagging product enabled, and has worked fine for a long time. If VB didn't see the need to include global.php inside payment_gateway.php, I'm certainly not going to do it. That's a big payload to inject into a script that isn't expecting it...
VB's payment_gateway.php does not include global.php in its bootstrapping process. Therefore the global_start hook is never run from that script. Therefore, your USERTAG class is never defined when that script runs.
So our bug is squashed, but please fix this in a future release so that when...
Adding
require_once(DIR . '/dbtech/usertag/includes/class_core.php');
require_once(DIR . '/dbtech/usertag/includes/class_cache.php'); to the top of dbtech/usertag_pro/actions/parse/hash.php fixes the problem entirely. I will investigate further. I'm guessing that the global_start hook isn't run...
We have a custom very simple plugin that has worked fine for years but DOES NOT work when the user tagging addon is installed. The error logs show that PHP couldn't find the USERTAG class. Here is the error:
PHP Fatal error: Class 'USERTAG' not found in...