dodzas Posted December 29, 2018 Share Posted December 29, 2018 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? Link to comment Share on other sites More sharing options...
0 datakick Posted December 29, 2018 Share Posted December 29, 2018 What does the error log says? Link to comment Share on other sites More sharing options...
0 dodzas Posted December 29, 2018 Author Share Posted December 29, 2018 Here is print screen https://prnt.sc/m0zawn Link to comment Share on other sites More sharing options...
0 datakick Posted December 29, 2018 Share Posted December 29, 2018 That does not help much. Copy error, then go to Advanced Parameters > Logs, and paste it to Decrypt an exception message. It will show you the error message in readable format. Link to comment Share on other sites More sharing options...
0 the.rampage.rado Posted December 29, 2018 Share Posted December 29, 2018 Lol... I was even unaware of this new feature! Always was wondering where I can decode those codes... Link to comment Share on other sites More sharing options...
0 AndyC Posted December 29, 2018 Share Posted December 29, 2018 Nor did I ,nice to know it's there though Link to comment Share on other sites More sharing options...
0 lesley Posted December 29, 2018 Share Posted December 29, 2018 If your back office totally dies, you can decode the error messages in the docs as well, https://docs.thirtybees.com/troubleshooting/decoding-error-messages/ Link to comment Share on other sites More sharing options...
0 AndyC Posted December 29, 2018 Share Posted December 29, 2018 I know it's going off topic ... But even without knowing this feature I have still managed to fix errors with the debug mode.. Makes life so much easier than Zencart ..Had to always pay someone to do it Link to comment Share on other sites More sharing options...
0 datakick Posted December 29, 2018 Share Posted December 29, 2018 Also, the same error message is also saved inside your log directory within your thirtybees root. So you can always ftp and look for errors there. Link to comment Share on other sites More sharing options...
0 dodzas Posted January 3, 2019 Author Share Posted January 3, 2019 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(); ``` Link to comment Share on other sites More sharing options...
0 Sigi Posted March 7, 2021 Share Posted March 7, 2021 (edited) since my first installation I had a problem with the tbupdater. When the module ´tbupdater´ is installed i get an 500error when clicking in backoffice in ´modules´. back then @zen helped me and deleted the folder content of ´tbupdater´ now after update to version 1.2 I had to download from github and install the updates of every module manually. If I download the newest version of tbupdater and install it, I still get following error in backoffice in ´modules and services´: [PrestaShop] Fatal error in module file :/*****/modules/tbupdater/classes/autoload.php:require(): Failed opening required '/*****/modules/tbupdater/classes/GuzzleHttp/Psr7/functions.php' (include_path='/****/vendor/pear/archive_tar:/****/vendor/pear/console_getopt:/******/vendor/pear/pear-core-minimal/src:/*****/vendor/pear/pear_exception:.:/usr/lib/php7.3') Edited March 7, 2021 by Sigi better pictures Link to comment Share on other sites More sharing options...
0 datakick Posted March 7, 2021 Share Posted March 7, 2021 This is not a problem with tbupdater, this is some other issue with your server. Your thirtybees is probably using wrong version of GuzzleHttp library. This library is part of /vendor directory. First, check (using core updater) that this directory is properly synchronized. If it is, then there is probably some module that includes old version of GuzzleHttp library, and thirtybees is using this version instead of build-in version. 1 Link to comment Share on other sites More sharing options...
0 Sigi Posted March 7, 2021 Share Posted March 7, 2021 thanks for your reply! I deleted some old modules and it works. Thanks a lot!! Link to comment Share on other sites More sharing options...
Question
dodzas
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?
Link to comment
Share on other sites
12 answers to this question
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