Jump to content
thirty bees forum
  • 0

500 error after importing products only on front office


Janvier

Question

This is the second time I'm posting this. I have and unexplained error that prevents me from accessing the front office. I can use the back office just fine though.

Last time the error happened was when I clicked on "send email to customer for payment" in the back-office. Now it happened after a product import on a brand new clean install.

What can I do to fix this? I checked the logs but nothing makes any sense.

I get a lot of these in the nginx error log: 2018/03/12 00:02:43 [error] 6711#6711: *257022 open() "/home/116193.cloudwaysapps.com/hfyfvckdre/public_html/913-small_default/boucle-d-oreille-epingle-poire-grand-modele-en-or-blanc-et-diamant-blanc-poire.jpg" failed (2: No such file or directory), client: 82.253.89.138, server: thirtybees-116193-439824.cloudwaysapps.com, request: "GET /913-small_default/boucle-d-oreille-epingle-poire-grand-modele-en-or-blanc-et-diamant-blanc-poire.jpg HTTP/1.1", host: "thirtybees-116193-439824.cloudwaysapps.com", referrer: "http://thirtybees-116193-439824.cloudwaysapps.com/administrator/index.php?controller=AdminProducts&id_product=294&updateproduct&token=6c8050a879f08b610f1a4ceadec7cd2f"

And this in the apache error log: [Sun Mar 11 23:48:36.462559 2018] [proxyfcgi:error] [pid 1573] [client 127.0.0.1:56777] AH01071: Got error 'PHP message: PHP Fatal error: Out of memory (allocated 263733248) (tried to allocate 127670514 bytes) in /home/116193.cloudwaysapps.com/hfyfvckdre/publichtml/classes/Tools.php on line 1863\n' [Sun Mar 11 23:49:10.742126 2018] [proxyfcgi:error] [pid 1541] [client 127.0.0.1:56744] AH01068: Got bogus version 118 [Sun Mar 11 23:49:10.743691 2018] [proxyfcgi:error] [pid 1541] (22)Invalid argument: [client 127.0.0.1:56744] AH01075: Error dispatching request to : (passing brigade to output filters) [Sun Mar 11 23:49:19.330212 2018] [proxyfcgi:error] [pid 1555] [client 127.0.0.1:56761] AH01068: Got bogus version 118 [Sun Mar 11 23:49:19.330397 2018] [proxyfcgi:error] [pid 1555] (22)Invalid argument: [client 127.0.0.1:56761] AH01075: Error dispatching request to : (passing brigade to output filters) [Sun Mar 11 23:49:24.647231 2018] [proxyfcgi:error] [pid 1560] [client 127.0.0.1:56766] AH01068: Got bogus version 118 [Sun Mar 11 23:49:24.648302 2018] [proxyfcgi:error] [pid 1560] (22)Invalid argument: [client 127.0.0.1:56766] AH01075: Error dispatching request to : (passing brigade to output filters) [Sun Mar 11 23:49:24.943241 2018] [proxyfcgi:error] [pid 1569] [client 127.0.0.1:56772] AH01068: Got bogus version 118 [Sun Mar 11 23:49:24.943450 2018] [proxyfcgi:error] [pid 1569] (22)Invalid argument: [client 127.0.0.1:56772] AH01075: Error dispatching request to : (passing brigade to output filters) [Sun Mar 11 23:57:46.226429 2018] [proxyfcgi:error] [pid 1685] [client 127.0.0.1:57188] AH01071: Got error 'PHP message: PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 266420224 bytes) in /home/116193.cloudwaysapps.com/hfyfvckdre/publichtml/classes/exception/PrestaShopException.php on line 240\nPHP message: PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 266260480 bytes) in Unknown on line 0\n', referer: http://thirtybees-116193-439824.cloudwaysapps.com/administrator/index.php?controller=AdminProducts&idproduct=1&updateproduct&token=6c8050a879f08b610f1a4ceadec7cd2f [Mon Mar 12 00:07:47.821186 2018] [proxyfcgi:error] [pid 2276] [client 127.0.0.1:57370] AH01071: Got error 'PHP message: PHP Fatal error: Allowed memory size of 805306368 bytes exhausted (tried to allocate 473364304 bytes) in /home/116193.cloudwaysapps.com/hfyfvckdre/publichtml/classes/exception/PrestaShopException.php on line 240\nPHP message: PHP Fatal error: Allowed memory size of 805306368 bytes exhausted (tried to allocate 473366528 bytes) in Unknown on line 0\n', referer: http://thirtybees-116193-439824.cloudwaysapps.com/administrator/index.php?controller=AdminProducts&idproduct=294&updateproduct&token=6c8050a879f08b610f1a4ceadec7cd2f [Mon Mar 12 00:08:34.181543 2018] [proxyfcgi:error] [pid 2788] [client 127.0.0.1:57380] AH01071: Got error 'PHP message: PHP Fatal error: Allowed memory size of 805306368 bytes exhausted (tried to allocate 473364304 bytes) in /home/116193.cloudwaysapps.com/hfyfvckdre/publichtml/classes/exception/PrestaShopException.php on line 240\nPHP message: PHP Fatal error: Allowed memory size of 805306368 bytes exhausted (tried to allocate 473366528 bytes) in Unknown on line 0\n'

