Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

I did something stupid, now my site doesn't show up.


Miku's_Leek

Recommended Posts

Posted

I'm a total idiot. I can be pretty good with coding websites, but now and then I do something stupid that just ruins it...

Like yesterday, I was following this tutorial step by step to add a log in box or something to the header, but it made my log in page and create an account page come up with that '500 Internal Server Error' thing.

 

I tried undid all the changes I had made and re-uploaded the files. That didn't work.

I was then stupid enough to think if I re-uploaded the files that come with the oscommerce 2 download thing from the downloads section, that everything would be fine. I just assumed that it was the default or something I dunno...

But now my whole website comes up with either '500 Internal Server Error' message or a 'ERROR 404 - PAGE NOT FOUND' message. The pages are still there... I assume I need to do some linking up or something?

It happened when I re-uploaded the index.php. Before that, I was editing the shipping_php, create_account.php and login.php files.

 

I know, I was VERY stupid.

But... what do I do to make it work now? I've been looking everywhere and it's really stressing me out because all the coding I did that actually worked is now gone, and it's all becoming a little overwhelming.

 

 

I wil continue to look on the internet for help, but I would REALLY appreciate any help you guys can give... just in case I find nothing.

 

My shop, so you can see the error message;

http://animemangacosplay.com/shop/

Posted

Sounds like a lot of files are messed up... I'd have to look at all the files to find error. If you had hosting through me I could restore your data base for you to a time that it was working. I have daily data base backup, and can restore DB's daily. Sorry about your problem...

Posted

Sounds like a lot of files are messed up... I'd have to look at all the files to find error. If you had hosting through me I could restore your data base for you to a time that it was working. I have daily data base backup, and can restore DB's daily. Sorry about your problem...

I did a database backup before I did anything, and restored it first thing when I screwed it up. But it didn't work, that's another reason why I'm freaking out, I assumed that would sort it out.

Posted

Ya I mean the whole servers data base, whoever your hosting servers are, need to be restored

Oh, my mum has the log in details for the host site, and I asked her what they were a while ago but she still hasn't told me... do I have to wait for those details before I can fix it? Is there no other way I can have it up?

Posted

Ya sounds like it, unless you can fix those files Your host should be able to restore your database to whenever you want, 2 weeks ago, 1 day ago etc. If not then that sucks. I love to be able to restore it whenever I want its great then you dont feel so stupid when you fuck up ...haha

Posted

The DB backup just saves DB data, you have to backup files and images manually.

 

Don't freak too bad.

 

Click this

 

Some of the pages still work, just not the index or anything to do with login or create account.

 

Read this thread, especially the posts by steve_s about getting the shop to make a error log file for you (assuming you have none accessible that your host created).

 

That thread is about the admin, but you could make the same changes to /shop/includes/application_top.php to get it to work for the catalog side (hopefully).

 

Until you can get some error you're "flying blind".

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 >

Posted

The DB backup just saves DB data, you have to backup files and images manually.

 

Don't freak too bad.

 

Click this

 

Some of the pages still work, just not the index or anything to do with login or create account.

 

Read this thread, especially the posts by steve_s about getting the shop to make a error log file for you (assuming you have none accessible that your host created).

 

That thread is about the admin, but you could make the same changes to /shop/includes/application_top.php to get it to work for the catalog side (hopefully).

 

Until you can get some error you're "flying blind".

 

Thanks, I'm gonna have a look at those now.

Posted

Backing up the database is half the work. You also need to backup your php files prior to altering code.

 

I recommend using XAMPP or WAMP on your local machine. It provides the necessary environment for oscommerce to run in your computer instead of your actual web server. If a mistake happens, it affects your local copy not your live site. You learn what not to do on your actual web site.

 

Ask your web host for a backup of your website(php files, image files, etc) prior to the errors you are experiencing.

Posted

Backing up the database is half the work. You also need to backup your php files prior to altering code.

 

