December 9, 20187 yr I got Internal Server Error in the BO when clicking on Advanced Parameters => Performance; also when trying to go to Modules and Services and Payments. This is a fresh install and I have not changed anything. Now the weird thing is that in the BO Demo Page of thirty bees I got the same error???? Please help, I really like this platform but with this errors I can't used it.
December 9, 20187 yr I'm no expert, but have you tried downloading another copy and just staring again to see if that fixes the issues. I did it the first time as I messed up big time
December 9, 20187 yr @Fabsca look into log directory inside your thirtybees installation, there should be file with error log. Let us know the error message
December 10, 20187 yr Author Thank you for the replies. 1. I did another clean new install. with the same result. 2. There is no error in the log 3. Today going back to the BO of the thirty bees homepage, I was suddenly able to go into the Advanced Parameters => Performance; also the Modules and Services and Payments. I am wondering if they had a problem with the demo BO and if so what changes did they do.
December 12, 20187 yr Author Did a 4. installation with another FTP Client a new download from thirty bees homepage. Same result! As soon I try to go into Advanced Parameters => Performance, Modules and Services and Payments, I got a internal Error. No entry in the Admin log or Server log. This is very frustrating! Is there anybody that has the same problem? Here what its said on the screen: Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log This are the Configuration Information: SERVER INFORMATION Server information Linux #1 SMP Fri Aug 31 16:31:50 EDT 2018 x86_64 Server software version Apache/2 PHP version 7.1.1 Memory limit 512M Max execution time 120 DATABASE INFORMATION MySQL version 5.6.41-84.1-log MySQL engine InnoDB MySQL driver DbPDO CHECK YOUR CONFIGURATION Required parameters OK Optional parameters OK
December 14, 20187 yr Author Installed today prestashop 1.6.1.23 Everything works fine. No internal error when I go to Advanced Parameters => Performance; also the Modules and Services and Payments As I think that thirty bees is based on that version I tried that, so far so good. Would be nice to get some help why thirty bees is not working for me. Any help is much appreciated as I like thirty bees much better.
December 14, 20187 yr @Fabsca without error message we can't really help you much. Please look into thirtybees error logs inside log directory server's error log -- location can vary depending on server's configuration, but it's usually /var/log/apache2/error.log or something like that. If you have some sort of cpanel, then you should also be able to access your error logs through there. Once we know what the problem is, we can fix it
December 14, 20187 yr Author That's the bad part: I don't get any error in the server error log (its empty) I don't get any error inside the log of the admin panel. I know it is not easy without any error message.
December 15, 20187 yr To turn on debug mode without accessing this page, apply this patch: ```diff diff --git a/config/defines.inc.php b/config/defines.inc.php index d7d3aad3f1..afd769c002 100755 --- a/config/defines.inc.php +++ b/config/defines.inc.php @@ -31,7 +31,7 @@ /* Debug only / if (!defined('_PS_MODE_DEV_')) { - define('_PS_MODE_DEV_', false); + define('_PS_MODE_DEV_', true); } / Compatibility warning */ define('_PS_DISPLAY_COMPATIBILITY_WARNING_', false); ``` Which means, in file config/defines.inc.php, find the line with _PS_MODE_DEV_, then change the false behind it to a true. It should be line 34. Really weird this bug, but we certainly find the problem.
December 17, 20187 yr Author Traumflug, thank you for your reply. I did that a couple of days ago. But I am not sure what and where I should see something. Hope you can point me to the right spot. I think that something or a file is missing, but that in 4 different installations? that's kind of awkward.
December 17, 20187 yr If you want to pm me your logins I can take a look at it and see what is going wrong.
December 17, 20187 yr Having an error with debug mode turned on leads to something obvious. Like a lot of text at the top of the page or a big red box. No need to search.
December 17, 20187 yr Ok, I have debugged this without being able to see the error message. The fix I have is not elegant, so I want to talk to @Traumflug and @datakick about it before I make a patch to the tbupdater module.
December 21, 20187 yr Author Lesley did a great work to get the bug resolved. So now I am able to get into the Modules and Services. There are two bugs I found while configuring the modules that are coming with TB. 1. the TB update module gives me the "Internal Server Error" same as before with no error logs. 2. the Customer Referral Module gives me an error as soon I log in on the front office as an client. ThirtyBeesException String expected for argument 1. Boolean given instead. at line 98 in file vendor/defuse/php-encryption/src/Crypto.php php 93. * @return string 94. */ 95. public static function decrypt($ciphertext, $key, $raw_binary = false) 96. { 97. if (!\is_string($ciphertext)) { 98. => throw new \TypeError( 99. 'String expected for argument 1. ' . \ucfirst(\gettype($ciphertext)) . ' given instead.' 100. ); 101. } 102. if (!($key instanceof Key)) { 103. throw new \TypeError( - Defuse\Crypto\Crypto::decrypt - [line 76 - classes/PhpEncryption.php] - [2 Arguments] php 71. * @return string|null Plaintext 72. */ 73. public function decrypt($ciphertext) 74. { 75. try { 76. => return Crypto::decrypt($ciphertext, $this->key); 77. } catch (Exception $exception) { 78. return null; 79. } 80. } 81. } ```Argument [0] Argument [1] - **PhpEncryptionCore->decrypt** - [line `601` - `modules/referralprogram/referralprogram.php`] - [1 Arguments]php 596. $cipherTool = new PhpEncryption(PHPENCRYPTIONKEY); 597. } else { 598. $cipherTool = new Blowfish(COOKIEKEY_, COOKIEIV_); 599. } 600. 601. => $explodeResult = explode('|', $cipherTool->decrypt(Tools::getValue('sponsor'))); 602. if ($explodeResult 603. && count($explodeResult) > 1 604. && list($idReferralprogram) = $explodeResult 605. && isset($idReferralprogram) 606. && (int) $idReferralprogram Argument [0] - **ReferralProgram->hookCreateAccountForm** - [line `778` - `classes/Hook.php`] - [1 Arguments]php 773. } 774. } 775. 776. // Immediately return the result if we do not log performances 777. if (!Module::$logmodulesperfs) { 778. => return $module->{$method}($params); 779. } 780. 781. // Store time and memory before and after hook call and save the result in the database 782. $timeStart = microtime(true); 783. $memoryStart = memoryget_usage(true); Argument [0] - **HookCore::coreCallHook** - [line `486` - `classes/Hook.php`] - [3 Arguments]php 481. 482. // Call hook method 483. if ($hookCallable) { 484. $display = Hook::coreCallHook($moduleInstance, 'hook'.$hookName, $hookArgs); 485. } elseif ($hookRetroCallable) { 486. => $display = Hook::coreCallHook($moduleInstance, 'hook'.$retroHookName, $hookArgs); 487. } 488. 489. // Live edit 490. if (!$arrayReturn && $array['liveedit'] && Tools::isSubmit('liveedit') && Tools::getValue('ad') 491. && Tools::getValue('liveToken') == Tools::getAdminToken( Argument [0] Argument [1] hookcreateaccountform Argument [2] - **HookCore::execWithoutCache** - [line `288` - `classes/Hook.php`] - [7 Arguments]php 283. $checkExceptions = true, 284. $usePush = false, 285. $idShop = null 286. ) { 287. if (! PageCache::isEnabled()) { 288. => return static::execWithoutCache($hookName, $hookArgs, $idModule, $arrayReturn, $checkExceptions, $usePush, $idShop); 289. } 290. 291. if (!$moduleList = static::getHookModuleExecList($hookName)) { 292. return ''; 293. } Argument [0] displayCustomerAccountForm Argument [1] Argument [2] Argument [3] Argument [4] 1 Argument [5] Argument [6] - **HookCore::exec** - [line `173` - `controllers/front/AuthController.php`] - [1 Arguments]php 168. $this->assignAddressFormat(); 169. 170. // Call a hook to display more information on form 171. $this->context->smarty->assign( 172. [ 173. => 'HOOKCREATEACCOUNTFORM' => Hook::exec('displayCustomerAccountForm'), 174. 'HOOKCREATEACCOUNTTOP' => Hook::exec('displayCustomerAccountFormTop'), 175. ] 176. ); 177. 178. // Just set $this->template value here in case it's used by Ajax Argument [0] displayCustomerAccountForm - **AuthControllerCore->initContent** - [line `262` - `classes/controller/Controller.php`]php 257. if (!$this->contentonly && ($this->displayheader || (isset($this->className) && $this->className))) { 258. $this->initHeader(); 259. } 260. 261. if ($this->viewAccess()) { 262. => $this->initContent(); 263. } else { 264. $this->errors[] = Tools::displayError('Access denied.'); 265. } 266. 267. if (!$this->contentonly && ($this->displayfooter || (isset($this->className) && $this->className))) { - **ControllerCore->run** - [line `253` - `classes/controller/FrontController.php`]php 248. * @since 1.0.7 249. */ 250. public function run() 251. { 252. if (! PageCache::isEnabled()) { 253. => return parent::run(); 254. } 255. 256. $debug = Configuration::get('TB_PAGE_CACHE_DEBUG'); 257. $content = PageCache::get(); 258. if (! $content) { - **FrontControllerCore->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 `33` - `index.php`]php 28. * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 29. * PrestaShop is an internationally registered trademark & property of PrestaShop SA 30. */ 31. 32. require(dirname(FILE).'/config/config.inc.php'); 33. => Dispatcher::getInstance()->dispatch(); ```
January 14, 20197 yr Author So I guess that the Customer Referral Module had a general error; meaning its not only me? However, I am still stuck with the Update Module that gives me the "internal Server Error" with no error message in the log. @lesleyis this something like I had before, were you fix the code in the tbupdater module ?
January 14, 20197 yr Right, it is likely not only you. Its just a bug in the module that we will have to fix at some point soon.
January 14, 20197 yr That was fixed already in the core. The module itself was fine, the error was coming from a core refactoring.
January 14, 20197 yr Author Sorry but maybe I am not explaining myself correctly, I still have that problem when I enable the module and click on configure.
January 14, 20197 yr Author The latest 1.08, everything works ok, but not this module: Administration thirty bees Updater v1.4.0 - by thirty bees Use this module to keep the core files and modules updated!
Create an account or sign in to comment