natasha80 Posted February 6, 2009 Share Posted February 6, 2009 HelloI had my shop completely configured in my PC, i bought a hosting package and i uploaded the files to the host.I created a DB with the same name that i was using localy, and i modified the settings.inc.php file:<?phpdefine('__PS_BASE_URI__', '/');define('_THEME_NAME_', 'prestashop');define('_DB_NAME_', 'cultocom_tabaco');define('_DB_SERVER_', 'localhost');define('_DB_USER_', 'cultocom');define('_DB_PREFIX_', 'cultocom_');define('_DB_PASSWD_', 'cul60003');define('_DB_TYPE_', 'MySQL');define('_COOKIE_KEY_', 'bvF7OskmSqRwDkECuyYHzXQDzONC25rwOS71zjh9NjPU1LHvYiEXCNxI');define('_COOKIE_IV_', '0NpBvjVw');define('_PS_VERSION_', '1.1.0.5');?>when i access the server (frontoffice or backoffice i get this error:Invalid loadConfiguration() SQL query!Does anyone have any idea what might cause this?cheers Link to comment Share on other sites More sharing options...
capclem Posted February 6, 2009 Share Posted February 6, 2009 You must indicate the information of your DB Mysql supplied by your host (not localhost) Link to comment Share on other sites More sharing options...
natasha80 Posted February 6, 2009 Author Share Posted February 6, 2009 But when in cpanel i click on phpmyadmin i'm directed to a page containing the info:localhost * Versão do servidor: 5.0.67-communityso, localhost shouldn't be enough? Link to comment Share on other sites More sharing options...
natasha80 Posted February 6, 2009 Author Share Posted February 6, 2009 my host just replied to my problemthey say is "localhost" that i should use to access mysql database.any ideas for what's causing the Invalid loadConfiguration() SQL query! erro? Link to comment Share on other sites More sharing options...
ploaie Posted April 10, 2009 Share Posted April 10, 2009 i got the same problem... did you found a solution? Link to comment Share on other sites More sharing options...
natasha80 Posted April 10, 2009 Author Share Posted April 10, 2009 Nop, i had to install a fresh version of the shop Link to comment Share on other sites More sharing options...
ploaie Posted April 10, 2009 Share Posted April 10, 2009 After a few hours i found that my php.ini was wrong.So... i put in .htaccess the next lines and everyting is good now.php_flag register_long_arrays offphp_flag register_globals offphp_flag display_errors onphp_flag zend.ze1_compatibility_mode offReally, i dont know witch of that option was wrong, but there are the differences betwen those 2 servers. Link to comment Share on other sites More sharing options...
natasha80 Posted April 10, 2009 Author Share Posted April 10, 2009 so you're saying that the trick resides in the .htaccess? Link to comment Share on other sites More sharing options...
ploaie Posted April 10, 2009 Share Posted April 10, 2009 No. The problem was php.ini wich was modified by me a few months ago to work with an old version of oscommerce. The .htaccess trick is only a quick solution to modify the php flags for that directory. It works for me. PHP was the problem for me. Link to comment Share on other sites More sharing options...
woclan Posted March 24, 2011 Share Posted March 24, 2011 Yes in my case the difference was the zend optimizer installed, so I deactivate the zend compability option and it did the trick. thanks. 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