Some erros
Error: Class 'XF\Admin\ControllerPlugin\AbstractPlugin' not found in src/addons/DigitalPoint/Analytics/Admin/ControllerPlugin/AnalyticsOAuth.php at line 7
Error: Class 'XF\Admin\ControllerPlugin\AbstractPlugin' not found in src/addons/DigitalPoint/Analytics/Admin/ControllerPlugin/AnalyticsOAuth.php at line 7
- include() in src/vendor/composer/ClassLoader.php at line 444
- Composer\Autoload\includeFile() in src/vendor/composer/ClassLoader.php at line 322
- Composer\Autoload\ClassLoader->loadClass()
- spl_autoload_call() in src/XF/Mvc/Controller.php at line 648
- XF\Mvc\Controller->plugin() in src/addons/DigitalPoint/Analytics/XF/Admin/Controller/Option.php at line 12
- DigitalPoint\Analytics\XF\Admin\Controller\Option->actionGoogleAnalyticsOAuth() in src/XF/Mvc/Dispatcher.php at line 350
- XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 257
- XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 113
- XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 55
- XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2184
- XF\App->run() in src/XF.php at line 391
- XF::runApp() in admin.php at line 13
BattleKing
Spirit of darkness
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P Member
Collaborate
Registered
- Joined
- May 24, 2020
- Messages
- 3,529
- Points
- 523
Reputation:
- By BattleKing
Some erros
Error: Class 'XF\Admin\ControllerPlugin\AbstractPlugin' not found in src/addons/DigitalPoint/Analytics/Admin/ControllerPlugin/AnalyticsOAuth.php at line 7
- include() in src/vendor/composer/ClassLoader.php at line 444
- Composer\Autoload\includeFile() in src/vendor/composer/ClassLoader.php at line 322
- Composer\Autoload\ClassLoader->loadClass()
- spl_autoload_call() in src/XF/Mvc/Controller.php at line 648
- XF\Mvc\Controller->plugin() in src/addons/DigitalPoint/Analytics/XF/Admin/Controller/Option.php at line 12
- DigitalPoint\Analytics\XF\Admin\Controller\Option->actionGoogleAnalyticsOAuth() in src/XF/Mvc/Dispatcher.php at line 350
- XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 257
- XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 113
- XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 55
- XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2184
- XF\App->run() in src/XF.php at line 391
- XF::runApp() in admin.php at line 13
↑View previous replies…
BattleKingJust found how to replicate it, it seems that it is not compatible in that case. the AbstractPlugin class is in a different location and the content is also a little bit different, If I change the path to that it still failed.
Modifications in AnalyticsOAuth.php
//use XF\Admin\ControllerPlugin\AbstractPlugin;
use \XF\Api\ControllerPlugin\AbstractPlugin;
But then you will get this error
LogicException: API controller plugins only work with API controllers in src\XF\Api\ControllerPlugin\AbstractPlugin.php at line 21
public function __construct(\XF\Mvc\Controller $controller)
{
if (!($controller instanceof \XF\Api\Controller\AbstractController))
{
throw new \LogicException("API controller plugins only work with API controllers");
}
$controller is an instance of \XF\Admin\Controller\AbstractController
Let's wait for a fix of the developer themself
BattleKingI assume that the description of the extension states : Compatible XF Versions 2.1, 2.2
The error occurred after installation - this went fine and subsequent attempts to connect to a Google account
Description of the solution, can it be verified? Thank you : https://xenforo.com/community/threads/digitalpoint-better-google-analytics.206200/page-13#post-1580096
joostyleSolved and updated
BattleKing
Spirit of darkness
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P Member
Collaborate
Registered
- Joined
- May 24, 2020
- Messages
- 3,529
- Points
- 523
Reputation:
- By BattleKing
For my understanding this is not compatible with XF2.1.x, because here the ControllerPlugin folder and the file AbstractPlugin is missing, or lets say it is in a different location.
When do you get this error message?
Tell me the steps to reproduce it
Modifications in AnalyticsOAuth.php
//use XF\Admin\ControllerPlugin\AbstractPlugin;
use \XF\Api\ControllerPlugin\AbstractPlugin;
But then you will get this error
LogicException: API controller plugins only work with API controllers in src\XF\Api\ControllerPlugin\AbstractPlugin.php at line 21
- XF\Api\ControllerPlugin\AbstractPlugin->__construct() in src\XF\Mvc\Controller.php at line 648
- XF\Mvc\Controller->plugin() in src\addons\DigitalPoint\Analytics\XF\Admin\Controller\Option.php at line 12
- DigitalPoint\Analytics\XF\Admin\Controller\Option->actionGoogleAnalyticsOAuth() in src\XF\Mvc\Dispatcher.php at line 350
- XF\Mvc\Dispatcher->dispatchClass() in src\XF\Mvc\Dispatcher.php at line 257
- XF\Mvc\Dispatcher->dispatchFromMatch() in src\XF\Mvc\Dispatcher.php at line 113
- XF\Mvc\Dispatcher->dispatchLoop() in src\XF\Mvc\Dispatcher.php at line 55
- XF\Mvc\Dispatcher->run() in src\XF\App.php at line 2184
- XF\App->run() in src\XF.php at line 391
- XF::runApp() in admin.php at line 13
public function __construct(\XF\Mvc\Controller $controller)
{
if (!($controller instanceof \XF\Api\Controller\AbstractController))
{
throw new \LogicException("API controller plugins only work with API controllers");
}
$controller is an instance of \XF\Admin\Controller\AbstractController
Let's wait for a fix of the developer themself
- By joostyle
Just found how to replicate it, it seems that it is not compatible in that case. the AbstractPlugin class is in a different location and the content is also a little bit different, If I change the path to that it still failed.
Modifications in AnalyticsOAuth.php
//use XF\Admin\ControllerPlugin\AbstractPlugin;
use \XF\Api\ControllerPlugin\AbstractPlugin;
But then you will get this error
LogicException: API controller plugins only work with API controllers in src\XF\Api\ControllerPlugin\AbstractPlugin.php at line 21
Reason in \XF\Api\ControllerPlugin\AbstractPlugin.php:
- XF\Api\ControllerPlugin\AbstractPlugin->__construct() in src\XF\Mvc\Controller.php at line 648
- XF\Mvc\Controller->plugin() in src\addons\DigitalPoint\Analytics\XF\Admin\Controller\Option.php at line 12
- DigitalPoint\Analytics\XF\Admin\Controller\Option->actionGoogleAnalyticsOAuth() in src\XF\Mvc\Dispatcher.php at line 350
- XF\Mvc\Dispatcher->dispatchClass() in src\XF\Mvc\Dispatcher.php at line 257
- XF\Mvc\Dispatcher->dispatchFromMatch() in src\XF\Mvc\Dispatcher.php at line 113
- XF\Mvc\Dispatcher->dispatchLoop() in src\XF\Mvc\Dispatcher.php at line 55
- XF\Mvc\Dispatcher->run() in src\XF\App.php at line 2184
- XF\App->run() in src\XF.php at line 391
- XF::runApp() in admin.php at line 13
public function __construct(\XF\Mvc\Controller $controller)
{
if (!($controller instanceof \XF\Api\Controller\AbstractController))
{
throw new \LogicException("API controller plugins only work with API controllers");
}
$controller is an instance of \XF\Admin\Controller\AbstractController
Let's wait for a fix of the developer themself
The error occurred after installation - this went fine and subsequent attempts to connect to a Google account
Description of the solution, can it be verified? Thank you : https://xenforo.com/community/threads/digitalpoint-better-google-analytics.206200/page-13#post-1580096
BattleKing
Spirit of darkness
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P Member
Collaborate
Registered
- Joined
- May 24, 2020
- Messages
- 3,529
- Points
- 523
Reputation:
- By BattleKing
I assume that the description of the extension states : Compatible XF Versions 2.1, 2.2
The error occurred after installation - this went fine and subsequent attempts to connect to a Google account
Description of the solution, can it be verified? Thank you : https://xenforo.com/community/threads/digitalpoint-better-google-analytics.206200/page-13#post-1580096