XF 2.2 getCookieThirdParties() on null when delete add-on

topkurs2

Active member
Hello.
After uninstall the add-on my forum crashes.

1. Uninstall. On this moment everything is ok.
2. And then deleting files of the add-on I get an error:
Code:
ErrorException: Fatal Error: Uncaught Error: Call to a member function getCookieThirdParties() on null in /path/src/XF/App.php:1895 
Stack trace: #0 /path/src/XF/App.php(346): XF\App->setupCookieConsent(Object(XF\CookieConsent)) 
#1 /path/src/XF/Container.php(31): XF\App->XF\{closure}(Object(XF\Container)) 
#2 /path/src/XF/App.php(2609): XF\Container->offsetGet('cookieConsent')
#3 /path/src/XF/App.php(2154): XF\App->cookieConsent()
#4 /path/src/XF/App.php(2077): XF\App->getGlobalTemplateData(Object(XF\Mvc\Reply\View))
#5 /path/src/XF/Pub/App.php(451): XF\App->preRender(Object(XF\Mvc\Reply\View), 'html')
#6 /path/src/XF/Mvc/Dispatcher.php(397): XF\Pub\App->preRender(Object(XF\Mvc\Reply\View), 'html')
#7 /path/src/XF/Mvc/Dispatcher.php(60): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'h src/XF/App.php:1895
Code:
Stack trace
#0 [internal function]: XF::handleFatalError()
#1 {main}
After that home (main) page - blank.
admin.php - blank
With debug mode - same error as above instead of blank page.

Deleting add-on through Admin panel button Delete files - same result.
Deleting files directly - same result.

To fix this I should upload that plugin again (without installing, just files). In this case, everything works.

How to delete that add-on correctly?
 
Last edited:
Top Bottom