You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'LIMIT 1' at line 1<br /><br /><pre>SELECT image_url FROM ps_stelle WHERE id_customer = LIMIT 1</pre>
at line 769 in file classes/db/Db.php
764. if ($webservice_call && $errno) {
765. $dbg = debug_backtrace();
766. WebserviceRequest::getInstance()->setError(500, '[SQL Error] ' . $this->getMsgError() . '. From ' . (isset($dbg[3]['class']) ? $dbg[3]['class'] : '') . '->' . $dbg[3]['function'] . '() Query was : ' . $sql, 97);
767. } elseif (_PS_DEBUG_SQL_ && $errno && !defined('PS_INSTALLATION_IN_PROGRESS')) {
768. if ($sql) {
769. throw new PrestaShopDatabaseException($this->getMsgError() . '<br /><br /><pre>' . $sql . '</pre>');
770. }
771.
772. throw new PrestaShopDatabaseException($this->getMsgError());
773. }
774. }
380. $this->result = $this->_query($sql);
381. }
382. }
383.
384. if (_PS_DEBUG_SQL_) {
385. $this->displayError($sql);
386. }
387.
388. return $this->result;
389. }
390.
81. if (isset($context->link) && !empty($context->link) && Module::getInstanceByName('hideproduct')) {
82. include_once(_PS_MODULE_DIR_.'hideproduct/classes/HideproductConfiguration.php');
83. $hideproduct = new HideproductConfiguration();
84. $sql = $hideproduct->returnSQLModified($sql);
85. }
86. return parent::query($sql);
87. }
88. /*
89. * module: hideproduct
90. * date: 2022-08-23 17:08:45
91. * version: 1.1.4
658.
659. return $result;
660. }
661. }
662.
663. $this->result = $this->query($sql);
664. if (!$this->result) {
665. $result = false;
666. } else {
667. $result = $this->nextRow($this->result);
668. }
692. {
693. if ($sql instanceof DbQuery) {
694. $sql = $sql->build();
695. }
696.
697. if (!$result = $this->getRow($sql, $use_cache)) {
698. return false;
699. }
700.
701. return array_shift($result);
702. }
1982. }
1983. if ($category_settings['product_button_new_line'] || $is_mobile || (!$category_settings['addtocart_button'] && !$category_settings['details_button'])) {
1984. $body_classes[] = 'pg-bnl';
1985. }
1986.
1987. $url_image = Db::getInstance()->getValue('SELECT image_url FROM '._DB_PREFIX_.'stelle WHERE id_customer = '.$context->customer->id);
1988.
1989. return array(
1990. 'progress_bar' => $general_settings['progress_bar'],
1991. 'boxed_layout' => ($general_settings['layout'] == 'boxed'),
1992. 'lazy_loading' => ($general_settings['lazy_loading'] && !$context->controller->ajax && !$content_only),
1002. return $output;
1003. }
1004.
1005. public static function coreCallHook($module, $method, $params)
1006. {
1007. return $module->{$method}($params);
1008. }
1009.
1010. public static function coreRenderWidget($module, $hook_name, $params)
1011. {
1012. $context = Context::getContext();
426. // Since is_callable() will always return true when __call() is available,
427. // if the module was expecting an aliased hook name to be invoked, but we send
428. // the canonical hook name instead, the hook will never be acknowledged by the module.
429. $methodName = static::getMethodName($hookName);
430. if (is_callable([$module, $methodName])) {
431. return static::coreCallHook($module, $methodName, $hookArgs);
432. }
433.
434. // fall back to all other names
435. foreach (static::getAllKnownNames($hookName) as $hook) {
436. $methodName = static::getMethodName($hook);
939.
940. if (0 !== $key && true === $chain) {
941. $hook_args = $output;
942. }
943.
944. $display = Hook::callHookOn($moduleInstance, $registeredHookName, $hook_args);
945.
946. if ($array_return) {
947. $output[$moduleInstance->name] = $display;
948. } else {
949. if (true === $chain) {
542. 'actionFrontControllerSetVariables',
543. [
544. 'templateVars' => &$templateVars,
545. ],
546. null,
547. true
548. );
549.
550. if (is_array($modulesVariables)) {
551. foreach ($modulesVariables as $moduleName => $variables) {
552. $templateVars['modules'][$moduleName] = $variables;
585. /**
586. * Initializes common front page content: header, footer and side columns.
587. */
588. public function initContent()
589. {
590. $this->assignGeneralPurposeVariables();
591. $this->process();
592.
593. if (!isset($this->context->cart)) {
594. $this->context->cart = new Cart();
595. }
37. public function initContent()
38. {
39. header('HTTP/1.1 404 Not Found');
40. header('Status: 404 Not Found');
41. $this->context->cookie->disallowWriting();
42. parent::initContent();
43. $this->setTemplate('errors/404');
44. }
45.
46. protected function canonicalRedirection($canonical_url = '')
47. {
301. if (!$this->content_only && ($this->display_header || (isset($this->className) && $this->className))) {
302. $this->initHeader();
303. }
304.
305. if ($this->viewAccess()) {
306. $this->initContent();
307. } else {
308. $this->errors[] = $this->trans('Access denied.', [], 'Admin.Notifications.Error');
309. }
310.
311. if (!$this->content_only && ($this->display_footer || (isset($this->className) && $this->className))) {
513. if (isset($params_hook_action_dispatcher)) {
514. Hook::exec('actionDispatcher', $params_hook_action_dispatcher);
515. }
516.
517. // Running controller
518. $controller->run();
519.
520. // Execute hook dispatcher after
521. if (isset($params_hook_action_dispatcher)) {
522. Hook::exec('actionDispatcherAfter', $params_hook_action_dispatcher);
523. }
23. * @copyright Since 2007 PrestaShop SA and Contributors
24. * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
25. */
26.
27. require dirname(__FILE__).'/config/config.inc.php';
28. Dispatcher::getInstance()->dispatch();