Jump to content
thirty bees forum
  • 0

Error 500 after instaling tbupdater module


Question

Posted

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?

12 answers to this question

Recommended Posts

  • 0
Posted

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.

0_1546088400193_b4c433d7-76cd-4e0d-9eec-8e4299a9e34f-image.png

  • 0
Posted

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/

  • 0
Posted

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

  • 0
Posted

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(); ```

  • 0
Posted (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')

 

image.thumb.png.f7ac305e7ed0cf3f6a43796b820e2c93.png

 

 

 

 

 

 

 

 

 

 

 

Edited by Sigi
better pictures
  • 0
Posted

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. 

  • Thanks 1

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...