DARKF3D3 Posted February 15, 2022 Share Posted February 15, 2022 (edited) I can't find where this module can be downloaded:https://addons.prestashop.com/it/analytics-statistiche/27138-google-analytics.html I downloaded last version of prestashop, but can't find it into the module folder. Edited February 17, 2022 by DARKF3D3 (see edit history) Link to comment Share on other sites More sharing options...
idnovate.com Posted February 15, 2022 Share Posted February 15, 2022 11 minutes ago, DARKF3D3 said: I can't find where this module can be downloaded:https://addons.prestashop.com/it/analytics-statistiche/27138-google-analytics.html I downloaded last version of prestashop, but can't find it into the module folder. https://github.com/PrestaShop/ps_googleanalytics Link to comment Share on other sites More sharing options...
DARKF3D3 Posted February 16, 2022 Author Share Posted February 16, 2022 13 ore fa, idnovate.com dice: https://github.com/PrestaShop/ps_googleanalytics I'm getting this error when uploading the zip of the module: Link to comment Share on other sites More sharing options...
Nickz Posted February 16, 2022 Share Posted February 16, 2022 How many hour you want to waste on something which won't agree with your site? Link to comment Share on other sites More sharing options...
idnovate.com Posted February 16, 2022 Share Posted February 16, 2022 15 hours ago, DARKF3D3 said: I'm getting this error when uploading the zip of the module: Could you clear cache and enable DEBUG mode? Link to comment Share on other sites More sharing options...
DARKF3D3 Posted February 17, 2022 Author Share Posted February 17, 2022 (edited) 17 ore fa, idnovate.com dice: Could you clear cache and enable DEBUG mode? I cleared cache and tried again with debug move enabled. Here's what i get. Exception Symfony\Component\Debug\Exception\ ClassNotFoundException in modules/ps_googleanalytics/ps_googleanalytics.php (line 231) * * @return bool */ public function install() { $moduleHandler = new PrestaShop\Module\Ps_Googleanalytics\Handler\ModuleHandler(); $database = new PrestaShop\Module\Ps_Googleanalytics\Database\Install($this); $moduleHandler->uninstallModule(self::PS_16_EQUIVALENT_MODULE); return parent::install() && Ps_Googleanalytics->install() in src/Adapter/Module/Module.php (line 249) // Casted to Boolean, because some modules returns 1 instead true and 0 instead false. // Other value types are not expected. See also: https://github.com/PrestaShop/PrestaShop/pull/11442#issuecomment-440485268 // The best way is to check for non Boolean type and `throw \UnexpectedValueException`, // but it's need much refactoring and testing. // TODO: refactoring. $result = (bool) $this->instance->install(); $this->database->set('installed', $result); $this->database->set('active', $result); $this->database->set('version', $this->attributes->get('version')); Module->onInstall() in src/Core/Addon/Module/ModuleManager.php (line 302) $this->moduleUpdater->setModuleOnDiskFromAddons($name); } $module = $this->moduleRepository->getModule($name); $this->checkConfirmationGiven(__FUNCTION__, $module); $result = $module->onInstall(); $this->checkAndClearCache($result); $this->dispatch(ModuleManagementEvent::INSTALL, $module); return $result; ModuleManager->install('/tmp/phpRHqFmF') in src/PrestaShopBundle/Controller/Admin/Improve/ModuleController.php (line 561) $moduleName = $moduleZipManager->getName($fileUploaded->getPathname()); // Install the module $installationResponse = [ 'status' => $moduleManager->install($fileUploaded->getPathname()), 'msg' => '', 'module_name' => $moduleName, ]; if ($installationResponse['status'] === null) { ModuleController->importModuleAction(object(Request)) in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php (line 151) $this->dispatcher->dispatch(KernelEvents::CONTROLLER_ARGUMENTS, $event); $controller = $event->getController(); $arguments = $event->getArguments(); // call controller $response = \call_user_func_array($controller, $arguments); // view if (!$response instanceof Response) { $event = new GetResponseForControllerResultEvent($this, $request, $type, $response); $this->dispatcher->dispatch(KernelEvents::VIEW, $event); HttpKernel->handleRaw(object(Request), 1) in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php (line 68) public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true) { $request->headers->set('X-Php-Ob-Level', (string) ob_get_level()); try { return $this->handleRaw($request, $type); } catch (\Exception $e) { if ($e instanceof RequestExceptionInterface) { $e = new BadRequestHttpException($e->getMessage(), $e); } if (false === $catch) { HttpKernel->handle(object(Request), 1, false) in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php (line 200) $this->boot(); ++$this->requestStackSize; $this->resetServices = true; try { return $this->getHttpKernel()->handle($request, $type, $catch); } finally { --$this->requestStackSize; } } Kernel->handle(object(Request), 1, false) in admin-dg/index.php (line 82) $request = Request::createFromGlobals();Request::setTrustedProxies([], Request::HEADER_X_FORWARDED_ALL);try { require_once __DIR__.'/../autoload.php'; $response = $kernel->handle($request, HttpKernelInterface::MASTER_REQUEST, false); $response->send(); $kernel->terminate($request, $response);} catch (NotFoundHttpException $exception) { define('ADMIN_LEGACY_CONTEXT', true); // correct Apache charset (except if it's too late) Edited February 17, 2022 by DARKF3D3 (see edit history) Link to comment Share on other sites More sharing options...
idnovate.com Posted February 17, 2022 Share Posted February 17, 2022 Have you installed this version? https://github.com/PrestaShop/ps_googleanalytics/releases/download/v4.1.0/ps_googleanalytics.zip 1 Link to comment Share on other sites More sharing options...
DARKF3D3 Posted February 17, 2022 Author Share Posted February 17, 2022 I thought so, but I just downloaded it again using your link, and the installation was completed successfully. So maybe I downloaded the wrong one. Thank you for the help! 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now