Po aktualizacji z wersji 1.6.0.9 do 1.6.0.11 niestety cos takiego:
Warning: tempnam() [function.tempnam]: open_basedir restriction in effect. File(/var/www/vhosts/dafi-water-heater.com/httpdocscache) is not within the allowed path(s): (/var/www/vhosts/dafi-water-heater.com/httpdocs:/tmp) in /var/www/vhosts/dafi-water-heater.com/httpdocs/classes/PrestaShopAutoload.php on line 151
386. $_SERVER['REMOTE_ADDR'] = '127.0.0.1';387. }388. }389. else390. {391. $shop = new Shop($id_shop);392. if (!Validate::isLoadedObject($shop) || !$shop->active)393. {394. // No shop found ... too bad, let's redirect to default shop395. $default_shop = new Shop(Configuration::get('PS_SHOP_DEFAULT'));396.
Question
swiety21
Po aktualizacji z wersji 1.6.0.9 do 1.6.0.11 niestety cos takiego:
Warning: tempnam() [function.tempnam]: open_basedir restriction in effect. File(/var/www/vhosts/dafi-water-heater.com/httpdocscache) is not within the allowed path(s): (/var/www/vhosts/dafi-water-heater.com/httpdocs:/tmp) in /var/www/vhosts/dafi-water-heater.com/httpdocs/classes/PrestaShopAutoload.php on line 151
Table 'dafi-water-heater.ps_shop' doesn't exist
at line 635 in file classes/db/Db.php629. WebserviceRequest::getInstance()->setError(500, '[SQL Error] '.$this->getMsgError().'. From '.(isset($dbg[3]['class']) ? $dbg[3]['class'] : '').'->'.$dbg[3]['function'].'() Query was : '.$sql, 97);630. }631. else if (_PS_DEBUG_SQL_ && $errno && !defined('PS_INSTALLATION_IN_PROGRESS'))632. {633. if ($sql)634. throw new PrestaShopDatabaseException($this->getMsgError().'<br /><br /><pre>'.$sql.'</pre>');635. throw new PrestaShopDatabaseException($this->getMsgError());636. }637. }638. 639. /**541. if ($use_cache && $this->is_cache_enabled && ($result = Cache::getInstance()->get(Tools::encryptIV($sql))) !== false)542. {543. $this->last_cached = true;544. return $result;545. }546. $this->result = $this->query($sql);547. if (!$this->result)548. $result = false;549. else550. $result = $this->nextRow($this->result);551. $this->last_cached = false;211. }212. 213. // Get shop informations214. if (Shop::isTableAssociated($this->def['table']))215. $sql->leftJoin($this->def['table'].'_shop', 'c', 'a.'.$this->def['primary'].' = c.'.$this->def['primary'].' AND c.id_shop = '.(int)$this->id_shop);216. if ($object_datas = ObjectModel::$db->getRow($sql))217. {218. if (!$id_lang && isset($this->def['multilang']) && $this->def['multilang'])219. {220. $sql = 'SELECT * FROM `'.pSQL(_DB_PREFIX_.$this->def['table']).'_lang`221. WHERE `'.bqSQL($this->def['primary']).'` = '.(int)$id125. * @param int $id_lang126. * @param int $id_shop127. */128. public function __construct($id = null, $id_lang = null, $id_shop = null)129. {130. parent::__construct($id, $id_lang, $id_shop);131. if ($this->id)132. $this->setUrl();133. }134. 135. /**386. $_SERVER['REMOTE_ADDR'] = '127.0.0.1';387. }388. }389. else390. {391. $shop = new Shop($id_shop);392. if (!Validate::isLoadedObject($shop) || !$shop->active)393. {394. // No shop found ... too bad, let's redirect to default shop395. $default_shop = new Shop(Configuration::get('PS_SHOP_DEFAULT'));396.91. $context = Context::getContext();92. 93. /* Initialize the current Shop */94. try 95. {96. $context->shop = Shop::initialize();97. $context->theme = new Theme((int)$context->shop->id_theme);98. if ((Tools::isEmpty($theme_name = $context->shop->getTheme()) || !Validate::isLoadedObject($context->theme)) && !defined('_PS_ADMIN_DIR_'))99. throw new PrestaShopException(Tools::displayError('Current theme unselected. Please check your theme configuration.'));100. }101. catch (PrestaShopException $e)ma ktos moze jakis pomysl dla laika jak to rozwiazac. Bede wdzieczny
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now