I recommend using XAMPP or WAMP on your local machine. It provides the necessary environment for oscommerce to run in your computer instead of your actual web server. If a mistake happens, it affects your local copy not your live site. You learn what not to do on your actual web site.

 

Ask your web host for a backup of your website(php files, image files, etc) prior to the errors you are experiencing.

I have XAMPP already but wasn't sure how it worked.

Posted

The DB backup just saves DB data, you have to backup files and images manually.

 

Don't freak too bad.

 

Click this

 

Some of the pages still work, just not the index or anything to do with login or create account.

 

Read this thread, especially the posts by steve_s about getting the shop to make a error log file for you (assuming you have none accessible that your host created).

 

That thread is about the admin, but you could make the same changes to /shop/includes/application_top.php to get it to work for the catalog side (hopefully).

 

Until you can get some error you're "flying blind".

Okay, I did the error_txt thing, and it's showing a paragraph in the error_log.txt.

Posted

If you post what it says someone should be able to help.

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 >

Posted

If you post what it says someone should be able to help.

 

I will, but I think I put it in the wrong place, and when I put it in the top folder, it doesn't load the error_log.txt.

This is from inludes;

<div style="display:none"><a href='http://animemangacosplay.com/shop/product_info.php/?fkny=0'>forex demo accounts</a> <a href='http://animemangacosplay.com/shop/product_info.php/?fkny=1'>forex interest rate</a> <a href='http://animemangacosplay.com/shop/product_info.php/?fkny=2'>forex live rate</a> <a href='http://animemangacosplay.com/shop/product_info.php/?fkny=3'>forex online chart</a> <a href='http://animemangacosplay.com/shop/product_info.php/?fkny=4'>forex signal provider</a> <a href='http://animemangacosplay.com/shop/product_info.php/?fkny=5'>forex trading margin</a> <a href='http://animemangacosplay.com/shop/product_info.php/?fkny=6'>international forex trading</a> <a href='http://animemangacosplay.com/shop/product_info.php/?fkny=7'>best forex trader</a> <a href='http://animemangacosplay.com/shop/product_info.php/?fkny=8'>interactive brokers forex</a> <a href='http://animemangacosplay.com/shop/product_info.php/?fkny=9'>successful forex trader</a> <a href='http://animemangacosplay.com/shop/product_info.php/?fkny=10'>free forex courses</a> <a href='http://animemangacosplay.com/shop/product_info.php/?fkny=11'>free forex e book</a> <a href='http://animemangacosplay.com/shop/product_info.php/?fkny=12'>forex usd gbp</a> <a href='http://animemangacosplay.com/shop/product_info.php/?fkny=13'>forex training uk</a> <a href='http://animemangacosplay.com/shop/product_info.php/?fkny=14'>forex training courses</a> <a href='http://animemangacosplay.com/shop/product_info.php/?fkny=15'>forex trading school</a> <a href='http://animemangacosplay.com/shop/product_info.php/?fkny=16'>forex trading demo account</a> <a href='http://animemangacosplay.com/shop/product_info.php/?fkny=17'>forex trading class</a> <a href='http://animemangacosplay.com/shop/product_info.php/?fkny=18'>forex professional system trading</a> <a href='http://animemangacosplay.com/shop/product_info.php/?fkny=19'>forex news software</a> <a href='http://animemangacosplay.com/shop/product_info.php/?fkny=20'>forex market software</a> <a href='http://animemangacosplay.com/shop/product_info.php/?fkny=21'>forex made easy software</a> <a href='http://animemangacosplay.com/shop/product_info.php/?fkny=22'>forex broker canada</a> <a href='http://animemangacosplay.com/shop/product_info.php/?fkny=23'>amazing forex system</a> <a href='http://animemangacosplay.com/shop/product_info.php/?fkny=24'>position trading forex</a> <a href='http://animemangacosplay.com/shop/product_info.php/?fkny=25'>daily forex signal</a> <a href='http://animemangacosplay.com/shop/product_info.php/?fkny=26'>daily forex signals</a> <a href='http://animemangacosplay.com/shop/product_info.php/?fkny=27'>gft forex trading</a> <a href='http://animemangacosplay.com/shop/product_info.php/?fkny=28'>realtime forex quotes</a> <a href='http://animemangacosplay.com/shop/product_info.php/?fkny=29'>australian dollar forex</a> <a href='http://animemangacosplay.com/shop/product_info.php/?fkny=30'>automated forex trade</a> <a href='http://animemangacosplay.com/shop/product_info.php/?fkny=31'>historical forex rates</a> <a href='http://animemangacosplay.com/shop/product_info.php/?fkny=32'>forex advisory services</a> <a href='http://animemangacosplay.com/shop/product_info.php/?fkny=33'>forex broker ratings</a> <a href='http://animemangacosplay.com/shop/product_info.php/?fkny=34'>forex hedge funds</a> <a href='http://animemangacosplay.com/shop/product_info.php/?fkny=35'>forex ira managed trading</a> <a href='http://animemangacosplay.com/shop/product_info.php/?fkny=36'>forex money manager</a> <a href='http://animemangacosplay.com/shop/product_info.php/?fkny=37'>forex prediction software</a> <a href='http://animemangacosplay.com/shop/product_info.php/?fkny=38'>forex trading signals software</a> <a href='http://animemangacosplay.com/shop/product_info.php/?fkny=39'>forex trading video</a> <a href='http://animemangacosplay.com/shop/product_info.php/?fkny=40'>new to forex</a> <a href='http://animemangacosplay.com/shop/product_info.php/?fkny=41'>guide to profitable forex day trading</a> <a href='http://animemangacosplay.com/shop/product_info.php/?fkny=42'>live forex signals</a> <a href='http://animemangacosplay.com/shop/product_info.php/?fkny=43'>interbank forex trading</a> <a href='http://animemangacosplay.com/shop/product_info.php/?fkny=44'>forex trading pairs</a> <a href='http://animemangacosplay.com/shop/product_info.php/?fkny=45'>forex signal providers</a> <a href='http://animemangacosplay.com/shop/product_info.php/?fkny=46'>forex pivot point calculator</a> <a href='http://animemangacosplay.com/shop/product_info.php/?fkny=47'>latest forex rates</a> <a href='http://animemangacosplay.com/shop/product_info.php/?fkny=48'>global futures forex</a> <a href='http://animemangacosplay.com/shop/product_info.php/?fkny=49'>automated forex signals</a></div>[18-Oct-2009 21:16:56] PHP Notice:  Use of undefined constant HEADER_TITLE_TOP - assumed 'HEADER_TITLE_TOP' in /home/flergus/public_html/shop/includes/application_top.php on line 473
[18-Oct-2009 21:16:56] PHP Notice:  Use of undefined constant HEADER_TITLE_CATALOG - assumed 'HEADER_TITLE_CATALOG' in /home/flergus/public_html/shop/includes/application_top.php on line 474
[18-Oct-2009 21:16:56] PHP Notice:  Use of undefined constant MODULE_BUYSAFE_BUYSAFE_STATUS - assumed 'MODULE_BUYSAFE_BUYSAFE_STATUS' in /home/flergus/public_html/shop/includes/column_left.php on line 15
[18-Oct-2009 21:16:56] PHP Notice:  Undefined variable: buysafe_module in /home/flergus/public_html/shop/includes/application_bottom.php on line 34
[18-Oct-2009 21:16:56] PHP Warning:  gzinflate() [<a href='function.gzinflate'>function.gzinflate</a>]: data error in /home/flergus/public_html/shop/privacy.php(1) : eval()'d code on line 1
[18-Oct-2009 21:16:56] PHP Notice:  Undefined index:  dhhag in /home/flergus/public_html/shop/admin/includes/languages/espanol/images/buttons/style.css.php(1) : eval()'d code(1) : eval()'d code on line 1
[18-Oct-2009 21:16:56] PHP Notice:  Undefined variable: R04CB58866688F2FE57771583392B6A18 in /home/flergus/public_html/shop/admin/includes/languages/espanol/images/buttons/style.css.php(1) : eval()'d code(1) : eval()'d code on line 1
[18-Oct-2009 21:17:28] PHP Notice:  Use of undefined constant HEADER_TITLE_TOP - assumed 'HEADER_TITLE_TOP' in /home/flergus/public_html/shop/includes/application_top.php on line 473
[18-Oct-2009 21:17:28] PHP Notice:  Use of undefined constant HEADER_TITLE_CATALOG - assumed 'HEADER_TITLE_CATALOG' in /home/flergus/public_html/shop/includes/application_top.php on line 474
[18-Oct-2009 21:17:28] PHP Notice:  Use of undefined constant MODULE_BUYSAFE_BUYSAFE_STATUS - assumed 'MODULE_BUYSAFE_BUYSAFE_STATUS' in /home/flergus/public_html/shop/includes/column_left.php on line 15
[18-Oct-2009 21:17:28] PHP Notice:  Undefined variable: buysafe_module in /home/flergus/public_html/shop/includes/application_bottom.php on line 34
[18-Oct-2009 21:17:28] PHP Warning:  gzinflate() [<a href='function.gzinflate'>function.gzinflate</a>]: data error in /home/flergus/public_html/shop/privacy.php(1) : eval()'d code on line 1
[18-Oct-2009 21:17:28] PHP Notice:  Undefined index:  dhhag in /home/flergus/public_html/shop/admin/includes/languages/espanol/images/buttons/style.css.php(1) : eval()'d code(1) : eval()'d code on line 1
[18-Oct-2009 21:17:28] PHP Notice:  Undefined variable: R04CB58866688F2FE57771583392B6A18 in /home/flergus/public_html/shop/admin/includes/languages/espanol/images/buttons/style.css.php(1) : eval()'d code(1) : eval()'d code on line 1
[18-Oct-2009 21:38:55] PHP Notice:  Use of undefined constant HEADER_TITLE_TOP - assumed 'HEADER_TITLE_TOP' in /home/flergus/public_html/shop/includes/application_top.php on line 473
[18-Oct-2009 21:38:55] PHP Notice:  Use of undefined constant HEADER_TITLE_CATALOG - assumed 'HEADER_TITLE_CATALOG' in /home/flergus/public_html/shop/includes/application_top.php on line 474
[18-Oct-2009 21:38:55] PHP Notice:  Use of undefined constant MODULE_BUYSAFE_BUYSAFE_STATUS - assumed 'MODULE_BUYSAFE_BUYSAFE_STATUS' in /home/flergus/public_html/shop/includes/column_left.php on line 15
[18-Oct-2009 21:38:55] PHP Notice:  Undefined variable: buysafe_module in /home/flergus/public_html/shop/includes/application_bottom.php on line 34
[18-Oct-2009 21:38:55] PHP Warning:  gzinflate() [<a href='function.gzinflate'>function.gzinflate</a>]: data error in /home/flergus/public_html/shop/privacy.php(1) : eval()'d code on line 1
[18-Oct-2009 21:38:55] PHP Notice:  Undefined index:  dhhag in /home/flergus/public_html/shop/admin/includes/languages/espanol/images/buttons/style.css.php(1) : eval()'d code(1) : eval()'d code on line 1
[18-Oct-2009 21:38:55] PHP Notice:  Undefined variable: R04CB58866688F2FE57771583392B6A18 in /home/flergus/public_html/shop/admin/includes/languages/espanol/images/buttons/style.css.php(1) : eval()'d code(1) : eval()'d code on line 1
[18-Oct-2009 21:39:09] PHP Notice:  Use of undefined constant HEADER_TITLE_TOP - assumed 'HEADER_TITLE_TOP' in /home/flergus/public_html/shop/includes/application_top.php on line 473
[18-Oct-2009 21:39:09] PHP Notice:  Use of undefined constant HEADER_TITLE_CATALOG - assumed 'HEADER_TITLE_CATALOG' in /home/flergus/public_html/shop/includes/application_top.php on line 474
[18-Oct-2009 21:39:09] PHP Notice:  Use of undefined constant MODULE_BUYSAFE_BUYSAFE_STATUS - assumed 'MODULE_BUYSAFE_BUYSAFE_STATUS' in /home/flergus/public_html/shop/includes/column_left.php on line 15
[18-Oct-2009 21:39:09] PHP Notice:  Undefined variable: buysafe_module in /home/flergus/public_html/shop/includes/application_bottom.php on line 34
[18-Oct-2009 21:39:09] PHP Warning:  gzinflate() [<a href='function.gzinflate'>function.gzinflate</a>]: data error in /home/flergus/public_html/shop/privacy.php(1) : eval()'d code on line 1
[18-Oct-2009 21:39:09] PHP Notice:  Undefined index:  dhhag in /home/flergus/public_html/shop/admin/includes/languages/espanol/images/buttons/style.css.php(1) : eval()'d code(1) : eval()'d code on line 1
[18-Oct-2009 21:39:09] PHP Notice:  Undefined variable: R04CB58866688F2FE57771583392B6A18 in /home/flergus/public_html/shop/admin/includes/languages/espanol/images/buttons/style.css.php(1) : eval()'d code(1) : eval()'d code on line 1

