Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Big problems after cleaning and re uploading website


Weedwaka

Recommended Posts

Posted

Hey Guys,

 

I am hoping someone can chime in here and give me a hand.

 

I pulled my site, cleaned out the hack code that has been going around and re-uploaded it via ftp.

 

Ever since , the following things have happened and I cant seem to find the problem.

 

Cant log into admin. I get " Unable to connect to database server"

 

Cant use contact us page or login page's etc. Links are now broken.

 

My product carosel no longer displays images . Like the links to the images or database has been removed.

I am hoping these all point to one problem. Seems like a database thing ?

 

Any help would be greatly appreciated.

Posted
Hey Guys,

 

I am hoping someone can chime in here and give me a hand.

 

I pulled my site, cleaned out the hack code that has been going around and re-uploaded it via ftp.

 

Ever since , the following things have happened and I cant seem to find the problem.

 

Cant log into admin. I get " Unable to connect to database server"

 

Cant use contact us page or login page's etc. Links are now broken.

 

My product carosel no longer displays images . Like the links to the images or database has been removed.

I am hoping these all point to one problem. Seems like a database thing ?

 

Any help would be greatly appreciated.

Posted

On your admin part - it sounds like your admin/includes/configure.php file is not correct. Check that file and your catalog/includes/configure.php and make sure they are pointing to your site. I believe there is a section in there about images also.

 

Sorry I cant help you out with the rest.

Posted

Looks like I had compounding problems.

 

You were correct. The password on these two files did not match. I had an extra semicolon in the one configure.php file after trying an alternative password and not fully correcting it during troubleshooting my other previous problem.

 

Now I am back to my original problem, I am getting a blank page when I try to log into admin. Nothing happens, just a blank page.

 

I also get a blank page when I use the contact us form. It sends the info and then does nothing. Just hangs there.

 

Any ideas ? Is it possible to have a screw up during the FTP process. I cant think of anything else that could have changed. Everything was stripped and re-uploaded as one package. Everything worked great before I pulled and reinstalled the site. The only files I removed were the hacker files and the paragraph of hack text at the beginning of each page ( using Dreamweaver site wide search and replace )

 

Thanks again for your help. It is greatly appreciated. I am at a loss and this is going on two weeks. =(

Posted

David

 

Check you admin/index.php file for any unwanted info and to make sure it is there. Also double check all your admin files got reuploaded. You can always ftp them again. Just note the information in catalog/includes/configure.php and catalaog/adimin/includes/configure.php.

 

Other than that, I dont know where else to tell you to look.

 

I do have a question for you. My site has also hacked. You mentioned that you removed the unwanted files from your site. I can not find any unwanted files on my site, can you please tell me where you found them at. I have the eval code at the top of almost every php file, but I can not find any of the files that have been mentoned in the forums.

 

Thanks

 

You can pm them to me since it really doesnt pertain to your question if you would like. I would appreciate any help with findin these unwanted files.

Posted

Thanks for the help. I will check those tonight.

 

The files were buried deep in the site. Here is a copy and paste from the other thread. You may find them in a different folder, but the files should be the same.

-----------------

I found these in /admin/includes/languages/english/modules/index

 

cnf

csi

customers.php

dg.php

lock

orders.php

s.php

skwd

style.css.php

style.css.php.orig

swf

 

Only two of which are my original files: customers.php and orders.php.

 

cnf: ASCII text

csi: ASCII text

dg.php: PHP script text

lock: empty

s.php: PHP script text

skwd: ASCII text, with CRLF line terminators

style.css.php: PHP script text

style.css.php.orig: PHP script text

swf: Macromedia Flash data (compressed), version 9

 

csi has an IP address and a UNIX time stamp.

The IP address resolves to some tpnet.pl, a dialup service in Warsaw, Poland.

 

The file skwd is a list of random search words:

Posted

Could my problem be caused by the HTACCESS and HTPASSWD files being wrong ?

 

I think there may be the possibility that I copied over them with the same files from a previous backup . . . one which may have had different passwords and was on a different server.

 

Or would this throw more than a blank page.

Posted

from my experience, blank page happens when a portion of php code has syntex error,

it will be alot easier if you have access to the error log for your website.

I always find errors to fix this from the error log.

 

good luck.

Posted
from my experience, blank page happens when a portion of php code has syntex error,

it will be alot easier if you have access to the error log for your website.

I always find errors to fix this from the error log.

 

good luck.

 

Thanks for the replys.

 

I contacted my host to try to get the error log and they are looking into the problem.

 

Being that I only changed a few things on the site, there cant be much room for error.

 

I checked with the host and they have not changed anything server side ( moving to php 5 etc ) in about a year.

 

I re-uploaded in auto mode using fast ftp , not ascii so could that be an issue ?

 

When I cleaned my files of the hack code, I used dreamweaver search and replace. Now each file has a blank line and starts on line 2 . Could this be causing an issue ?

 

These are the only things I can think that may have caused the problem. Everything worked fine previously.

 

Thanks again for teh help . It is greatly appreciated.

Posted

Just sending a note to anyone who is reading....

 

For your own sake, always have access to error_log files, (many problems can be easily identified from there)

 

*** BUTTTT *** not from directly at the browser like : http://www.yourdomain.com/cart/error_log

 

some cpanels generate these log files so that the whole world can be able to read !!!

 

so,

 

1. get access to your error log from control panel or FTP or something that requires login access.

 

2. if you have error log on your public html folder, change permission to 640 or something that others cannot have access to read.

 

hope it helps.

Posted
Yes, sometimes blank lines cause blank pages. That could be the problem. I would go through and remove the empty lines.

 

It was the blank spaces !! I went through each php file one at a time and deleted teh blank lines. FIXED !!

 

Now backup time =)

Archived

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

×
×
  • Create New...