Fatal error
at line 1175 in file classes/Tools.php
1170. ->getTranslator()
1171. ->trans('Fatal error', [], 'Admin.Notifications.Error');
1172. }
1173.
1174. if (_PS_MODE_DEV_) {
1175. throw new PrestaShopException($errorMessage);
1176. }
1177.
1178. return $errorMessage;
1179. }
1180.
3145. if ($divisor !== null) {
3146. Tools::displayParameterAsDeprecated('divisor');
3147. }
3148.
3149. if (!Validate::isBool($usetax) || !Validate::isUnsignedId($id_product)) {
3150. die(Tools::displayError());
3151. }
3152.
3153. // Initializations
3154. $id_group = null;
3155. if ($id_customer) {
487.
488. // Tax
489. $tax = (float) $this->product->getTaxesRate(new Address((int) $this->context->cart->{Configuration::get('PS_TAX_ADDRESS_TYPE')}));
490. $this->context->smarty->assign('tax_rate', $tax);
491.
492. $product_price_with_tax = Product::getPriceStatic($this->product->id, true, null, 6);
493. if (Product::$_taxCalculationMethod == PS_TAX_INC) {
494. $product_price_with_tax = Tools::ps_round($product_price_with_tax, 2);
495. }
496.
497. $id_currency = (int) $this->context->cookie->id_currency;
Argument [0] Argument [1] 1 Argument [2] Argument [3] 6
292. }
293.
294. // Assign template vars related to the category + execute hooks related to the category
295. $this->assignCategory();
296. // Assign template vars related to the price and tax
297. $this->assignPriceAndTax();
298.
299. // Assign attributes combinations to the template
300. $this->assignAttributesCombinations();
301.
302. // Pack management
228. if (!$this->content_only && ($this->display_header || (isset($this->className) && $this->className))) {
229. $this->initHeader();
230. $this->profiler[] = $this->stamp('initHeader');
231. }
232.
233. $this->initContent();
234. $this->profiler[] = $this->stamp('initContent');
235.
236. if (!$this->content_only && ($this->display_footer || (isset($this->className) && $this->className))) {
237. $this->initFooter();
238. $this->profiler[] = $this->stamp('initFooter');
510. if (isset($params_hook_action_dispatcher)) {
511. Hook::exec('actionDispatcher', $params_hook_action_dispatcher);
512. }
513.
514. // Running controller
515. $controller->run();
516.
517. // Execute hook dispatcher after
518. if (isset($params_hook_action_dispatcher)) {
519. Hook::exec('actionDispatcherAfter', $params_hook_action_dispatcher);
520. }
23. * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
24. * International Registered Trademark & Property of PrestaShop SA
25. */
26.
27. require dirname(__FILE__).'/config/config.inc.php';
28. Dispatcher::getInstance()->dispatch();