Dispatcher::createUrl() miss required parameter "rewrite" for route "module-leoblog-blog"
at line 915 in file classes/Dispatcher.php
910. if (!$data['required']) {
911. continue;
912. }
913.
914. if (!array_key_exists($key, $params)) {
915. throw new PrestaShopException('Dispatcher::createUrl() miss required parameter "' .
916. $key . '" for route "' . $route_id . '"');
917. }
918. if (isset($this->default_routes[$route_id])) {
919. $query_params[$this->default_routes[$route_id]['keywords'][$key]['param']] = $params[$key];
920. }
1086.
1087. if ($controller === 'cart' && (!empty($request['add']) || !empty($request['delete'])) && Configuration::get('PS_TOKEN_ENABLE')) {
1088. $request['token'] = Tools::getToken(false);
1089. }
1090.
1091. $uriPath = Dispatcher::getInstance()->createUrl($controller, $idLang, $request, false, '', $idShop);
1092.
1093. return $this->getBaseLink($idShop, $ssl, $relativeProtocol) . $this->getLangLink($idLang, null, $idShop) . ltrim($uriPath, '/');
1094. }
1095.
1096. /**
Argument [0] module-leoblog-blog Argument [1] 1 Argument [2] Array ( [id] => 24 ) Argument [3] Argument [4] Argument [5] 1
678. $params['module'] = $module;
679. $params['controller'] = $controller ? $controller : 'default';
680.
681. // If the module has its own route ... just use it !
682. if (Dispatcher::getInstance()->hasRoute('module-' . $module . '-' . $controller, $idLang, $idShop)) {
683. return $this->getPageLink('module-' . $module . '-' . $controller, $ssl, $idLang, $params);
684. } else {
685. return $url . Dispatcher::getInstance()->createUrl('module', $idLang, $params, $this->allow, '', $idShop);
686. }
687. }
688.
Argument [0] module-leoblog-blog Argument [1] Argument [2] 1 Argument [3] Array ( [id] => 24 )
1157. } elseif (isset($params['fc']) && $params['fc'] == 'module') {
1158. $module = Validate::isModuleName(Tools::getValue('module')) ? Tools::getValue('module') : '';
1159. if (!empty($module)) {
1160. unset($params['fc'], $params['module']);
1161.
1162. return $this->getModuleLink($module, $controller, $params, null, (int) $idLang);
1163. }
1164. }
1165.
1166. return $this->getPageLink($controller, null, $idLang, $params);
1167. }
Argument [0] leoblog Argument [1] blog Argument [2] Array ( [id] => 24 [module] => leoblog [controller] => blog ) Argument [3] Argument [4] 1
1979. // No need to display alternative lang if there is only one enabled
1980. return $alternativeLangs;
1981. }
1982.
1983. foreach ($languages as $lang) {
1984. $alternativeLangs[$lang['language_code']] = $this->context->link->getLanguageLink($lang['id_lang']);
1985. }
1986.
1987. return $alternativeLangs;
1988. }
1989. }
Argument [0] 1
1505. }
1506. $pages['register'] = $this->context->link->getPageLink('authentication', true, null, array('create_account' => '1'));
1507. $pages['order_login'] = $this->context->link->getPageLink('order', true, null, array('login' => '1'));
1508. $urls['pages'] = $pages;
1509.
1510. $urls['alternative_langs'] = $this->getAlternativeLangsUrl();
1511.
1512. $urls['theme_assets'] = __PS_BASE_URI__ . 'themes/' . $this->context->shop->theme->getName() . '/assets/';
1513.
1514. $urls['actions'] = array(
1515. 'logout' => $this->context->link->getPageLink('index', true, null, 'mylogout'),
490. 'currency' => $this->getTemplateVarCurrency(),
491. 'customer' => $this->getTemplateVarCustomer(),
492. 'language' => $this->objectPresenter->present($this->context->language),
493. 'page' => $this->getTemplateVarPage(),
494. 'shop' => $this->getTemplateVarShop(),
495. 'urls' => $this->getTemplateVarUrls(),
496. 'configuration' => $this->getTemplateVarConfiguration(),
497. 'field_required' => $this->context->customer->validateFieldsRequiredDatabase(),
498. 'breadcrumb' => $this->getBreadcrumb(),
499. 'link' => $this->context->link,
500. 'time' => time(),
542. /**
543. * Initializes common front page content: header, footer and side columns.
544. */
545. public function initContent()
546. {
547. $this->assignGeneralPurposeVariables();
548. $this->process();
549.
550. if (!isset($this->context->cart)) {
551. $this->context->cart = new Cart();
552. }
72. ));
73. if ($this->context->cart->getOrderTotal(false, Cart::ONLY_PRODUCTS) < $minimalPurchase) {
74. Tools::redirect('index.php?controller=order&step=1');
75. }
76. }
77. parent::initContent();
78. }
79.
80. /**
81. * Non-static translation method for frontoffice modules.
82. *
132. $config = LeoBlogConfig::getInstance();
133.
134. /* Load Css and JS File */
135. LeoBlogHelper::loadMedia($this->context, $this);
136.
137. parent::initContent();
138.
139. if (Tools::isSubmit('submitcomment')) {
140. # validate module
141. $this->comment();
142. }
276. if (!$this->content_only && ($this->display_header || (isset($this->className) && $this->className))) {
277. $this->initHeader();
278. }
279.
280. if ($this->viewAccess()) {
281. $this->initContent();
282. } else {
283. $this->errors[] = $this->trans('Access denied.', array(), 'Admin.Notifications.Error');
284. }
285.
286. if (!$this->content_only && ($this->display_footer || (isset($this->className) && $this->className))) {
504. if (isset($params_hook_action_dispatcher)) {
505. Hook::exec('actionDispatcher', $params_hook_action_dispatcher);
506. }
507.
508. // Running controller
509. $controller->run();
510.
511. // Execute hook dispatcher after
512. if (isset($params_hook_action_dispatcher)) {
513. Hook::exec('actionDispatcherAfter', $params_hook_action_dispatcher);
514. }
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();