This is a problem that has been plaguing us for quite a long time. We have been having an issue with vbgallery 2.4.3 and up with the following code in the fetch_userinfo_query hook:
Code:
Content visible to verified customers only.
The problem arises during registration/login for a new user. If the ppgal_user data has not yet been populated, which happens during a new registration, then it can cause errors, especially with other products because false is returned. Also, $vbulletin->userinfo['userid'] can become blank (not 0, but '').
The main issue here is that the ppgal_user data is inserted at register_addmember_complete hook, yet this code is executed before that in
vb:
Code:
Content visible to verified customers only.
This function executes this code:
Code:
Content visible to verified customers only.
Also, so may other plugins (like some of ours) execute this and the new joins and selects are causing the query to return no result.
I fixed this on our sites with the following edit to that code:
Code:
Content visible to verified customers only.
There could also be other instances where this may cause issues, but after quite some time debugging, this is what we have found so far.