Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

problem with copying site to new server


Lady Lionheart

Recommended Posts

Hi everyone,

 

I'm having a small problem. I copied the database and webshop over to a new server ( is it necessary to install oscommerce on it or can I just copy everything over)

But then I get a blank site with this error: (website name changed)

 

Warning: require(includes/languages/.php): failed to open stream: No such file or directory in /customers/9/8/8/etienne.com/httpd.www/catalog/includes/application_top.php on line 317 Fatal error: require(): Failed opening required 'includes/languages/.php' (include_path='.:/usr/share/php') in /customers/9/8/8/etienne.com/httpd.www/catalog/includes/application_top.php on line 317

 

It worked fine on the other site, so why not on this one?

If anyone can help that would be greatly appreciated.

Link to comment
Share on other sites

Whats the php version on the new server?

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

Which is?

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

What sessions method are you using file or mysql, check your configure.php file if not sure.

 

I should have added, if its file, change to mysql.

 

This problem occurs when you $_SESSION var language is being set with a null, which is then used to attempt a include based on that null

 

Try this to start:

 

application_top.php find:

 

// set the language
 if (!tep_session_is_registered('language') || isset($HTTP_GET_VARS['language'])) {

 

replace with:

// set the language
 if (!tep_session_is_registered('language') || isset($HTTP_GET_VARS['language']) || empty($language)) {

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

I just have one more problem:

In the admin section, when I try to add products I receive the error: ERROR ERROR - The provided 'images' directory /customers/etienne.com/etienne.com/httpd.www/catalog/images/ does not exist on the server!!.

 

The folder images does exist in the catalog folder, so why would I receive this error? Any help would be highly appreciated.

Link to comment
Share on other sites

Look at the path /customers/etienne.com/etienne.com/httpd.www/catalog/images/ its all wrong.

 

Post the content of your configure files with the dBase part removed

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

define('HTTP_SERVER', 'http://www.etienne.com');

define('HTTPS_SERVER', 'http://www.etienne.com');

define('ENABLE_SSL', false);

define('HTTP_COOKIE_DOMAIN', 'www.etienne.com');

define('HTTPS_COOKIE_DOMAIN', 'www.etienne.com');

define('HTTP_COOKIE_PATH', '/catalog/');

define('HTTPS_COOKIE_PATH', '/catalog/');

define('DIR_WS_HTTP_CATALOG', '/catalog/');

define('DIR_WS_HTTPS_CATALOG', '/catalog/');

define('DIR_WS_IMAGES', 'images/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

define('DIR_WS_INCLUDES', 'includes/');

define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');

define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');

define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');

define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');

define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

 

define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');

define('DIR_FS_CATALOG', '/customers/etienne.com/httpd.www/catalog/');

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 

 

and

 

 

define('HTTP_SERVER', 'http://www.etienne.com');

define('HTTP_CATALOG_SERVER', 'http://www.etienne.com');

define('HTTPS_CATALOG_SERVER', 'http://www.etienne.com');

define('ENABLE_SSL_CATALOG', 'false');

define('DIR_FS_DOCUMENT_ROOT', '/customers/etienne-toys.com/etienne.com/httpd.www/catalog/');

define('DIR_WS_ADMIN', '/catalog/test/');

define('DIR_FS_ADMIN', '/customers/etienne-toys.com/etienne.com/httpd.www/catalog/test/');

define('DIR_WS_CATALOG', '/catalog/');

define('DIR_FS_CATALOG', '/customers/etienne-toys.com/etienne-toys.com/httpd.www/catalog/');

define('DIR_WS_IMAGES', 'images/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');

define('DIR_WS_INCLUDES', 'includes/');

define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');

define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');

define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');

define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');

define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

define('DIR_WS_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');

define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');

define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');

define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');

define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');

Link to comment
Share on other sites

Were you confused as to what sit your moving, you have references to two here!!

 

the entry in your client side

 

define('DIR_FS_CATALOG', '/customers/etienne.com/httpd.www/catalog/');

 

should be the same same as your admin side

 

define('DIR_FS_DOCUMENT_ROOT', '/customers/etienne-toys.com/etienne.com/httpd.www/catalog/');

and

define('DIR_FS_CATALOG', '/customers/etienne-toys.com/etienne-toys.com/httpd.www/catalog/');

 

but their all different!

 

equally it appears this is wrong:

 

define('DIR_FS_ADMIN', '/customers/etienne-toys.com/etienne.com/httpd.www/catalog/test/');

 

Are you editing etienne-toys.com or etienne.com

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

No it's all etienne-toys.com but I thought I would change the name because I thought it was not allowed to post links. But it seems I forgot some :)

But do you know which one is the right one?

It's really strange that these errors occur since I copied over the site 1 to 1...

 

I now changed the config files to this:

 

define('HTTP_SERVER', 'http://www.etienne-toys.com');

define('HTTPS_SERVER', 'http://www.etienne-toys.com');

define('ENABLE_SSL', false);

define('HTTP_COOKIE_DOMAIN', 'www.etienne-toys.com');

define('HTTPS_COOKIE_DOMAIN', 'www.etienne-toys.com');

define('HTTP_COOKIE_PATH', '/catalog/');

define('HTTPS_COOKIE_PATH', '/catalog/');

define('DIR_WS_HTTP_CATALOG', '/catalog/');

define('DIR_WS_HTTPS_CATALOG', '/catalog/');

define('DIR_WS_IMAGES', 'images/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

define('DIR_WS_INCLUDES', 'includes/');

define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');

define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');

define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');

define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');

define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

 

define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');

define('DIR_FS_CATALOG', '/customers/etienne-toys.com/etienne-toys.com/httpd.www/catalog/');

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 

 

and

 

 

define('HTTP_SERVER', 'http://www.etienne-toys.com');

define('HTTP_CATALOG_SERVER', 'http://www.etienne-toys.com');

define('HTTPS_CATALOG_SERVER', 'http://www.etienne-toys.com');

define('ENABLE_SSL_CATALOG', 'false');

define('DIR_FS_DOCUMENT_ROOT', '/customers/etienne-toys.com/etienne-toys.com/httpd.www/catalog/');

define('DIR_WS_ADMIN', '/catalog/test/');

define('DIR_FS_ADMIN', '/customers/etienne-toys.com/etienne-toys.com/httpd.www/catalog/test/');

define('DIR_WS_CATALOG', '/catalog/');

define('DIR_FS_CATALOG', '/customers/etienne-toys.com/etienne-toys.com/httpd.www/catalog/');

define('DIR_WS_IMAGES', 'images/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');

define('DIR_WS_INCLUDES', 'includes/');

define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');

define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');

define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');

define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');

define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

define('DIR_WS_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');

define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');

define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');

define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');

define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');

 

But it still won't work...

Link to comment
Share on other sites

I would think

 

/customers/etienne-toys.com/etienne-toys.com/httpd.www/catalog/

 

should be

 

/customers/etienne-toys.com/httpd.www/catalog/

 

I can't be sure though without examining the server however if you want to avoid these errors use:

 

define('DIR_FS_CATALOG', $_SERVER['DOCUMENT_ROOT'] . 'catalog/');

 

and in admin

 

define('DIR_FS_DOCUMENT_ROOT', $_SERVER['DOCUMENT_ROOT'] . 'catalog/');

define('DIR_FS_ADMIN', $_SERVER['DOCUMENT_ROOT'] . 'catalog/test/');

define('DIR_FS_CATALOG', $_SERVER['DOCUMENT_ROOT'] . 'catalog/');

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

I changed them as you said, but now I get this error:

ERROR ERROR - The provided 'images' directory /customers/9/8/8/etienne-toys.com/httpd.wwwcatalog/images/ does not exist on the server!!.

 

Grrr this is driving me crazy, but I really appreciate your help :)

Link to comment
Share on other sites

well that's the first time $_SERVER['DOCUMENT_ROOT'] returns without a trailing / new one on me

 

That means the previous should be:

 

define('DIR_FS_CATALOG', $_SERVER['DOCUMENT_ROOT'] . '/catalog/');

 

and in admin

 

define('DIR_FS_DOCUMENT_ROOT', $_SERVER['DOCUMENT_ROOT'] . '/catalog/');

define('DIR_FS_ADMIN', $_SERVER['DOCUMENT_ROOT'] . '/catalog/test/');

define('DIR_FS_CATALOG', $_SERVER['DOCUMENT_ROOT'] . '/catalog/');

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...