Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/run/mysqld/mysql.sock' (2) in /sites/ruza-mebel.ru/public_html/api/Database.php on line 47 Warning: Could not connect to the database. Check the config file. in /sites/ruza-mebel.ru/public_html/api/Database.php on line 49 Warning: Could not execute query to database, wrong database link. [SELECT name, value FROM s_settings] in /sites/ruza-mebel.ru/public_html/api/Database.php on line 99 Warning: mysql_error() expects parameter 1 to be resource, boolean given in /sites/ruza-mebel.ru/public_html/api/Database.php on line 150 Warning: in /sites/ruza-mebel.ru/public_html/api/Database.php on line 150 Warning: Invalid argument supplied for foreach() in /sites/ruza-mebel.ru/public_html/api/Settings.php on line 28 Warning: Could not execute query to database, wrong database link. [SELECT id, name, sign, code, rate_from, rate_to, cents, position, enabled FROM s_currencies ORDER BY position] in /sites/ruza-mebel.ru/public_html/api/Database.php on line 99 Warning: mysql_error() expects parameter 1 to be resource, boolean given in /sites/ruza-mebel.ru/public_html/api/Database.php on line 150 Warning: in /sites/ruza-mebel.ru/public_html/api/Database.php on line 150 Warning: Invalid argument supplied for foreach() in /sites/ruza-mebel.ru/public_html/api/Money.php on line 44 Warning: Could not execute query to database, wrong database link. [SELECT id, url, header, name, meta_title, meta_description, meta_keywords, body, menu_id, position, visible FROM s_pages WHERE url='portfolio' LIMIT 1] in /sites/ruza-mebel.ru/public_html/api/Database.php on line 99 Warning: Could not execute query to database, wrong database link. [SELECT c.id, c.parent_id, c.name, c.h1, c.description, c.url, c.meta_title, c.meta_keywords, c.meta_description, c.image, c.visible, c.position, c.product_title, c.buy_text FROM s_categories c ORDER BY c.parent_id, c.position] in /sites/ruza-mebel.ru/public_html/api/Database.php on line 99 Warning: mysql_error() expects parameter 1 to be resource, boolean given in /sites/ruza-mebel.ru/public_html/api/Database.php on line 150 Warning: in /sites/ruza-mebel.ru/public_html/api/Database.php on line 150 Warning: Could not execute query to database, wrong database link. [SELECT * FROM s_categories WHERE visible=1 ORDER BY position] in /sites/ruza-mebel.ru/public_html/api/Database.php on line 99 Warning: mysql_error() expects parameter 1 to be resource, boolean given in /sites/ruza-mebel.ru/public_html/api/Database.php on line 150 Warning: in /sites/ruza-mebel.ru/public_html/api/Database.php on line 150 Warning: Invalid argument supplied for foreach() in /sites/ruza-mebel.ru/public_html/api/Categories.php on line 64 Notice: Undefined variable: categories in /sites/ruza-mebel.ru/public_html/api/Categories.php on line 74 Warning: Invalid argument supplied for foreach() in /sites/ruza-mebel.ru/public_html/api/Categories.php on line 74 Notice: Undefined variable: categories in /sites/ruza-mebel.ru/public_html/api/Categories.php on line 79 Warning: Invalid argument supplied for foreach() in /sites/ruza-mebel.ru/public_html/api/Categories.php on line 79 Notice: Undefined variable: categories_menu in /sites/ruza-mebel.ru/public_html/api/Categories.php on line 84 Warning: Could not execute query to database, wrong database link. [SELECT id, url, header, name, meta_title, meta_description, meta_keywords, body, menu_id, position, visible FROM s_pages WHERE 1 AND visible = 1 ORDER BY position] in /sites/ruza-mebel.ru/public_html/api/Database.php on line 99 Warning: mysql_error() expects parameter 1 to be resource, boolean given in /sites/ruza-mebel.ru/public_html/api/Database.php on line 150 Warning: in /sites/ruza-mebel.ru/public_html/api/Database.php on line 150 Warning: Invalid argument supplied for foreach() in /sites/ruza-mebel.ru/public_html/api/Pages.php on line 60 Warning: Could not execute query to database, wrong database link. [SELECT url FROM s_categories WHERE visible=1 ORDER BY position] in /sites/ruza-mebel.ru/public_html/api/Database.php on line 99 Warning: mysql_error() expects parameter 1 to be resource, boolean given in /sites/ruza-mebel.ru/public_html/api/Database.php on line 150 Warning: in /sites/ruza-mebel.ru/public_html/api/Database.php on line 150 Warning: Invalid argument supplied for foreach() in /sites/ruza-mebel.ru/public_html/view/IndexView.php on line 61 Fatal error: Uncaught exception 'SmartyException' with message 'Unable to load template file 'portfolio.tpl'' in /sites/ruza-mebel.ru/public_html/Smarty/libs/sysplugins/smarty_internal_template.php:163 Stack trace: #0 /sites/ruza-mebel.ru/public_html/Smarty/libs/sysplugins/smarty_internal_template.php(550): Smarty_Internal_Template->isExisting(true) #1 /sites/ruza-mebel.ru/public_html/Smarty/libs/Smarty.class.php(338): Smarty_Internal_Template->getRenderedTemplate() #2 /sites/ruza-mebel.ru/public_html/api/Design.php(64): Smarty->fetch('portfolio.tpl') #3 /sites/ruza-mebel.ru/public_html/view/PortfolioView.php(32): Design->fetch('portfolio.tpl') #4 /sites/ruza-mebel.ru/public_html/view/IndexView.php(94): PortfolioView->fetch() #5 /sites/ruza-mebel.ru/public_html/index.php(38): IndexView->fetch() #6 {main} thrown in /sites/ruza-mebel.ru/public_html/Smarty/libs/sysplugins/smarty_internal_template.php on line 163