Results 1 to 10 of 12

Hybrid View

  1. #1
    Join Date
    Jun 2009
    Posts
    617
    Plugin Contributions
    0

    Default URGENT DB Connection Issue - site broken by installing zenmagick

    I have frustrating problem and am hoping someone might know what can be done!

    Some preface...
    I had installed a a copy of zenmagick (############################) on my site at mydomain.com/zm - just wanted to see what it was like. Well unfortunately when I did that it seems to have broken the database connection of my ZC store at mydomain.com!

    So I made some forum posts here and at zm. Unfortunately, I should have done that before, because the head guy at zm did not think it was a wise thing to do - he did not know how 'smart' the ZM installer was (or wasn't)!

    So I then made a backup of my zm db and files and preceded to delete that database and the files from my hosting account.

    I then uploaded fresh copies of both configure (checking for accuracy of db name and UN/PW) files for both admin and includes, hoping that would resolve the issue - well sad to say that it hasn't and now I am lost

    The error message that I get when I bring up my ZC admin login page is:

    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.

    When I go to my storefront at mydomain.com, the nddbc.html file comes up.

    When I go to phpmyadmin via my control panel, my ZC db is still there with all the tables and data. To verify that, I exported a copy of it via phpmyadmin per the instructions in the tutorials section, saved it to my pc, unzipped it, opened up the file and looked at the contents! All the data DOES seem to be there.

    I looked at both configure files (admin and includes) and the DB name, UN and PW are correct.

    I have 2 thoughts at what can be done:
    1. Would it help at all to re-upload the zc_install folder and run thru the install script again?

    2. Install a fresh copy of ZC and run thru the installer script to have a fresh, functioning and CONNECTED ZC install. Then re-upload my custom ZC install over the fresh install (overwritting) and then import a copy of my custom ZC db into the fresh db.

    Which is the better idea? Any other suggestions? Thank you for your time and effort.
    Thank you,
    autoace

  2. #2
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: URGENT DB Connection Issue - site broken by installing zenmagick

    Quote Originally Posted by autoace View Post
    I looked at both configure files (admin and includes) and the DB name, UN and PW are correct.
    But, the servername or the table-prefixes might not be.

    Quote Originally Posted by autoace View Post
    1. Would it help at all to re-upload the zc_install folder and run thru the install script again?
    Sure. That'll happily wipe out your database too though, so you'll want to be sure to have a backup.

    Quote Originally Posted by autoace View Post
    2. Install a fresh copy of ZC and run thru the installer script to have a fresh, functioning and CONNECTED ZC install. Then re-upload my custom ZC install over the fresh install (overwritting) and then import a copy of my custom ZC db into the fresh db.
    You could do that too.
    .

    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.

  3. #3
    Join Date
    Jun 2009
    Posts
    617
    Plugin Contributions
    0

    Default Re: URGENT DB Connection Issue - site broken by installing zenmagick

    Quote Originally Posted by DrByte View Post
    But, the servername or the table-prefixes might not be.

    Sure. That'll happily wipe out your database too though, so you'll want to be sure to have a backup.

    You could do that too.
    @ DrByte
    I did not specify any table-prefixes when I installed ZC, so that should not be the issue.

    Where can I find out about the servername that is in my db? If the servername is wrong, how do I go about fixing that?

    In your opinion, which option do you think is the best one to try? I have backups of everything.

    I don't want to do #2 if there is a less complicated fix. Thanks for your help.
    Last edited by autoace; 4 Feb 2010 at 09:08 PM.
    Thank you,
    autoace

  4. #4
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: URGENT DB Connection Issue - site broken by installing zenmagick

    Quote Originally Posted by autoace View Post
    In your opinion, which option do you think is the best one to try? I have backups of everything.
    If you have backups, just go grab the configure.php files from your backup and compare them against your live site.

    Better yet, just in case whatever that other mess screwed up also touched some of your regular files, why not do a thorough compare of *all* the files on your server against your last good backup from before you toyed with it.
    That's less work than either option you proposed.
    http://www.zen-cart.com/wiki/index.p...Obscure_Issues
    .

    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.

  5. #5
    Join Date
    Jun 2009
    Posts
    617
    Plugin Contributions
    0

    Default Re: URGENT DB Connection Issue - site broken by installing zenmagick

    Quote Originally Posted by DrByte View Post
    If you have backups, just go grab the configure.php files from your backup and compare them against your live site.

    Better yet, just in case whatever that other mess screwed up also touched some of your regular files, why not do a thorough compare of *all* the files on your server against your last good backup from before you toyed with it.
    That's less work than either option you proposed.
    http://www.zen-cart.com/wiki/index.p...Obscure_Issues
    I've already compared my backup config files to what is on the server - same data.

    I'll do the file compare to see if there have been any changes.

    As a last resort, do you believe option 2 will work?
    Thank you,
    autoace

  6. #6
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: URGENT DB Connection Issue - site broken by installing zenmagick

    Quote Originally Posted by autoace View Post
    As a last resort, do you believe option 2 will work?
    A definite "maybe"
    .

    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.

  7. #7
    Join Date
    Jun 2009
    Posts
    617
    Plugin Contributions
    0

    Default Re: URGENT DB Connection Issue - site broken by installing zenmagick

    Well not knowing what the ZM installer has done to my files or db (unable to find the cause of the problem) I've decided to do the prudent thing and do a complete re-install of my store. Fortunately I have an almost up-to-date backup of my db (only missing 2 tables from 2 recent mod installs). Unfortunately I don't have a current backup of my store. I have backups, just not recent enough. This has taught me to now keep daily backups. Fortunately, though, I do have all files needed to completely bring my store backup, just have to manually do it instead of restoring a backup file. Another good thing, is that I have not yet 'launched' my store. Coming soon tho....

    Lessons learned (1) daily backups (instead of weekly) for both site and db and (2) Stick with ZC - ZC works!!

    BTW, I am no longer curious about ZM.
    Thank you,
    autoace

 

 

Similar Threads

  1. urgent help please - broken cuz php 5.2.11
    By deado in forum Installing on a Linux/Unix Server
    Replies: 13
    Last Post: 27 Dec 2009, 01:09 AM
  2. Urgent help - quick fix? Broken site after installing Ad Manager addon
    By mygalaxy in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 26 Jun 2009, 09:34 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg