19
February,
2026
Bela tabla je nepogrešljiva v vsaki sejni sobi, predavalnici in šoli. V ponudbi tudi samostoječe magnetne table in magneti za tablo v različnih ...
SQLSTATE[42000]: Syntax error or access violation: 1142 CREATE command denied to user 'zrrm02_birosi'@'localhost' for table `zrrm02_biroteka`.`ps_revolut_payment_orders`
at line 151 in file classes/db/DbPDO.php
146. protected function _query($sql)
147. {
148. try {
149. return $this->link->query($sql);
150. } catch (\PDOException $exception) {
151. throw new PrestaShopException($exception->getMessage(), (int) $exception->getCode(), $exception);
152. }
153. }
154.
155. /**
156. * Returns the next row from the result set.
372. {
373. if ($sql instanceof DbQuery) {
374. $sql = $sql->build();
375. }
376.
377. $this->result = $this->_query($sql);
378.
379. if (!$this->result && $this->getNumberError() == 2006) {
380. $this->connect();
381. $this->result = $this->_query($sql);
382. }
562. {
563. if ($sql instanceof DbQuery) {
564. $sql = $sql->build();
565. }
566.
567. $this->result = $this->query($sql);
568. if ($use_cache && $this->is_cache_enabled) {
569. Cache::getInstance()->deleteQuery($sql);
570. }
571.
572. return (bool) $this->result;
284. `public_id` VARCHAR(250) NOT NULL ,
285. `save_card` TINYINT NOT NULL DEFAULT "0" ,
286. PRIMARY KEY (`id`),
287. UNIQUE (`id_revolut_order`),
288. UNIQUE (`id_order`)
289. ) ENGINE = ' . _MYSQL_ENGINE_ . ';'
290. );
291.
292. $result &= Db::getInstance()->execute(
293. 'CREATE TABLE IF NOT EXISTS `' . _DB_PREFIX_ . 'revolut_cards` (
294. `id` INT NOT NULL AUTO_INCREMENT,
148. $this->checkoutDisplayName = $checkoutDisplayName;
149. $this->paymentDescription = $paymentDescription;
150. $this->prbSettingsHelper = new RevolutPRBSettingsHelper($this);
151.
152. // check required setups
153. $this->installDb();
154. }
155.
156. /**
157. * Install this module and register the following Hooks:
158. *
118. if (count($args) > 0) {
119. return $refl->newInstanceArgs($args);
120. } else {
121. // newInstanceArgs with empty array fails in PHP 5.3 when the class
122. // doesn't have an explicitly defined constructor
123. return $refl->newInstance();
124. }
125. }
126.
127. private function doMake($serviceName, array $alreadySeen = [])
128. {
148. } elseif (!is_string($constructor)) {
149. // user already provided the value, no need to construct it.
150. $service = $constructor;
151. } else {
152. // assume the $constructor is a class name
153. $service = $this->makeInstanceFromClassName($constructor, $alreadySeen);
154. }
155.
156. if ($binding['shared']) {
157. $this->instances[$serviceName] = $service;
158. }
161. }
162. }
163.
164. public function make($serviceName)
165. {
166. return $this->doMake($serviceName, []);
167. }
168. }
65. {
66. if (null === self::$service_container) {
67. throw new CoreException('Service container is not set.');
68. }
69.
70. return self::$service_container->make($serviceName);
71. }
72. }
1230. $r = static::$_INSTANCE[$module_name] = ServiceLocator::get($override);
1231. }
1232. }
1233.
1234. if (!$r && class_exists($module_name, false)) {
1235. $r = static::$_INSTANCE[$module_name] = ServiceLocator::get($module_name);
1236. }
1237.
1238. return $r;
1239. }
1240.
1209. if (!isset(static::$_INSTANCE[$module_name])) {
1210. if (!Tools::file_exists_no_cache(_PS_MODULE_DIR_ . $module_name . '/' . $module_name . '.php')) {
1211. return false;
1212. }
1213.
1214. return Module::coreLoadModule($module_name);
1215. }
1216.
1217. return static::$_INSTANCE[$module_name];
1218. }
1219.
970. continue;
971. }
972. }
973.
974. // We check if this module is valid
975. if (!($moduleInstance = Module::getInstanceByName($hookRegistration['module']))) {
976. continue;
977. }
978.
979. if ($isRegistryEnabled) {
980. $hookRegistry->hookedByModule($moduleInstance);
610. if (!isset($this->context->cart)) {
611. $this->context->cart = new Cart();
612. }
613.
614. $this->context->smarty->assign([
615. 'HOOK_HEADER' => Hook::exec('displayHeader'),
616. ]);
617. }
618.
619. public function initFooter()
620. {
74. ]);
75. if ($this->context->cart->getOrderTotal(false, Cart::ONLY_PRODUCTS) < $minimalPurchase) {
76. Tools::redirect('index.php?controller=order&step=1');
77. }
78. }
79. parent::initContent();
80. }
81.
82. /**
83. * Non-static translation method for frontoffice modules.
84. *
314. if (!$this->content_only && ($this->display_header || (isset($this->className) && $this->className))) {
315. $this->initHeader();
316. }
317.
318. if ($this->viewAccess()) {
319. $this->initContent();
320. } else {
321. $this->errors[] = $this->trans('Access denied.', [], 'Admin.Notifications.Error');
322. }
323.
324. if (!$this->content_only && ($this->display_footer || (isset($this->className) && $this->className))) {
505.
506. // Execute hook dispatcher
507. Hook::exec('actionDispatcher', $params_hook_action_dispatcher);
508.
509. // Running controller
510. $controller->run();
511.
512. // Execute hook dispatcher after
513. Hook::exec('actionDispatcherAfter', $params_hook_action_dispatcher);
514. } catch (PrestaShopException $e) {
515. $e->displayMessage();
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();
Najboljši sopotnik pri opremljanju pisarne in skladišč!
19
February,
2026
Bela tabla je nepogrešljiva v vsaki sejni sobi, predavalnici in šoli. V ponudbi tudi samostoječe magnetne table in magneti za tablo v različnih ...
04
December,
2025
Laserski tiskalnik Brother nudi hitro in varčno tiskanje. Multifunkcijske naprave in tiskalniki Brother zagotavljajo hitro delovanje in nizke ...
04
December,
2025
Uničevalec dokumentov in rezalnik dokumentov olajšata vsakodnevno delo, medtem ko kakovostna pisarniška oprema poskrbi za urejen in profesionalen ...
04
December,
2025
Pisarniški material izboljša učinkovitost dela, tiskalnik in plastifikator pa dopolnita vsakodnevne procese v pisarni in doma. Izberite kakovostne ...