dedbruk Posted January 16, 2020 Share Posted January 16, 2020 (edited) Witam. Od wczoraj mam problem z zalogowaniem do panelu admina. Co jakiś czas mnie wywala i pokazuje błąd. Po kilku minutach wraca do normy i tak w kółko. Nic specjalnego w tym czasie nie zmieniałem. Wyświetla błąd 404 albo błąd serwera 503. Hosting smarthost. Kontaktowałem się z nimi twierdzą że aplikacja momentami zużywa duzo zasobów. Poniżej wklejam to co wyskoczyło w trybie debugowania. Proszę o pomoc Quote Exception in classes/Tools.php (line 2162) $url, curl_errno($curl), curl_error($curl) ); throw new \Exception($errorMessage); } curl_close($curl); } ToolsCore::file_get_contents_curl('https://hipresta.com/module/hiprestashopapi/prestashopapi?secure_key=6db77b878f95ee7cb56d970e4f52f095&random=rand&free_module=&module_name=A_ATC', 5, null)in classes/Tools.php (line 2235) $content = @file_get_contents($url, $use_include_path, $stream_context); } else { if ($require_fopen) { $content = Tools::file_get_contents_fopen($url, $use_include_path, $stream_context); } else { $content = Tools::file_get_contents_curl($url, $curl_timeout, $opts); if (empty($content) && $fallback) { $content = Tools::file_get_contents_fopen($url, $use_include_path, $stream_context); } } } ToolsCore::file_get_contents('https://hipresta.com/module/hiprestashopapi/prestashopapi?secure_key=6db77b878f95ee7cb56d970e4f52f095&random=rand&free_module=&module_name=A_ATC')in modules/hiaddtocartbutton/hiaddtocartbutton.php (line 154) * @param bool $show_tab (show admin tabs if function return true else hide tab) */ public function getDashboardModule($module_name, $free_module = false, $random = '') { $modules = Tools::jsonDecode(Tools::file_get_contents('https://hipresta.com/module/hiprestashopapi/prestashopapi?secure_key=6db77b878f95ee7cb56d970e4f52f095&random='.$random.'&free_module='.$free_module.'&module_name='.$module_name)); $isset_modules = Tools::strlen(serialize($modules)) > 19 ? true : false; if ($isset_modules) { foreach ($modules as $key => $module) { if ($this->isInstalled($module->name)) { unset($modules->$key); HiAddToCartButton->getDashboardModule('A_ATC', false, 'rand')in modules/hiaddtocartbutton/hiaddtocartbutton.php (line 180) */ public function getModuleContent($module_name, $free_module = false, $random = '', $show_tab = false) { if ($random) { $modules = $this->getDashboardModule($module_name, $free_module, $random); $isset_modules = true; } else { $modules = Tools::jsonDecode(Tools::file_get_contents('https://hipresta.com/module/hiprestashopapi/prestashopapi?secure_key=6db77b878f95ee7cb56d970e4f52f095&random='.$random.'&free_module='.$free_module.'&module_name='.$module_name)); $isset_modules = Tools::strlen(serialize($modules)) > 19 ? true : false; if ($isset_modules) { HiAddToCartButton->getModuleContent('A_ATC', false, 'rand')in modules/hiaddtocartbutton/hiaddtocartbutton.php (line 409) /* PS 1.7 */ public function hookDashboardZoneOne() { $this->updatePosition(Hook::getIdByName('DashboardZoneOne'), 0); $this->getModuleContent('A_ATC', false, 'rand'); return $this->display(__FILE__, 'dashboard_zone.tpl'); } } HiAddToCartButton->hookDashboardZoneOne(array('date_from' => '2019-12-12', 'date_to' => '2021-02-28', 'cookie' => object(Cookie), 'cart' => null, 'altern' => 1))in classes/Hook.php (line 970) return $output; } public static function coreCallHook($module, $method, $params) { return $module->{$method}($params); } public static function coreRenderWidget($module, $hook_name, $params) { return $module->renderWidget($hook_name, $params); HookCore::coreCallHook(object(HiAddToCartButton), 'hookdashboardZoneOne', array('date_from' => '2019-12-12', 'date_to' => '2021-02-28', 'cookie' => object(Cookie), 'cart' => null, 'altern' => 1))in classes/Hook.php (line 355) * @return string */ private static function callHookOn($module, $hookName, $hookArgs) { if (is_callable(array($module, 'hook' . $hookName))) { return Hook::coreCallHook($module, 'hook' . $hookName, $hookArgs); } foreach (Hook::getHookAliasesFor($hookName) as $hook) { if (is_callable(array($module, 'hook' . $hook))) { return Hook::coreCallHook($module, 'hook' . $hook, $hookArgs); } HookCore::callHookOn(object(HiAddToCartButton), 'dashboardZoneOne', array('date_from' => '2019-12-12', 'date_to' => '2021-02-28', 'cookie' => object(Cookie), 'cart' => null, 'altern' => 1))in classes/Hook.php (line 907) if (0 !== $key && true === $chain) { $hook_args = $output; } $display = Hook::callHookOn($moduleInstance, $hook_name, $hook_args); if ($array_return) { $output[$moduleInstance->name] = $display; } else { if (true === $chain) { HookCore::exec('dashboardZoneOne', array('date_from' => '2019-12-12', 'date_to' => '2021-02-28'))in controllers/admin/AdminDashboardController.php (line 313) $moduleManager = $moduleManagerBuilder->build(); $this->tpl_view_vars = array( 'date_from' => $this->context->employee->stats_date_from, 'date_to' => $this->context->employee->stats_date_to, 'hookDashboardZoneOne' => Hook::exec('dashboardZoneOne', $params), 'hookDashboardZoneTwo' => Hook::exec('dashboardZoneTwo', $params), //'translations' => $translations, 'action' => '#', 'warning' => $this->getWarningDomainName(), 'new_version_url' => Tools::getCurrentUrlProtocolPrefix() . _PS_API_DOMAIN_ . '/version/check_version.php?v=' . _PS_VERSION_ . '&lang=' . $this->context->language->iso_code . '&autoupgrade=' . (int) ($moduleManager->isInstalled('autoupgrade') && $moduleManager->isEnabled('autoupgrade')) . '&hosted_mode=' . (int) defined('_PS_HOST_MODE_'), AdminDashboardControllerCore->renderView()in classes/controller/AdminController.php (line 2114) } elseif ($this->display == 'view') { // Some controllers use the view action without an object if ($this->className) { $this->loadObject(true); } $this->content .= $this->renderView(); } elseif ($this->display == 'details') { $this->content .= $this->renderDetails(); } elseif (!$this->ajax) { // FIXME: Sorry. I'm not very proud of this, but no choice... Please wait sf refactoring to solve this. if (get_class($this) != 'AdminCarriersController') { AdminControllerCore->initContent()in classes/controller/Controller.php (line 292) if (!$this->content_only && ($this->display_header || (isset($this->className) && $this->className))) { $this->initHeader(); } if ($this->viewAccess()) { $this->initContent(); } else { $this->errors[] = $this->trans('Access denied.', array(), 'Admin.Notifications.Error'); } if (!$this->content_only && ($this->display_footer || (isset($this->className) && $this->className))) { ControllerCore->run()in classes/Dispatcher.php (line 515) if (isset($params_hook_action_dispatcher)) { Hook::exec('actionDispatcher', $params_hook_action_dispatcher); } // Running controller $controller->run(); // Execute hook dispatcher after if (isset($params_hook_action_dispatcher)) { Hook::exec('actionDispatcherAfter', $params_hook_action_dispatcher); } DispatcherCore->dispatch()in adm/index.php (line 97) if (!headers_sent()) { header('Content-Type: text/html; charset=utf-8'); } // Prepare and trigger LEGACY admin dispatcher Dispatcher::getInstance()->dispatch(); } Edited January 16, 2020 by dedbruk (see edit history) 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