Jump to content

Setting the shop online after testing it localy


Recommended Posts

Hello

I 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:

<?php

define('__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

  • 2 months later...

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 off
php_flag register_globals off
php_flag display_errors on
php_flag zend.ze1_compatibility_mode off



Really, 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

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

  • 1 year later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...