XF 2.3 A corrupted plugin disabled my site. What is the solution?

otzar

New member
I tried to install it. The site crashed immediately. I tried deleting it on the server but it still gives an error message and the site has been stuck for half a day. What is the solution?


exception occurred: [Exception] Could not find class KL\EditorManager\XF\Entity\UserOption when attempting to extend XF\Entity\UserOption in
src/XF/Extension.php on line 217

  1. XF\Extension->extendClass() in src/XF/Mvc/Entity/Manager.php at line 56
  2. XF\Mvc\Entity\Manager->getEntityClassName() in src/XF/Mvc/Entity/Manager.php at line 765
  3. XF\Mvc\Entity\Manager->instantiateEntity() in src/XF/Repository/UserRepository.php at line 193
  4. XF\Repository\UserRepository->_hydrateGuestUserData() in src/XF/Repository/UserRepository.php at line 190
  5. XF\Repository\UserRepository->_hydrateGuestUserData() in src/XF/Repository/UserRepository.php at line 139
  6. XF\Repository\UserRepository->getGuestUser() in src/XF/Repository/UserRepository.php at line 36
  7. XF\Repository\UserRepository->getVisitor() in src/XF/App.php at line 2332
  8. XF\App->getVisitorFromSession() in src/XF/Pub/App.php at line 200
  9. XF\Pub\App->start() in src/XF/App.php at line 2822
  10. XF\App->run() in src/XF.php at line 806
  11. XF::runApp() in index.php at line 23
 
Solution
The code would suggest that the add on wasn't removed properly. That said you can disable all add ons manually by adding the below code to the end of your src/config.php file.

$config['enableListeners'] = false;

Taken from XenForo docs.


After that you can login at your admin panel and remove the add on in question from there.
The code would suggest that the add on wasn't removed properly. That said you can disable all add ons manually by adding the below code to the end of your src/config.php file.

$config['enableListeners'] = false;

Taken from XenForo docs.


After that you can login at your admin panel and remove the add on in question from there.
 
Solution
You can't just delete the PHP files, it needs to be uninstalled before deleting files (otherwise you end up with errors like you see where the "system" thinks there should be files there for things like class extending). A couple options:
  • Put the addon files back, then uninstall the addon, then delete the files.
  • Uninstall the addon via CLI with the php cmd.php xf:addon-uninstall command.
You can set the flag to disable addons listeners in your config.php file:
PHP:
$config['enableListeners'] = false;
 
Back
Top Bottom