| ( ! ) Deprecated: AppKernel implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in /var/www/liveshops/presta-server/app/AppKernel.php on line 32 | ||||
|---|---|---|---|---|
| Call Stack | ||||
| # | Time | Memory | Function | Location |
| 1 | 0.0006 | 355968 | {main}( ) | .../index.php:0 |
| 2 | 0.0013 | 358384 | require( '/var/www/liveshops/presta-server/config/config.inc.php ) | .../index.php:37 |
| 3 | 0.0027 | 364232 | require_once( '/var/www/liveshops/presta-server/config/autoload.php ) | .../config.inc.php:36 |
| 4 | 0.0134 | 383608 | Composer\Autoload\ClassLoader->loadClass( $class = 'AppKernel' ) | .../autoload.php:28 |
| 5 | 0.0134 | 383608 | Composer\Autoload\includeFile( $file = '/var/www/liveshops/presta-server/vendor/composer/../../app/AppKernel.php' ) | .../ClassLoader.php:322 |
| 6 | 0.0135 | 383888 | include( '/var/www/liveshops/presta-server/app/AppKernel.php ) | .../ClassLoader.php:444 |
| ( ! ) Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /var/www/liveshops/presta-server/config/bootstrap.php on line 89 | ||||
|---|---|---|---|---|
| Call Stack | ||||
| # | Time | Memory | Function | Location |
| 1 | 0.0006 | 355968 | {main}( ) | .../index.php:0 |
| 2 | 0.0013 | 358384 | require( '/var/www/liveshops/presta-server/config/config.inc.php ) | .../index.php:37 |
| 3 | 0.0160 | 384848 | require_once( '/var/www/liveshops/presta-server/config/bootstrap.php ) | .../config.inc.php:57 |
| 4 | 0.0169 | 388664 | array_walk( $array = ['database_host' => 'liveshops.firus.pl.mysql.dhosting.pl', 'database_port' => '', 'database_name' => 'je3ief_liveshop', 'database_user' => 'xang9j_liveshop', 'database_password' => 'geh0aishaeR4', 'database_prefix' => 'ps_', 'database_engine' => 'InnoDB', 'mailer_transport' => 'smtp', 'mailer_host' => '127.0.0.1', 'mailer_user' => NULL, 'mailer_password' => NULL, 'secret' => 'fjDLLDJAjOeZkEUdBKTsBaSPCHrsxNwziWg7MJZ6API6FbVZvkvAnodD', 'ps_caching' => 'CacheMemcache', 'ps_cache_enable' => FALSE, 'ps_creation_date' => '2020-05-07', 'locale' => 'pl-PL', 'use_debug_toolbar' => TRUE, 'cookie_key' => 'tj2EOSWi0gXQHYNQYtnn8DXi0AEZ1EYj946KXXaaQQ3dOhw6yiLe9qOw', 'cookie_iv' => 'VYBCWcvm', 'new_cookie_key' => 'def000006d8b959a2455ead3e62db1bae77463d8e91b08765085256b2792e04c8c9ce6be96ca2694fb9fe5eb8bdb9e604b35df2e5d8761b75a67a18818a7ff93e5d0ea8a'], $callback = class Closure { public $name = '{closure:/var/www/liveshops/presta-server/config/bootstrap.php:88}'; public $file = '/var/www/liveshops/presta-server/config/bootstrap.php'; public $line = 88; public $parameter = ['&$param' => '<required>'] } ) | .../bootstrap.php:88 |
| 5 | 0.0170 | 390392 | {closure:/var/www/liveshops/presta-server/config/bootstrap.php:88-90}( $param = NULL, 'mailer_user' ) | .../bootstrap.php:88 |
| 6 | 0.0170 | 390488 | str_replace( $search = '%%', $replace = '%', $subject = NULL ) | .../bootstrap.php:89 |
| ( ! ) Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /var/www/liveshops/presta-server/config/bootstrap.php on line 89 | ||||
|---|---|---|---|---|
| Call Stack | ||||
| # | Time | Memory | Function | Location |
| 1 | 0.0006 | 355968 | {main}( ) | .../index.php:0 |
| 2 | 0.0013 | 358384 | require( '/var/www/liveshops/presta-server/config/config.inc.php ) | .../index.php:37 |
| 3 | 0.0160 | 384848 | require_once( '/var/www/liveshops/presta-server/config/bootstrap.php ) | .../config.inc.php:57 |
| 4 | 0.0169 | 388664 | array_walk( $array = ['database_host' => 'liveshops.firus.pl.mysql.dhosting.pl', 'database_port' => '', 'database_name' => 'je3ief_liveshop', 'database_user' => 'xang9j_liveshop', 'database_password' => 'geh0aishaeR4', 'database_prefix' => 'ps_', 'database_engine' => 'InnoDB', 'mailer_transport' => 'smtp', 'mailer_host' => '127.0.0.1', 'mailer_user' => '', 'mailer_password' => NULL, 'secret' => 'fjDLLDJAjOeZkEUdBKTsBaSPCHrsxNwziWg7MJZ6API6FbVZvkvAnodD', 'ps_caching' => 'CacheMemcache', 'ps_cache_enable' => FALSE, 'ps_creation_date' => '2020-05-07', 'locale' => 'pl-PL', 'use_debug_toolbar' => TRUE, 'cookie_key' => 'tj2EOSWi0gXQHYNQYtnn8DXi0AEZ1EYj946KXXaaQQ3dOhw6yiLe9qOw', 'cookie_iv' => 'VYBCWcvm', 'new_cookie_key' => 'def000006d8b959a2455ead3e62db1bae77463d8e91b08765085256b2792e04c8c9ce6be96ca2694fb9fe5eb8bdb9e604b35df2e5d8761b75a67a18818a7ff93e5d0ea8a'], $callback = class Closure { public $name = '{closure:/var/www/liveshops/presta-server/config/bootstrap.php:88}'; public $file = '/var/www/liveshops/presta-server/config/bootstrap.php'; public $line = 88; public $parameter = ['&$param' => '<required>'] } ) | .../bootstrap.php:88 |
| 5 | 0.0174 | 390664 | {closure:/var/www/liveshops/presta-server/config/bootstrap.php:88-90}( $param = NULL, 'mailer_password' ) | .../bootstrap.php:88 |
| 6 | 0.0174 | 390760 | str_replace( $search = '%%', $replace = '%', $subject = NULL ) | .../bootstrap.php:89 |
| ( ! ) Warning: Cannot modify header information - headers already sent by (output started at /var/www/liveshops/presta-server/config/bootstrap.php:89) in /var/www/liveshops/presta-server/classes/exception/PrestaShopException.php on line 41 | ||||
|---|---|---|---|---|
| Call Stack | ||||
| # | Time | Memory | Function | Location |
| 1 | 0.0006 | 355968 | {main}( ) | .../index.php:0 |
| 2 | 0.0013 | 358384 | require( '/var/www/liveshops/presta-server/config/config.inc.php ) | .../index.php:37 |
| 3 | 5.2750 | 491424 | PrestaShopExceptionCore->displayMessage( ) | .../config.inc.php:121 |
| 4 | 5.2751 | 491424 | header( $header = 'HTTP/1.1 500 Internal Server Error' ) | .../PrestaShopException.php:41 |
Link to database cannot be established: SQLSTATE[HY000] [2002] Connection timed out
at line 127 in file classes/db/DbPDO.php
122. public function connect()
123. {
124. try {
125. $this->link = $this->getPDO($this->server, $this->user, $this->password, $this->database, 5);
126. } catch (PDOException $e) {
127. throw new PrestaShopException('Link to database cannot be established: ' . $e->getMessage());
128. }
129.
130. $this->link->exec('SET SESSION sql_mode = \'\'');
131.
132. return $this->link;
325. if (!defined('_PS_DEBUG_SQL_')) {
326. define('_PS_DEBUG_SQL_', false);
327. }
328.
329. if ($connect) {
330. $this->connect();
331. }
332. }
333.
334. /**
335. * Disable the use of the cache.
232. $id_server = ($total_servers > 2 && ($id % $total_servers) != 0) ? $id % $total_servers : 1;
233. }
234.
235. if (!isset(self::$instance[$id_server])) {
236. $class = Db::getClass();
237. self::$instance[$id_server] = new $class(
238. self::$_servers[$id_server]['server'],
239. self::$_servers[$id_server]['user'],
240. self::$_servers[$id_server]['password'],
241. self::$_servers[$id_server]['database']
242. );
42. * @param bool $htmlOK Does data contain HTML code ? (optional)
43. * @return string Sanitized data
44. */
45. function pSQL($string, $htmlOK = false)
46. {
47. return Db::getInstance()->escape($string, $htmlOK);
48. }
49.
50. function bqSQL($string)
51. {
52. return str_replace('`', '\`', pSQL($string));
335. $request_uri = rawurldecode($_SERVER['REQUEST_URI']);
336.
337. $sql = 'SELECT s.id_shop, CONCAT(su.physical_uri, su.virtual_uri) AS uri, su.domain, su.main
338. FROM ' . _DB_PREFIX_ . 'shop_url su
339. LEFT JOIN ' . _DB_PREFIX_ . 'shop s ON (s.id_shop = su.id_shop)
340. WHERE (su.domain = \'' . pSQL($host) . '\' OR su.domain_ssl = \'' . pSQL($host) . '\')
341. AND s.active = 1
342. AND s.deleted = 0
343. ORDER BY LENGTH(CONCAT(su.physical_uri, su.virtual_uri)) DESC';
344.
345. $result = Db::getInstance()->executeS($sql);
114.
115. $context = Context::getContext();
116.
117. /* Initialize the current Shop */
118. try {
119. $context->shop = Shop::initialize();
120. } catch (PrestaShopException $e) {
121. $e->displayMessage();
122. }
123. define('_THEME_NAME_', $context->shop->theme->getName());
124. define('_PARENT_THEME_NAME_', $context->shop->theme->get('parent') ?: '');
32. return print_r($mixed, $return);
33. }
34. return '';
35. }
36.
37. require dirname(__FILE__).'/config/config.inc.php';
38. Dispatcher::getInstance()->dispatch();
Argument [0] /var/www/liveshops/presta-server/config/config.inc.php