I figured. Still gonna try to break it when I'm at home to see if I know the issue. (the following is a moment of pure "aha" thought process... ignore the randomness) Actually, I may know the underlying issue! I'd have to test it some, but I know BBCM was deleted at one point for a reported security flaw, and restored. Possibly caused by this block of code in XenResource_DataWriter_Resource::_resourceMadeVisible:It's a problem with your record in the DB, it's showing a count of 0 for some reason.
if ($this->get('user_id') && $this->get('resource_state') == 'visible')
{
$this->_db->query('
UPDATE xf_user
SET resource_count = resource_count + 1
WHERE user_id = ?
', $this->get('user_id'));
}
I love when my "Aha!" moments have some kind of real basis to them... Now if only I had the desire to apply that to my work projects right now (but having the RM code up actually makes it look like I'm doing something... ).Actually the issue may well have been the undelete, as we did do an undelete once from the DB directly (before the RM had that function), which would've triggered this.
We use essential cookies to make this site work, and optional cookies to enhance your experience.