Forums / General Questions / Database problem - please help!

Database problem - please help!

Locked

Views: 3,505

Results 1 to 20 of 22
This thread is locked. New replies are disabled.
21 Jan 2007, 6:23 PM
#1
vralteladden avatar

vralteladden

New Zenner

Join Date:
Nov 2006
Location:
Oslo, Norway
Posts:
9
Plugin Contributions:
0

Database problem - please help!

Im sorry for bringing this up again, since there are so many posts about this already, but by following the instruction in those posts, my site still doesnt work.

Im running 1.3.6 on Ix Webhosting. Its been working for over a month now, but today I get: 0 DB_ERROR_NOT_CONNECTED
in:
[select * from project_version WHERE project_version_key = 'Zen-Cart Database' ]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.

I havent changed any settings either in Zen Cart or in MySQL. I have checked the configure.php files, and the username and passwords match those in MySQL. I even made a new user and tried that, but it still didnt work. I had the same error sometime last week, but then it was fixed pretty quickly. Today I chatted with someone there, and they said it would be fixed within a short time. Two hours later I again contacted them, and they said the MySQL database was working fine. Well.. I still cant connect, so I guess they must have messed up something? I think they have been updating stuff on their site, so maybe that has messed things up for me?? Ive contacted them, but still not reply..

The address is https://www.nybarbert.no

Thanks for your help!

21 Jan 2007, 7:01 PM
#2
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Database problem - please help!

You're not the only ix webhosting company customer posting here today about problems with their service. Here's another example.

This rather suggests that it's their problem and not something that you have done or can fix.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

21 Jan 2007, 9:05 PM
#3
vralteladden avatar

vralteladden

New Zenner

Join Date:
Nov 2006
Location:
Oslo, Norway
Posts:
9
Plugin Contributions:
0

Re: Database problem - please help!

Thanks for the reply!

I hope they fix it soon.. 5 hours and still no reply and their live chat claim that things are working fine, and then tell me to write a ticket, which I already have done... Its been offline all day, so if this isnt fixed by tomorrow Im switching hosts!

22 Jan 2007, 5:52 AM
#4
vralteladden avatar

vralteladden

New Zenner

Join Date:
Nov 2006
Location:
Oslo, Norway
Posts:
9
Plugin Contributions:
0

Re: Database problem - please help!

I got this message from their support: "We apologise for the inconveniences. We ahve tried to access https://www.nybarbert.no and did not find ant link Zen Cart ,therefore could not repliacte the problem at our end. Please provide the exact URL from where we can access the Zen Cart, so that we can investigate into the issue and get it fixed."

What URL should I provide them so that they can try to fix the problem?

Thanks!

22 Jan 2007, 7:40 AM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Database problem - please help!

As a result of the failed database connection, it's automatically redirecting you to this:
http://www.nybarbert.no/nddbc.html

That's probably confusing them.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

22 Jan 2007, 10:13 AM
#6
vralteladden avatar

vralteladden

New Zenner

Join Date:
Nov 2006
Location:
Oslo, Norway
Posts:
9
Plugin Contributions:
0

Re: Database problem - please help!

Yes, I told them this, but I dont think the guy in the support chat understood it. When I now try to access the site I get this error:

1054 Unknown column 'host_address' in 'field list'
in:
[insert into whos_online (customer_id, full_name, session_id, ip_address, time_entry, time_last_click, last_page_url, host_address, user_agent) values ('0', '¥Guest', '51333d3b99c2bbb45558d24c20377c8d', '129.240.156.81', '1169460562', '1169460562', '/', 'OFFICE_IP_TO_HOST_ADDRESS', 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; InfoPath.1)')]

What does this mean? I havent changed anything, so it must be someone at Ix webhosting who has changed things? The store has not been working for over 24 hours, and they still havent fixed it :no:

Thanks so much for your help!

22 Jan 2007, 11:41 AM
#7
vralteladden avatar

vralteladden

New Zenner

Join Date:
Nov 2006
Location:
Oslo, Norway
Posts:
9
Plugin Contributions:
0

Re: Database problem - please help!

I checked the MySQL server and it says it has been running for 17 hours... I created it in november, so how can this be? Have the people at IX actually deleted my entire database???

22 Jan 2007, 12:19 PM
#8
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: Database problem - please help!

The problem was created by your Hoster and they are the ones' to fix it.

It does look like db corruption has occured. Hopefully, you or your Hoster has a recent backup because that is probably the only way you are going to (easily) fix the problem.

The learning is in the doing.

Potent Products

22 Jan 2007, 12:19 PM
#9
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Database problem - please help!

You must have a database there, otherwise you wouldn't be getting the 1054 Unknown column error. The server info suggests instead that their MySQL server was rebooted 17 hours previously to when you checked. Re-booting the server is obviously a service interruption and to be avoided if possible and further evidence that they have been having some problems.

But there's something else here that we need to get to the bottom of. What you appear to have on your site at the moment is a default installation of osCOmmerce put there yesterday. Is this you or your host?

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

22 Jan 2007, 12:43 PM
#10
vralteladden avatar

vralteladden

New Zenner

Join Date:
Nov 2006
Location:
Oslo, Norway
Posts:
9
Plugin Contributions:
0

Re: Database problem - please help!

Yes, I just noticed that. OsCommerce was put "on" in the panel, but I did not do this. I have no idea why they did this... Im just hoping their support can finally send me a reply and solve the problem ASAP.

I dont have a back-up of the database, only the site itself... Really hope Ix has a backup. Dont think they would update their servers without backing up everything?

Thanks for the replies!

22 Jan 2007, 1:40 PM
#11
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Database problem - please help!

I'm looking forward to seeing your site. You're site down screen was one of the nicest I've seen and if that's representative of your site as a whole, it must be pretty good.

Yes. Hopefully IX can get you back up. Though if their solution is to try to restore your site to a default osCommerce, their problems may be even greater than we had thought. :cry:

Once your site is re-established and you can backup your database, there's a piece of advice that we sometimes give in these situations. Grab your backup and RUN.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

22 Jan 2007, 2:06 PM
#12
vralteladden avatar

vralteladden

New Zenner

Join Date:
Nov 2006
Location:
Oslo, Norway
Posts:
9
Plugin Contributions:
0

Re: Database problem - please help!

Thanks, I guess its not too shabby :)

