INSERT command denied to user 'lavap1904021'@'91.216.107.145' for table `lavap1904021`.`ps_guest`<br /><br /><pre>INSERT INTO `ps_guest` (`id_operating_system`, `id_web_browser`, `id_customer`, `javascript`, `screen_resolution_x`, `screen_resolution_y`, `screen_color`, `sun_java`, `adobe_flash`, `adobe_director`, `apple_quicktime`, `real_player`, `windows_media`, `accept_language`, `mobile_theme`) VALUES ('0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '', '0')</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.
Argument [0] INSERT INTO `ps_guest` (`id_operating_system`, `id_web_browser`, `id_customer`, `javascript`, `screen_resolution_x`, `screen_resolution_y`, `screen_color`, `sun_java`, `adobe_flash`, `adobe_director`, `apple_quicktime`, `real_player`, `windows_media`, `accept_language`, `mobile_theme`) VALUES ('0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '', '0')
735. if ($sql instanceof DbQuery) {
736. $sql = $sql->build();
737. }
738.
739. $this->result = false;
740. $result = $this->query($sql);
741. if ($use_cache && $this->is_cache_enabled) {
742. Cache::getInstance()->deleteQuery($sql);
743. }
744.
745. if (_PS_DEBUG_SQL_) {
Argument [0] INSERT INTO `ps_guest` (`id_operating_system`, `id_web_browser`, `id_customer`, `javascript`, `screen_resolution_x`, `screen_resolution_y`, `screen_color`, `sun_java`, `adobe_flash`, `adobe_director`, `apple_quicktime`, `real_player`, `windows_media`, `accept_language`, `mobile_theme`) VALUES ('0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '', '0')
471. $sql = $insert_keyword . ' INTO `' . $table . '` (' . $keys_stringified . ') VALUES ' . implode(', ', $values_stringified);
472. if ($type == Db::ON_DUPLICATE_KEY) {
473. $sql .= ' ON DUPLICATE KEY UPDATE ' . substr($duplicate_key_stringified, 0, -1);
474. }
475.
476. return (bool) $this->q($sql, $use_cache);
477. }
478.
479. /**
480. * Executes an UPDATE query.
481. *
Argument [0] INSERT INTO `ps_guest` (`id_operating_system`, `id_web_browser`, `id_customer`, `javascript`, `screen_resolution_x`, `screen_resolution_y`, `screen_color`, `sun_java`, `adobe_flash`, `adobe_director`, `apple_quicktime`, `real_player`, `windows_media`, `accept_language`, `mobile_theme`) VALUES ('0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '', '0') Argument [1] 1
573.
574. // Database insertion
575. if (Shop::checkIdShopDefault($this->def['table'])) {
576. $this->id_shop_default = (in_array(Configuration::get('PS_SHOP_DEFAULT'), $id_shop_list) == true) ? Configuration::get('PS_SHOP_DEFAULT') : min($id_shop_list);
577. }
578. if (!$result = Db::getInstance()->insert($this->def['table'], $this->getFields(), $null_values)) {
579. return false;
580. }
581.
582. // Get object id in database
583. $this->id = Db::getInstance()->Insert_ID();
Argument [0] ps_guest Argument [1] Array ( [0] => Array ( [id_operating_system] => 0 [id_web_browser] => 0 [id_customer] => 0 [javascript] => 0 [screen_resolution_x] => 0 [screen_resolution_y] => 0 [screen_color] => 0 [sun_java] => 0 [adobe_flash] => 0 [adobe_director] => 0 [apple_quicktime] => 0 [real_player] => 0 [windows_media] => 0 [accept_language] => [mobile_theme] => 0 ) ) Argument [2]
530. *
531. * @throws PrestaShopException
532. */
533. public function save($null_values = false, $auto_date = true)
534. {
535. return (int) $this->id > 0 ? $this->update($null_values) : $this->add($auto_date, $null_values);
536. }
537.
538. /**
539. * Adds current object to the database.
540. *
Argument [0] 1 Argument [1]
246. */
247. public static function setNewGuest($cookie)
248. {
249. $guest = new Guest(isset($cookie->id_customer) ? Guest::getFromCustomer((int) ($cookie->id_customer)) : null);
250. $guest->userAgent();
251. $guest->save();
252. $cookie->id_guest = (int) ($guest->id);
253. }
254. }
72. }
73.
74. private function getScriptPlugins($params)
75. {
76. if (!isset($params['cookie']->id_guest)) {
77. Guest::setNewGuest($params['cookie']);
78.
79. if (Configuration::get('PS_STATSDATA_PLUGINS')) {
80. $this->context->controller->registerJavascript('modules-plugindetect', 'modules/'.$this->name.'/js/plugindetect.js', array('position' => 'bottom', 'priority' => 150));
81.
82. $token = sha1($params['cookie']->id_guest._COOKIE_KEY_);
Argument [0] Cookie Object ( [_content:protected] => Array ( [date_add] => 2024-03-29 12:23:38 [id_lang] => 1 [id_currency] => 1 [an_id_guest] => 11147130 [last_visited_category] => 116 ) [_name:protected] => PrestaShop-b8034949f68d5a8bf266f67f8d432419 [_expire:protected] => 1727263418 [_domain:protected] => la-vapetourangelle.fr [_sameSite:protected] => Lax [_path:protected] => / [cipherTool:protected] => PhpEncryption Object ( ) [_modified:protected] => 1 [_allow_writing:protected] => 1 [_salt:protected] => yibWyKO7 [_standalone:protected] => [_secure:protected] => 1 )
63. return $html;
64. }
65.
66. public function hookDisplayBeforeBodyClosingTag($params)
67. {
68. $script_content_plugins = $this->getScriptPlugins($params);
69. $script_content_pages_views = $this->getScriptCustomerPagesViews($params);
70.
71. return $script_content_plugins . $script_content_pages_views;
72. }
73.
Argument [0]
(1/1) OutOfMemoryException
in PrestaShopException.php line 193