I'm on cloudways hosting. What can I do? I'm getting pretty desperate

Link to comment
Share on other sites

17 answers to this question

Recommended Posts

  • 0

It was too low, so I set it higher and it seems to be working. But not really, I cloned the application to use it as a test app and the same thing happened only this time not during an import but when creating employees! This is the third time I'm seeing this bug.

@lesley I could really use some urgent help, this is crazy.

Again, here's the apache error log of the newly cloned app : Undefined offset: 110 in /home/116193.cloudwaysapps.com/ptbdceufjv/publichtml/cache/smarty/compile/90/62/fd/9062fda1f78ce1110c38d3da8d86f60c2e06e35e.file.form.tpl.php on line 383\nPHP message: PHP Notice: Undefined offset: 110 in /home/116193.cloudwaysapps.com/ptbdceufjv/publichtml/cache/smarty/compile/90/62/fd/9062fda1f78ce1110c38d3da8d86f60c2e06e35e.file.form.tpl.php on line 387\n', referer: http://thirtybees-116193-454588.cloudwaysapps.com/administrator/index.php?controller=AdminEmployees&idemployee=5&conf=4&token=abd704ba608e0b351f48d2b741d40b88 [Mon Mar 12 17:00:21.577437 2018] [proxyfcgi:error] [pid 30949] [client 127.0.0.1:53302] AH01071: Got error 'PHP message: PHP Warning: file(/home/116193.cloudwaysapps.com/ptbdceufjv/publichtml/vendor/smarty/smarty/libs/sysplugins/smartyinternaltemplatebase.php(157) : eval()'d code): failed to open stream: No such file or directory in /home/116193.cloudwaysapps.com/ptbdceufjv/publichtml/classes/exception/PrestaShopException.php on line 184\nPHP message: PHP Warning: arrayslice() expects parameter 1 to be array, boolean given in /home/116193.cloudwaysapps.com/ptbdceufjv/publichtml/classes/exception/PrestaShopException.php on line 191\nPHP message: PHP Warning: Invalid argument supplied for foreach() in /home/116193.cloudwaysapps.com/ptbdceufjv/publichtml/classes/exception/PrestaShopException.php on line 198\nPHP message: PHP Warning: file(/home/116193.cloudwaysapps.com/ptbdceufjv/publichtml/vendor/smarty/smarty/libs/sysplugins/smartyinternaltemplatebase.php(157) : eval()'d code): failed to open stream: No such file or directory in /home/116193.cloudwaysapps.com/ptbdceufjv/publichtml/classes/exception/PrestaShopException.php on line 184\nPHP message: PHP Warning: arrayslice() expects parameter 1 to be array, boolean given in /home/116193.cloudwaysapps.com/ptbdceufjv/publichtml/classes/exception/PrestaShopException.php on line 191\nPHP message: PHP Warning: Invalid argument supplied for foreach() in /home/116193.cloudwaysapps.com/ptbdceufjv/publichtml/classes/exception/PrestaShopException.php on line 198\n', referer: http://thirtybees-116193-454588.cloudwaysapps.com/administrator/index.php?controller=AdminProfiles&id_profile=4&conf=4&token=4e4216c62d50e1276da7f71ebb81b1c7

