Skip to content
View in the app

A better way to browse. Learn more.

thirty bees forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Error 500 after instaling tbupdater module

Featured Replies

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?

  • Author

Here is print screen https://prnt.sc/m0zawn

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/

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

  • Author

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 years later...

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

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. 

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.