I will keep you updated on how things go, even though it doesnt look too good at the moment..

Thank you for all the advice so far!

23 Jan 2007, 3:23 PM
#13
vralteladden avatar

vralteladden

New Zenner

Join Date:
Nov 2006
Location:
Oslo, Norway
Posts:
9
Plugin Contributions:
0

Re: Database problem - please help!

Well.. ist been over 3 days and they still havent managed to fix it. I think they have actually just made things a lot worse. Doesnt seem like there is any way to fix it.. So Im now giving up.. I need the site back online, so I have chosen to go with a Norwegian company who will sort things out.. Its gonna cost me over a 1000$ to get a new store, which I am pissed off about... Its not like I have a lot of money, and its especially aggravating since this was 100% IX Webhostings fault.. But I doubt they will pay a cent...

So... thanks to everyone who tried to help, its been a good time with Zen Cart, but unfortunately way too short..

24 Jan 2007, 6:39 AM
#14
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: Database problem - please help!

I think it's safe to say your problems were caused by your Hoster, not ZenCart. Moving to another Hoster is definitely a good plan but why does it costs so much to get the site back up, if you are still using ZenCart?

The learning is in the doing.

Potent Products

12 Apr 2007, 2:10 PM
#15
adam9110 avatar

adam9110

New Zenner

Join Date:
Jan 2006
Posts:
92
Plugin Contributions:
0

Re: Database problem - please help!

kuroi:

You're not the only ix webhosting company customer posting here today about problems with their service. Here's another example.

This rather suggests that it's their problem and not something that you have done or can fix.

Hello Kuroi,
your avatar is chinese character! nice to meet u here , I am from china.

I encountered the same problems days ago. and I spend much time to deal with that . I could not solve the problem. and I found this thread here .
I get despairing when i see your post which says it is IX's problem.
You know i just rent their service.

Then i enquiried them . They fixed problem for me after i short chat.
It is because there is another configure.php file locates youdomain/admin/includes/local/ , you need change this configure.php's information to match your db as well as the other two.

There are three configure.php total you need to re_configure!!!

Thanks.

12 Apr 2007, 2:21 PM
#16
adam9110 avatar

adam9110

New Zenner

Join Date:
Jan 2006
Posts:
92
Plugin Contributions:
0

Re: Database problem - please help!

Website Rob:

I think it's safe to say your problems were caused by your Hoster, not ZenCart. Moving to another Hoster is definitely a good plan but why does it costs so much to get the site back up, if you are still using ZenCart?

No , it is not IX fault. really.

Please check back all of your configure.php files in zencart folder.

they are not two , actually three.

12 Apr 2007, 2:42 PM
#17
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Database problem - please help!

adam9110:

Please check back all of your configure.php files in zencart folder.

they are not two , actually three.

Three ? Where ?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

12 Apr 2007, 3:41 PM
#18
adam9110 avatar

adam9110

New Zenner

Join Date:
Jan 2006
Posts:
92
Plugin Contributions:
0

Re: Database problem - please help!

I dont know why there are three configure.php.

But it must be exsits when somebody get the problems as desribled above.

Go and check if there is a folder called " local" exsit under:

yourzencart/admin/includes/

and there is the another configure.php.

i know there is no such file in the default zencart files!

It may automatically come out during the copy process.

I mean i copy the all the zencart files from another exsited store.

12 Apr 2007, 3:56 PM
#19
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Database problem - please help!

The /includes/local/configure.php file is intended for use only on a development PC and typically should never be uploaded to a live webserver.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

12 Apr 2007, 4:03 PM
#20
adam9110 avatar

adam9110

New Zenner

Join Date:
Jan 2006
Posts:
92
Plugin Contributions:
0

Re: Database problem - please help!

THanks , But that why i get confused.

I hardly find any /local / folder in my other zen cart website ! Even in my local PC.
I just made a copy from my other live zencart site .

Does it come up automatically?

Any way i just solve the problem.