Posted

Judging from the content you posted, you're another victim of the latest hack attack.

 

Get something nice to sip on and read 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 >

Posted

I think I'm really confused...

The error should show up in the 'error_log.txt' right?

Some of the replies said something about errors on a page... ?

Posted

Judging from the content you posted, you're another victim of the latest hack attack.

 

Get something nice to sip on and read this

I've been hacked

Eurgh this gets worse and worse...

Posted

Truly sorry to see this happen to you.

:'(

 

You might find this useful, too.

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 >

Posted

I don't know for sure if it affects the DB or just all the files.

 

I haven't kept up on "the cure", I just recognize most of the "symptoms".

 

Read thru the links I posted and I'm sure you will find the answer about the DB.

 

Sorry I can't be more help.

:blush:

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 >

Posted

I don't know for sure if it affects the DB or just all the files.

 

I haven't kept up on "the cure", I just recognize most of the "symptoms".

 

Read thru the links I posted and I'm sure you will find the answer about the DB.

 

Sorry I can't be more help.

:blush:

Thanks again. The worst part now is telling my sister... we've been working on this together for a very long time, she's been upoading the products and I don't know how I could tell her that she might need to do it all again.

Posted

I have read of most people getting this hack fixed without having to junk or restore the database. However, when my site was hacked (sept 4th, 2009, a date which will live in infamy!), they accessed my configure.php file, and presumably got my db password, because GoDaddy said that their MySql login panel for my database account was logged in to shortly after configure.php was downloaded from the server (they are a wealth of info). I honestly wouldn't take the chance, myself, after what they did above.

 

Make sure this time that you backup all serverside files on your local machine, as well as your database. It made my repair of this incident take only about 45 minutes. I just deleted all of the server files and db, and uploaded the backups. I changed all passwords, and renamed the db. I also read up on the fix for it, and renamed the admin and etc.

 

As for the chore of reloading products this time around, check out the Easy Populate contributions : http://addons.oscommerce.com/info/500. There is also several pay programs that will make it quick and easy too. I use osCommerce Store Manager. It is easy to use, connects to your db and ftp's with SSH, and allows you to enter products by SKU number, which helps me manage inventory easier. The drawback is that it costs 150.00 USD, so Easy Populate is a better way to go for starting out.

 

Good luck! ;)

Archived

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

×
×
  • Create New...