And the nginx error log: 2018/03/12 16:59:01 [error] 29530#29530: *5204 open() "/home/116193.cloudwaysapps.com/ptbdceufjv/public_html/administrator/themes/img/select2x2.png" failed (2: No such file or directory), client: 82.253.89.138, server: thirtybees-116193-454588.cloudwaysapps.com, request: "GET /administrator/themes/img/select2x2.png HTTP/1.1", host: "thirtybees-116193-454588.cloudwaysapps.com", referrer: "http://thirtybees-116193-454588.cloudwaysapps.com/administrator/themes/default/css/admin-theme.css" 2018/03/12 16:59:57 [error] 29530#29530: *5281 open() "/home/116193.cloudwaysapps.com/ptbdceufjv/public_html/favicon.ico" failed (2: No such file or directory), client: 82.253.89.138, server: thirtybees-116193-454588.cloudwaysapps.com, request: "GET /favicon.ico HTTP/1.1", host: "thirtybees-116193-454588.cloudwaysapps.com", referrer: "http://thirtybees-116193-454588.cloudwaysapps.com/administrator/index.php?controller=AdminProfiles&id_profile=4&conf=4&token=55de7b455aa2153a87016c1f9dbfbbcc"

Link to comment
Share on other sites

  • 0

This is what it says : ```

ThirtyBeesException

Syntax error in template "/home/116193.cloudwaysapps.com/ptbdceufjv/publichtml/themes/warehouse/modules/blockcurrencies/blockcurrencies.tpl" on line 41 "{assign var="currencyname" value={l s='%s (%s)' sprintf=[$fcurrency.name, $fcurrency.iso_code}" - Unexpected "}", expected one of: "","" , "]"
at line 41 in file vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php
php 36. * 37. * @var bool 38. */ 39. public $suppressMergedTemplates = false; 40. 41. => /** 42. * compile tag objects 43. * 44. * @var array 45. */ 46. public static $_tag_objects = array();
- SmartyInternalTemplateCompilerBase->triggertemplateerror - [line 4435 - vendor/smarty/smarty/libs/sysplugins/smarty_internal_templateparser.php]
php 4430. { 4431. #line 78 "smarty_internal_templateparser.y" 4432. 4433. $this->internalError = true; 4434. $this->yymajor = $yymajor; 4435. => $this->compiler->trigger_template_error(); 4436. #line 3133 "smarty_internal_templateparser.php" 4437. } 4438. 4439. public function yy_accept() 4440. {
- SmartyInternalTemplateparser->yysyntaxerror - [line 4501 - vendor/smarty/smarty/libs/sysplugins/smarty_internal_templateparser.php]
- [2 Arguments]
php 4496. fprintf($this->yyTraceFILE, "%sSyntax Error!\n", 4497. $this->yyTracePrompt); 4498. } 4499. if (self::YYERRORSYMBOL) { 4500. if ($this->yyerrcnt < 0) { 4501. => $this->yy_syntax_error($yymajor, $yytokenvalue); 4502. } 4503. $yymx = $this->yystack[$this->yyidx]->major; 4504. if ($yymx == self::YYERRORSYMBOL || $yyerrorhit) { 4505. if ($this->yyTraceFILE) { 4506. fprintf($this->yyTraceFILE, "%sDiscard input token %s\n",
Argument [0] 3 Argument [1] }
- SmartyInternalTemplateparser->doParse - [line 118 - vendor/smarty/smarty/libs/sysplugins/smarty_internal_smartytemplatecompiler.php]
- [2 Arguments]
php 113. while ($this->lex->yylex() && !$this->abort_and_recompile) { 114. if ($this->smarty->_parserdebug) { 115. echo "<pre>Line {$this->lex->line} Parsing {$this->parser->yyTokenName[$this->lex->token]} Token " . 116. htmlentities($this->lex->value) . "</pre>"; 117. } 118. => $this->parser->doParse($this->lex->token, $this->lex->value); 119. } 120. 121. if ($this->abort_and_recompile) { 122. // exit here on abort 123. return false;
Argument [0] 3 Argument [1] }
- SmartyInternalSmartyTemplateCompiler->doCompile - [line 283 - vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php]
- [1 Arguments]
php 278. // run prefilter if required 279. if ((isset($this->smarty->autoload_filters['pre']) || isset($this->smarty->registered_filters['pre'])) && !$this->suppressFilter) { 280. $_content = Smarty_Internal_Filter_Handler::runFilter('pre', $_content, $template); 281. } 282. // call compiler 283. => $_compiled_code = $this->doCompile($_content); 284. } 285. } while ($this->abort_and_recompile); 286. if ($this->smarty->debugging) { 287. Smarty_Internal_Debug::end_compile($this->template); 288. }
```Argument [0]
{* * 2007-2014 PrestaShop * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License (AFL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/afl-3.0.php * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to license@prestashop.com so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to http://www.prestashop.com for more information. * * @author PrestaShop SA * @copyright 2007-2014 PrestaShop SA * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA *}

{if count($currencies) > 1}

            {l s=&#039;Currency&#039; mod=&#039;blockcurrencies&#039;}
            {foreach from=$currencies key=k item=f_currency}
                {if $cookie-&gt;id_currency == $f_currency.id_currency}{/if}
            {/foreach}


            {foreach from=$currencies key=k item=f_currency}
            {if strpos($f_currency.name, &#039;(&#039;|cat:$f_currency.iso_code:&#039;)&#039;) === false}
                    {assign var=&quot;currency_name&quot; value={l s=&#039;%s (%s)&#039; sprintf=[$f_currency.name, $f_currency.iso_code}
                {else}
                    {assign var=&quot;currency_name&quot; value=$f_currency.name}
                {/if}
                id_currency == $f_currency.id_currency}class=&quot;selected&quot;{/if}&gt;

                        {$f_currency.sign} - {$f_currency.iso_code}


            {/foreach}

{/if}

- **Smarty_Internal_TemplateCompilerBase->compileTemplate** - [line `197` - `vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php`] - [1 Arguments]php
192. touch($this->compiled->filepath); 193. } 194. } 195. // call compiler 196. try { 197. => $code = $this->compiler->compileTemplate($this); 198. } 199. catch (Exception $e) { 200. // restore old timestamp in case of error 201. if ($this->smarty->compilelocking && !$this->source->recompiled && $savedtimestamp) { 202. touch($this->compiled->filepath, $saved_timestamp); Argument [0]

- **Smarty_Internal_Template->compileTemplateSource** - [line `155` - `vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php`]php
150. obgetclean(); 151. throw $e; 152. } 153. } else { 154. if (!$template->compiled->exists || ($template->smarty->forcecompile && !$template->compiled->isCompiled)) { 155. => $template->compileTemplateSource(); 156. $code = filegetcontents($template->compiled->filepath); 157. eval("?>" . $code); 158. unset($code); 159. $template->compiled->loaded = true; 160. $template->compiled->isCompiled = true; - **Smarty_Internal_TemplateBase->fetch** - [line `424` - `classes/SmartyCustom.php`] - [7 Arguments]php
419. } else { 420. $count = 0; 421. $maxTries = 3; 422. while (true) { 423. try { 424. => $tpl = parent::fetch($template, $cacheId, $compileId, $parent, $display, $mergeTplVars, $noOutputFilter); 425. break; 426. } catch (SmartyException $e) { 427. // handle exception 428. if (++$count === $maxTries) { 429. throw $e; Argument [0]

Argument [1]

Argument [2]

Argument [3]

Argument [4]

Argument [5]
1 Argument [6]

- **Smarty_Custom_Template->fetch** - [line `2965` - `classes/module/Module.php`]php
2960.
2961. if ($cacheid !== null) { 2962. Tools::enableCache(); 2963. } 2964.
2965. => $result = $this->getCurrentSubTemplate($template, $cache
id, $compileid)->fetch(); 2966.
2967. if ($cache
id !== null) { 2968. Tools::restoreCacheSettings(); 2969. } 2970.
- **ModuleCore->display** - [line `74` - `modules/blockcurrencies/blockcurrencies.php`] - [2 Arguments]php
69. * @return string Content 70. */ 71. public function hookDisplayTop($params) 72. { 73. if ($this->_prepareHook($params)) 74. => return $this->display(FILE, 'blockcurrencies.tpl'); 75. } 76.
77. public function hookDisplayNav($params) 78. { 79. return $this->hookDisplayTop($params); Argument [0]
/home/116193.cloudwaysapps.com/ptbdceufjv/public_html/modules/blockcurrencies/blockcurrencies.php Argument [1]
blockcurrencies.tpl - **BlockCurrencies->hookDisplayTop** - [line `79` - `modules/blockcurrencies/blockcurrencies.php`] - [1 Arguments]php
74. return $this->display(FILE, 'blockcurrencies.tpl'); 75. } 76.
77. public function hookDisplayNav($params) 78. { 79. => return $this->hookDisplayTop($params); 80. } 81.
82. public function hookDisplayHeader($params) 83. { 84. if (Configuration::get('PS_CATALOG_MODE')) Argument [0]

- **BlockCurrencies->hookDisplayNav** - [line `771` - `classes/Hook.php`] - [1 Arguments]php
766. } 767. } 768.
769. // Immediately return the result if we do not log performances 770. if (!Module::$logmodulesperfs) { 771. => return $module->{$method}($params); 772. } 773.
774. // Store time and memory before and after hook call and save the result in the database 775. $timeStart = microtime(true); 776. $memoryStart = memory
get_usage(true); Argument [0]

- **HookCore::coreCallHook** - [line `487` - `classes/Hook.php`] - [3 Arguments]php
482. Tools::waitUntilFileIsModified($moduleInstance->pushfilename, $moduleInstance->pushtime_limit); 483. } 484.
485. // Call hook method 486. if ($hookCallable) { 487. => $display = Hook::coreCallHook($moduleInstance, 'hook'.$hookName, $hookArgs); 488. } elseif ($hookRetroCallable) { 489. $display = Hook::coreCallHook($moduleInstance, 'hook'.$retroHookName, $hookArgs); 490. } 491.
492. // Live edit Argument [0]

Argument [1]
hookdisplayNav Argument [2]

- **HookCore::execWithoutCache** - [line `280` - `classes/Hook.php`] - [7 Arguments]php
275. $checkExceptions = true, 276. $usePush = false, 277. $idShop = null 278. ) { 279. if (!Configuration::get('TBPAGECACHEENABLED')) { 280. => return static::execWithoutCache($hookName, $hookArgs, $idModule, $arrayReturn, $checkExceptions, $usePush, $idShop); 281. } 282.
283. $activehooks = json
decode(Configuration::get('TBPAGECACHE_HOOKS'), true); 284.
285. $found = false; Argument [0]
displayNav Argument [1]

Argument [2]

Argument [3]

Argument [4]
1 Argument [5]

Argument [6]

- **HookCore::exec** - [line `211` - `config/smarty.config.inc.php`] - [3 Arguments]php
206. return ''; 207. } 208. unset($hookparams['mod']); 209. } 210. unset($hookparams['h']); 211. => return Hook::exec($params['h'], $hookparams, $idmodule); 212. } 213. } 214.
215. function smartyCleanHtml($data) 216. { Argument [0]
displayNav Argument [1]

Argument [2]

- **smartyHook** - [line `274` - `config/smarty.config.inc.php`] - [2 Arguments]php
269. } else { 270. $args[] = &$arguments[$a]; 271. } 272. } 273.
274. => return calluserfunc_array($item, $args); 275. } 276. } 277.
278. public static function getInstance() 279. { Argument [0]
Array ( [h] => displayNav )

Argument [1]

- **SmartyLazyRegister->__call** - [line `234` - `cache/smarty/compile/01/23/f6/0123f68aa74b5ce24ad2e842be36d0dbb1dcbcff.file.header.tpl.php`] - [2 Arguments]php
229. tpl_vars['warehouse_vars']->value['top_width'])&&$_smarty_tpl->tpl_vars['warehouse_vars']->value['top_width']==1&&$_smarty_tpl->tpl_vars['warehouse_vars']->value['top_bar']) {?> 230.

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