XF 2.1 Upgrading XenForo Media Gallery gives errors

rhakoome

Member
I moved (with some help) my forum to a new server and then had it upgraded from version 1.5 to 2.latest. When adding the XenForo Media Gallery, I ran across some errors and it seems the installation did not work out. I do not see the media-link in the navigation-menu, and in the main page of the admin-sectio it tells me I have to run manually a job. Running that jon gives me this error. Any suggestions on what to do??

Error: Call to undefined method XF\Entity\User::rebuildMediaQuota() in src/addons/XFMG/Job/UserMediaQuota.php at line 69
  1. XFMG\Job\UserMediaQuota->run() in src/XF/Job/Manager.php at line 253
  2. XF\Job\Manager->runJobInternal() in src/XF/Job/Manager.php at line 195
  3. XF\Job\Manager->runJobEntry() in src/XF/Job/Manager.php at line 79
  4. XF\Job\Manager->runQueue() in src/XF/Admin/Controller/Tools.php at line 139
  5. XF\Admin\Controller\Tools->actionRunJob() in src/XF/Mvc/Dispatcher.php at line 350
  6. XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 261
  7. XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 113
  8. XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 55
  9. XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2184
  10. XF\App->run() in src/XF.php at line 391
  11. XF::runApp() in admin.php at line 13
Raymond
 
Ideally we'd need to know what the "some errors" you encountered were during the installation. It's quite possible that the add-on upgrade is still pending and hasn't yet completed.

In your Admin panel if you go to the "Add-ons" page do you see a message like this at the top?

One or more add-ons currently have actions pending and may be in an inconsistent state. Because of this, some errors may be suppressed and unexpected behavior may occur. If this does not change shortly, please contact the add-on author for guidance.

Do you see XenForo Media Gallery in the list? Which heading is it under? (Legacy add-ons? Upgradeable add-ons?)
 
Ideally we'd need to know what the "some errors" you encountered were during the installation. It's quite possible that the add-on upgrade is still pending and hasn't yet completed.

In your Admin panel if you go to the "Add-ons" page do you see a message like this at the top?



Do you see XenForo Media Gallery in the list? Which heading is it under? (Legacy add-ons? Upgradeable add-ons?)

It's there as a normal, active add-on. The error I received when installing was the same as the one shown in my posting.

Was thinking about removing the add-on and re-install it, but am afraid to lose the data of the images (16k photos).
 
In the list of add-ons, you can open the cog menu next to XenForo Media Gallery and in there is an option to "Rebuild".

This is a non-destructive way of reinstalling an add-on.
 
Runs without issues, but I still have the same message that a job has to be run manually (which then gives the error).

Can I de-install and then re-install the add-on without losing the data from the tables?
 
No you can't do that without losing data.

At this point it really just seems like the add-on isn't enabled. If it was enabled then there's no reason you would be getting the error you reported in your first post.

Is it possible that add-ons have been disabled on the forum via your src/config.php file?

Do you have a line that looks like this in there?
PHP:
$config['enableListeners'] = false;
 
Back
Top Bottom