XF 2.3 Can not log in anymore after update of backup plugin

sam2019

Member

error:

An unexpected error occurred. Please try again later.

because I do not know what the path to the admin panel is (assuming I can use that to log in and delete that backup add on) I have zero ways of getting into my forum

can anyone help please?
 
If anyone encounters the same error, here is the log entry:


Server error log



  • ErrorException: [E_WARNING] require(/var/www/web28343439/html/xenforo/src/addons/EWR/Backup/vendor/illuminate/support/helpers.php): Failed to open stream: No such file or directory
  • src/XF/ComposerAutoload.php:120

  • Generated by: Unknown account
  • Jul 20, 2024 at 7:16 AM


Stack trace​



#0 src/XF/ComposerAutoload.php(120): XF::handlePhpError(2, '[E_WARNING] req...', '/var/www/web283...', 120)
#1 src/XF/ComposerAutoload.php(120): require()
#2 src/XF.php(290): XF\ComposerAutoload->autoloadFiles()
#3 src/XF/App.php(2470): XF::registerComposerAutoloadData('/var/www/web283...', Array)
#4 src/XF/App.php(2028): XF\App->setupAddOnComposerAutoload()
#5 src/XF/Pub/App.php(94): XF\App->setup(Array)
#6 src/XF.php(497): XF\Pub\App->setup(Array)
#7 src/XF.php(520): XF::setupApp('XF\\Pub\\App')
#8 index.php(20): XF::runApp('XF\\Pub\\App')
#9 {main}


Request state​



array(4) {
["url"] => string(38) "/threads/sasa-from-italy.262/post-1972"
["referrer"] => bool(false)
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}


Delete
 
one more small issue:

I have reset the config.php to its original state after disabling the backup plug in. the forum is accessible now but in admin I still get this message:

Code event listeners and extensions have been disabled via config.php. This is designed as an emergency measure to allow you to regain access to the control panel if an add-on blocks access and disable it. This should not be used as a debugging tool.

why?
 
this is my config.php now:

<?php

$config['db']['host'] = 'localhost';
$config['db']['port'] = '3306';
$config['db']['username'] = xxx
$config['db']['password'] = xxx
$config['db']['dbname'] = xxx

$config['fullUnicode'] = true;

$config['enableAddOnArchiveInstaller'] = true;
 
Oh, I missed that somehow. The change hasn't been picked up for some reason. It may be due aggressive opcache configurations, in which case restarting PHP may be necessary.
 
actually, for reasons i do not understand the config.php still contained the line

$config['enableListeners'] = false;

I then deleted it and made sure the config file was in its original form BUT that lead to this error on my forum (again making it inaccessible!!!)

Oops! We ran into some problems.​


An error occurred while the page was being generated. Please try again later.


the server error is this:


Exception: Could not find class Hampel\KnownBots\XF\Repository\SessionActivity when attempting to extend XF\Repository\SessionActivityRepository in src/XF/Extension.php at line 217

XF\Extension->extendClass() in src/XF/Mvc/Entity/Manager.php at line 295
XF\Mvc\Entity\Manager->getRepository() in src/XF/Mvc/Controller.php at line 1051
XF\Mvc\Controller->repository() in src/XF/Admin/Controller/IndexController.php at line 43
XF\Admin\Controller\IndexController->actionIndex() in src/XF/Mvc/Dispatcher.php at line 362
XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 264
XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 121
XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 63
XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2777
XF\App->run() in src/XF.php at line 798
XF::runApp() in admin.php at line 15
 
After re-installing the known bots add on, which is faulty but will not block the forum when installed, it works again.
I guess the de install routine of that add on is somehow flawed.
 
After re-installing the known bots add on, which is faulty but will not block the forum when installed, it works again.
I guess the de install routine of that add on is somehow flawed.

Attempting to install the addon with listeners disabled via $config['enableListeners'] = false; will cause the error you found.

Enable listeners first and then re-install the addon.
 
Back
Top Bottom