Site maintenance: Sun 15 Nov, from 12:00 UTC, about 4–6 hours. Details

This cutover relies on some testing that is still incomplete so may be cancelled at short notice

Forums / Upgrading from 1.3.x to 1.3.9 / Upgrading to 1.3.9h problem

Upgrading to 1.3.9h problem

Locked

Started by shqipo on 30 Nov 2011, 6:19 AM · Views: 3,055

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
30 Nov 2011, 6:19 AM
#1
shqipo avatar

shqipo

New Zenner

Join Date:
Apr 2006
Posts:
94
Plugin Contributions:
0

Upgrading to 1.3.9h problem

A while ago two of my sites were hacked. I was able to finally clean them (I hope!) and now I'm trying to upgrade. One of the sites upgraded OK, the other one I'm stuck. I did follow directions correctly (again, I hope!) but I can't get it to work at all. Before the upgrade, I placed the site in Maintenance mode.

Here's what I did:

  1. Created a new folder
  2. Created new database
  3. Transferred old one into new DB
  4. Upgraded
  5. Made changes to two config files

Now I go to the directory where the new site is supposed to be and I get a blank page, url is: http://xxxxxxx.com/xxx/index.php?main_page=down_for_maintenance
I try to go to admin (I changed the admin folder name) and I get this error: 0 DB_ERROR_NOT_CONNECTED
in:
[db_cache table]
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 put in the right username and pwd in config files so I don't know what's going on and I've about have it with this! :(

30 Nov 2011, 7:42 AM
#2
drbyte avatar

drbyte

Sensei

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

Re: Upgrading to 1.3.9h problem

0 DB_ERROR_NOT_CONNECTED -- this is a result of the database information being incorrect in the configure.php files. The DB_SERVER, DB_DATABASE, DB_USERNAME, DB_PASSWORD, DB_PREFIX must all be correct for the server you're on.

If it's happening only on the admin side, then your /renamed-admin/includes/configure.php file has the wrong information.

.
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.

30 Nov 2011, 4:37 PM
#3
shqipo avatar

shqipo

New Zenner

Join Date:
Apr 2006
Posts:
94
Plugin Contributions:
0

Re: Upgrading to 1.3.9h problem

That's what I thought, too - and it's true, my CPanel was messing up with db usernames. Fixed it.

BUT, my troubles have not ended. I'm able to login to admin but it says my DB needs upgrading to 1.3.9 - I thought I had already done that! :( How can I do it now?

And my store still doesn't show, it's a blank page with the url saying "index.php?main_page=down_for_maintenance" - although from the admin panel it is not in maintenance mode.

30 Nov 2011, 7:45 PM
#4
drbyte avatar

drbyte

Sensei

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

Re: Upgrading to 1.3.9h problem

Sounds like your non-admin configure.php has different DB settings than your admin configure.php file.

.
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.

1 Dec 2011, 4:11 AM
#5
shqipo avatar

shqipo

New Zenner

Join Date:
Apr 2006
Posts:
94
Plugin Contributions:
0

Re: Upgrading to 1.3.9h problem

DrByte:

Sounds like your non-admin configure.php has different DB settings than your admin configure.php file.

"// define our database connection" is the same on both files :(

Also, I did delete the install files but the admin area is telling me I need to upgrade my DB. What should I do?

1 Dec 2011, 6:40 AM
#6
drbyte avatar

drbyte

Sensei

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

Re: Upgrading to 1.3.9h problem

is the same on both files
Did you check the files ON THE SERVER? Or just the copy on your PC?

.
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.

2 Dec 2011, 4:59 AM
#7
shqipo avatar

shqipo

New Zenner

Join Date:
Apr 2006
Posts:
94
Plugin Contributions:
0

Re: Upgrading to 1.3.9h problem

No wonder they call you the doctor! :) You're right, for some strange reasons, that config file wasn't going through an FTP client. Had to do an upload through cPanel. I also did the "upgrade database" through zc_install. THANK YOU!

27 Jan 2012, 5:51 PM
#8
je2009 avatar

je2009

New Zenner

Join Date:
Jul 2009
Location:
Maryland
Posts:
65
Plugin Contributions:
0

Re: Upgrading to 1.3.9h problem

I upgraded to 1.39h as the instruction said.

The only thing different I did is that once I had the test store working on a new DB which was restore from original DB and upgraded, I decided to use that as my new original DB.

I moved the test store files to the root directory including the config files that point to the new DB (making sure the config files were modified to the correct root paths). Everything seems to be working well, but when I tried to disconnect my test store from the new DB, it brings down the upgraded store as well.

So I change the configs of the test store to point to the old DB, yet it somehow linked to the upgraded store because now on the upgraded store it give me a mesage I need to patch the DB (even though the new DB has already being upgraded).

Does this makes sense?

Basically I have the upgraded store working and just want to delete my test store files without affecting my upgraded store.

Thanks,