mlokz Posted January 3, 2015 Share Posted January 3, 2015 Hello! I was just uploading some images into modules and all of sudden - WHITE BLANK PAGE, my shop is gone and all I can see is white blank page! So i went to this defines.inc file and made it true and white page now say this: Warning: tempnam(): open_basedir restriction in effect. File(/var/tmp) is not within the allowed path(s): (/data/www/18376/zeleny-kosik_cz) in /data/www/18376/zeleny-kosik_cz/www/classes/PrestaShopAutoload.php on line 151Warning: Unexpected character in input: '' (ASCII=30) state=0 in /data/www/18376/zeleny-kosik_cz/www/cache/smarty/compile/97/54/96/975496a5774d39529b3892f696c6ffd1c0801d5b.file.header.tpl.php on line 26Warning: Unexpected character in input: '' (ASCII=8) state=0 in /data/www/18376/zeleny-kosik_cz/www/cache/smarty/compile/97/54/96/975496a5774d39529b3892f696c6ffd1c0801d5b.file.header.tpl.php on line 26Parse error: syntax error, unexpected '54' (T_LNUMBER), expecting '(' in /data/www/18376/zeleny-kosik_cz/www/cache/smarty/compile/97/54/96/975496a5774d39529b3892f696c6ffd1c0801d5b.file.header.tpl.php on line 26 I have NO idea how to fix it. Anyone PLEASE? Link to comment Share on other sites More sharing options...
mlokz Posted January 3, 2015 Author Share Posted January 3, 2015 I found that wicked file and it contains this: <?php /* Smarty version Smarty-3.1.19, created on 2015-01-03 12:05:01 compiled from "/data/www/18376/zeleny-kosik_cz/www/themes/default-bootstrap/modules/homeslider/header.tpl" */ ?> <?php /*%%SmartyHeaderCode:59852285154a7ccdde95ee9-40829325%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed'); $_valid = $_smarty_tpl->decodeProperties(array ( 'file_dependency' => array ( '975496a5774d39529b3892f696c6ffd1c0801d5b' => array ( 0 => '/data/www/18376/zeleny-kosik_cz/www/themes/default-bootstrap/modules/homeslider/header.tpl', 1 => 1406810456, 2 => 'file', ), ), 'nocache_hash' => '59852285154a7ccdde95ee9-40829325', 'function' => array ( ), 'variables' => array ( 'homeslider' => 0, ), 'has_nocache_code' => false, 'version' => 'Smarty-3.1.19', 'unifunc' => 'content_¸ú754a7ccddec91c6_76379860', ),false); /*/%%SmartyHeaderCode%%*/?> <?php if ($_valid && !is_callable('content_¸ú754a7ccddec91c6_76379860')) {function content_¸ú754a7ccddec91c6_76379860($_smarty_tpl) {?><?php if (isset($_smarty_tpl->tpl_vars['homeslider']->value)) {?> <?php echo $_smarty_tpl->smarty->registered_plugins[smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('homeslider_loop'=>intval($_smarty_tpl->tpl_vars['homeslider']->value['loop'])),$_smarty_tpl);?> <?php echo $_smarty_tpl->smarty->registered_plugins[smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('homeslider_width'=>intval($_smarty_tpl->tpl_vars['homeslider']->value['width'])),$_smarty_tpl);?> <?php echo $_smarty_tpl->smarty->registered_plugins[smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('homeslider_speed'=>intval($_smarty_tpl->tpl_vars['homeslider']->value['speed'])),$_smarty_tpl);?> <?php echo $_smarty_tpl->smarty->registered_plugins[smarty::PLUGIN_FUNCTION]['addJsDef'][0][0]->addJsDef(array('homeslider_pause'=>intval($_smarty_tpl->tpl_vars['homeslider']->value['pause'])),$_smarty_tpl);?> <?php }?><?php [spam-filter] ?> Link to comment Share on other sites More sharing options...
mlokz Posted January 3, 2015 Author Share Posted January 3, 2015 When I try to log as admin, I get different error: Warning: tempnam(): open_basedir restriction in effect. File(/var/tmp) is not within the allowed path(s): (/data/www/18376/zeleny-kosik_cz) in /data/www/18376/zeleny-kosik_cz/www/classes/PrestaShopAutoload.php on line 151Warning: Unexpected character in input: '' (ASCII=30) state=0 in /data/www/18376/zeleny-kosik_cz/www/cache/smarty/compile/37/a1/24/37a1243c7e9050f21f995b254488ea598b9ded1b.file.login_addons.tpl.php on line 31Warning: Unexpected character in input: '' (ASCII=8) state=0 in /data/www/18376/zeleny-kosik_cz/www/cache/smarty/compile/37/a1/24/37a1243c7e9050f21f995b254488ea598b9ded1b.file.login_addons.tpl.php on line 31Parse error: syntax error, unexpected '54' (T_LNUMBER), expecting '(' in /data/www/18376/zeleny-kosik_cz/www/cache/smarty/compile/37/a1/24/37a1243c7e9050f21f995b254488ea598b9ded1b.file.login_addons.tpl.php on line 31 For the love of God, what should I do =( please help! Link to comment Share on other sites More sharing options...
vekia Posted January 4, 2015 Share Posted January 4, 2015 your php user (php process) hasn't got writable permissions to file mentioned in the error clear shop cache manually, and give 777 permissions to cache directory (recursive permissions to all files and directories there) Link to comment Share on other sites More sharing options...
mlokz Posted January 4, 2015 Author Share Posted January 4, 2015 Hmm... interesting. Should I give 777 permissions to every and all files online to prevent similiar stuff in future? Link to comment Share on other sites More sharing options...
vekia Posted January 4, 2015 Share Posted January 4, 2015 no, it's a case of hosting misconfiguration add these permissions only to directories / files where you see this error Link to comment Share on other sites More sharing options...
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