JoshyPHP
Well-known member
Quick heads-up: I've just upgraded XFMG from 1.1.0 to 1.1.2 after upgrading XenForo from 1.5.1 to 1.5.2, and I encountered an error during the deferred maintenance.
I didn't have time to investigate so I just replaced the call to getUserIdsWithMediaInRange() with an empty array to finish the upgrade. As far as I'm concerned, it fixed that issue but it may affect other users.
This was on PHP 5.6.
Edit: could it be that line 18 instantiates the wrong class? It says XenForo_Model_User and it looks like it should be XenGallery_Model_User.
Code:
Error Info
ErrorException: Fatal Error: Call to undefined method XenForo_Model_User::getUserIdsWithMediaInRange() - library/XenGallery/Deferred/UserMediaQuota.php:20
Generated By: admin, 5 minutes ago
Stack Trace
#0 [internal function]: XenForo_Application::handleFatalError()
#1 {main}
Request State
array(3) {
["url"] => string(48) "http://****/admin.php?tools/run-deferred"
["_GET"] => array(1) {
["tools/run-deferred"] => string(0) ""
}
["_POST"] => array(3) {
["redirect"] => string(50) "http://****/admin.php?add-ons/#_XenGallery"
["execute"] => string(1) "1"
["_xfToken"] => string(8) "********"
}
}
I didn't have time to investigate so I just replaced the call to getUserIdsWithMediaInRange() with an empty array to finish the upgrade. As far as I'm concerned, it fixed that issue but it may affect other users.
This was on PHP 5.6.
Edit: could it be that line 18 instantiates the wrong class? It says XenForo_Model_User and it looks like it should be XenGallery_Model_User.