evilmc Posted June 8, 2012 Share Posted June 8, 2012 Hello, I upload my webshop to new hosting and new domain, and I set my old SQL database for my new domain, and get blank page for my webshop, but Admin part works! I use PrestaShop Version 1.3.6.0, how to fix this problem? http://hobbyshop.dvesmizle.rs/ Link to comment Share on other sites More sharing options...
Mike Kranzler Posted June 8, 2012 Share Posted June 8, 2012 Hi evilmc, Have you followed all the steps in our guide to moving PrestaShop, which you can find here? -Mike Link to comment Share on other sites More sharing options...
Kerm Posted June 8, 2012 Share Posted June 8, 2012 Clean cache and compile folders in tools/smarty Link to comment Share on other sites More sharing options...
evilmc Posted June 8, 2012 Author Share Posted June 8, 2012 (edited) I delete cache tools/smarty/compile, but again not works! My admin for this webshop wokrs, but only my front page don't wokrs. Warning: require_once(/home2/smizle2/public_html/hobbyshop/config/../classes/1gbt137w8n9.php) [function.require-once]: failed to open stream: No such file or directory in /home2/smizle2/public_html/hobbyshop/config/config.inc.php on line 41 Fatal error: require_once() [function.require]: Failed opening required '/home2/smizle2/public_html/hobbyshop/config/../classes/1gbt137w8n9.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home2/smizle2/public_html/hobbyshop/config/config.inc.php on line 41 Edited June 8, 2012 by evilmc (see edit history) Link to comment Share on other sites More sharing options...
evilmc Posted June 9, 2012 Author Share Posted June 9, 2012 if anyone has an idea how could I solve this? Link to comment Share on other sites More sharing options...
achilehero Posted September 22, 2013 Share Posted September 22, 2013 I have the same problem. Did you find any solutions to that? Link to comment Share on other sites More sharing options...
vekia Posted September 23, 2013 Share Posted September 23, 2013 can you show your error code please? it will be helpful in this case Link to comment Share on other sites More sharing options...
achilehero Posted September 23, 2013 Share Posted September 23, 2013 Hi vekia. It's exactly the same. With the same 1gbt137w8n9.php that it's looking for. So I was wondering if this could be as a result of an attack/virus? Or would it be result of an upgrade on the server? And also the backend/administration works just fine. Link to comment Share on other sites More sharing options...
vekia Posted September 23, 2013 Share Posted September 23, 2013 so it's really weird and hard to say what's going on there because 1gbt137w8n9.php file isnt't an official prestashop file. can you show sources of your config.inc.php file? Link to comment Share on other sites More sharing options...
achilehero Posted September 23, 2013 Share Posted September 23, 2013 Yes vekia, that's exactly why I was suspecting some kind of code injection. The config.inc.php has this: <?php/* Debug only */@ini_set('display_errors', 'off');define('_PS_DEBUG_SQL_', false);/* SSL configuration */define('_PS_SSL_PORT_',443);/* Improve PHP configuration to prevent issues */@ini_set('upload_max_filesize', '100M');@ini_set('default_charset', 'utf-8');/* Correct Apache charset */header('Content-Type: text/html; charset=utf-8');/* Autoload */function __autoload($className){ if (!class_exists($className, false)) require_once(dirname(__FILE__).'/../classes/'.str_replace(chr(0), '', $className).'.php');}/* No settings file? goto installer...*/if (!file_exists(dirname(__FILE__).'/settings.inc.php')){ $dir = ((is_dir($_SERVER['REQUEST_URI']) OR substr($_SERVER['REQUEST_URI'], -1) == '/') ? $_SERVER['REQUEST_URI'] : dirname($_SERVER['REQUEST_URI']).'/'); if(!file_exists(dirname(__FILE__).'/../install')) die('Error: \'install\' directory is missing'); Tools::redirect('install', $dir);}include(dirname(__FILE__).'/settings.inc.php');/* Redefine REQUEST_URI if empty (on some webservers...) */if (!isset($_SERVER['REQUEST_URI']) OR empty($_SERVER['REQUEST_URI'])){ $_SERVER['REQUEST_URI'] = $_SERVER['SCRIPT_NAME']; if (isset($_SERVER['QUERY_STRING']) AND !empty($_SERVER['QUERY_STRING'])) $_SERVER['REQUEST_URI'] .= '?'.$_SERVER['QUERY_STRING'];}/* Include all defines */include(dirname(__FILE__).'/defines.inc.php');/* Defines are not in defines.inc.php file for no conflicts in installer */define('_PS_MAGIC_QUOTES_GPC_', get_magic_quotes_gpc());define('_PS_MODULE_DIR_', _PS_ROOT_DIR_.'/modules/');define('_PS_MYSQL_REAL_ESCAPE_STRING_', function_exists('mysql_real_escape_string'));/* aliases */function p($var) { return (Tools:($var));}function d($var) { Tools:($var);}global $_MODULES;$_MODULES = array();/* Globals */global $defaultCountry;/* Load all configuration keys */Configuration::loadConfiguration();/* Load all language definitions */Language::loadLanguages();/* Load all zone/tax relations */Tax::loadTaxZones();/* Loading default country */$defaultCountry = new Country(intval(Configuration::get('PS_COUNTRY_DEFAULT')));/* * It is not safe to rely on the system's timezone settings, but we can\'t easily determine the user timezone and the use of this function cause trouble for some configurations. * This will generate a PHP Strict Standards notice. To fix it up, uncomment the following line. */if (function_exists('date_default_timezone_set')){ $timezone = Tools::getTimezones(Configuration::get('PS_TIMEZONE')); date_default_timezone_set($timezone);}/* Smarty */include(dirname(__FILE__).'/smarty.config.inc.php'); I don't find anything suspicious in that. Correct me if I am wrong. Link to comment Share on other sites More sharing options...
vekia Posted September 23, 2013 Share Posted September 23, 2013 so it's not a part of config file (error code says that it is) search in your presta dir for file with "1gbt137w8n9.php" in content Link to comment Share on other sites More sharing options...
achilehero Posted September 23, 2013 Share Posted September 23, 2013 (edited) I already did that. It shows up only in the error logs in lines like the one posted in the thread ... It's really bugging me, plus, the shop isn't working ... Later edit: I also tried with an older backup (just the files with the same database). And I have the same problem. Edited September 23, 2013 by achilehero (see edit history) Link to comment Share on other sites More sharing options...
achilehero Posted October 12, 2013 Share Posted October 12, 2013 It seems it was a problem with the hosting server. Probably an older php version. Link to comment Share on other sites More sharing options...
Recommended Posts