Jump to content
thirty bees forum

dodzas

Members
  • Posts

    3
  • Joined

  • Last visited

dodzas's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Decoded error message: ThirtyBeesException Call to undefined method GuzzleHttp\Client::getAsync() at line 284 in file modules/tbupdater/tbupdater.php php 279. 280. $currentVersion = new Version(_TB_VERSION_); 281. $localModules = Tools::strtolower(Configuration::get('PS_LOCALE_COUNTRY')); 282. 283. $promises = [ 284. => 'updates' => $guzzle->getAsync("channel/{$channel}.json"), 285. 'modules' => $guzzle->getAsync("modules/all.json"), 286. 'country' => $guzzle->getAsync("modules/{$localModules}.json"), 287. ]; 288. 289. $results = GuzzleHttp\Promise\settle($promises)->wait(); - TbUpdater->checkForUpdates - [line 389 - modules/tbupdater/tbupdater.php] - [1 Arguments] php 384. */ 385. public function getCachedModulesInfo($locale = null) 386. { 387. $modules = json_decode(@file_get_contents(__DIR__.'/cache/modules.json'), true); 388. if (!$modules) { 389. => $modules = $this->checkForUpdates(true); 390. if (!$modules) { 391. return false; 392. } 393. } 394. Argument [0] 1 - TbUpdater->getCachedModulesInfo - [line 1052 - classes/module/Module.php] php 1047. $languageCode = str_replace('_', '-', mb_strtolower(Context::getContext()->language->language_code)); 1048. 1049. // This array gets filled with requested module images to download (key = module code, value = guzzle promise) 1050. $imagePromises = []; 1051. $guzzle = new \GuzzleHttp\Client(['http_errors' => false]); 1052. => if (Validate::isLoadedObject($updater) && $modules = $updater->getCachedModulesInfo()) { 1053. foreach ($modules as $name => $module) { 1054. if (isset($modulesNameToCursor[mb_strtolower(strval($name))])) { 1055. $moduleFromList = $modulesNameToCursor[mb_strtolower(strval($name))]; 1056. if ($moduleFromList->version && Version::gt($module['version'], $moduleFromList->version)) { 1057. $moduleFromList->version_addons = $module['version']; - ModuleCore::getModulesOnDisk - [line 328 - controllers/admin/AdminModulesController.php] - [3 Arguments] php 323. } 324. $modulesPreferences[$v['module']] = $v; 325. } 326. 327. // Retrieve Modules List 328. => $modules = Module::getModulesOnDisk(true, $this->logged_on_addons, $this->id_employee); 329. $this->initModulesList($modules); 330. $this->nb_modules_total = count($modules); 331. $moduleErrors = []; 332. $moduleSuccess = []; 333. $upgradeAvailable = []; ```Argument [0] 1 Argument [1] Argument [2] 1 - **AdminModulesControllerCore->initContent** - [line `366` - `classes/controller/Controller.php`]php 361. if (!$this->contentonly && ($this->displayheader || (isset($this->className) && $this->className))) { 362. $this->initHeader(); 363. } 364. 365. if ($this->viewAccess()) { 366. => $this->initContent(); 367. } else { 368. $this->errors[] = Tools::displayError('Access denied.'); 369. } 370. 371. if (!$this->contentonly && ($this->displayfooter || (isset($this->className) && $this->className))) { - **ControllerCore->run** - [line `837` - `classes/Dispatcher.php`]php 832. if (isset($paramsHookActionDispatcher)) { 833. Hook::exec('actionDispatcher', $paramsHookActionDispatcher); 834. } 835. 836. // Running controller 837. => $controller->run(); 838. } catch (PrestaShopException $e) { 839. $e->displayMessage(); 840. } 841. } 842. - **DispatcherCore->dispatch** - [line `63` - `admin/index.php`]php 58. if (!isset($REQUEST['controller']) && isset($REQUEST['tab'])) { 59. $REQUEST['controller'] = strtolower($REQUEST['tab']); 60. } 61. 62. // Prepare and trigger admin dispatcher 63. => Dispatcher::getInstance()->dispatch(); ```
  2. Here is print screen https://prnt.sc/m0zawn
  3. Hi i get error then trying to instal tbupdater module. My Thirty bee version is 1.0.4 and would like to update it to 1.0.8 with the updater, but i get Error 500. Does anyone know how to fix it?
×
×
  • Create New...