Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1
    Join Date
    May 2007
    Location
    Brighton/Hove/Sussex
    Posts
    144
    Plugin Contributions
    0

    Default Site crash/hack?, lost a live database connection, before potential upgrading

    Ok had a perfectly operating cart although on 1.3.8a
    My shop cart somehow became unuseable, corrupted by a date issue at the time, maybe by the server, or a hacker.
    I saw this date error line once, so no idea what its said now.
    It never came back again to copy it and I could not get back into the site, having an almost blank page.

    So I created a 'site down' index page & moved the whole cart files of the site to a different location folder to test out, but have had no success at all, only now keeps saying;
    0 DB_ERROR_NOT_CONNECTED
    in:
    [select * from zen_project_version WHERE project_version_key = 'Zen-Cart Database' ]

    Both the configure.php files show the correct database name, password & admin directory, in its new location using the original database I cannot afford to lose, not so much the customers but the stock inventory data, I assume it keeps all but the actual images. It checks out fine in MySQL.

    In desperation I thought to create a new database name in mysql, imported the saved sql backup so I intend to use that to use on the upgrade to 1.5 if this repair cannot be resolved today. Noted that the new database is 0.4MB smaller after copying?

    My preference is to work out how to keep my 1.3.9 version running for a bit longer with its many previously stable tweaks, customisations & templates that are not yet ready to work with 1.5 as a new install but using the original live database.

    Have read many similar threads on database access errors but Im going round in circles just being told to look at the two configure files, and the mysql/myphp database names/passwords, not that anything but the sub-directory name has been changed since the crash.
    I will be using a new admin subdirectory just in case the site had unauthorised access that killed that version that might stop an upgrade from 1.3.8a to 1.5

    phpMyAdmin Server version: 5.1.56
    PHP version: 5.3.8
    Operating system: linux (server)
    Original store was 1.39:- TransportPostcards.co.uk/shop (redirecting out)
    Working on a fresh new store... 1.56a TransportPostcards.co.uk/store
    Appreciate Zen-Cart? - Always keep a banner link on your shop

  2. #2
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,545
    Plugin Contributions
    127

    Default Re: Site crash/hack?, lost a live database connection, before potential upgrading

    Clarification: you said
    My preference is to work out how to keep my 1.3.9 version ...
    but you meant 1.3.8, right? The cart is broken and it's at 1.3.8?

    You show a PHP version of 5.3. If you haven't applied the 5.3 patches, you'll have problems. But rather than do this, why not install a stock 1.3.9 cart in a new folder, copy over your configure.php files, go through the db upgrade using zc_install, and see if this works. Then you'll have to port your customizations but at least you'll be back in business.
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  3. #3
    Join Date
    May 2007
    Location
    Brighton/Hove/Sussex
    Posts
    144
    Plugin Contributions
    0

    Default Re: Site crash/hack?, lost a live database connection, before potential upgrading

    Ha great thoughts Scott, but first my mistake yes I was happily running 1.3.8, never had any issues and regret not having the time to sit and get down to upgrading with fixes into 1.3.9.
    The more 1.5 was coming along that was my intention to jump, so I agree from your point upgrade to 1.3.9 is best that hopefully would keep all my tinkering and the database. I could play with 1.5 at a more leisurly pace I suppose.

    If not broke you dont fix, but I should have kept an eye on the php patches although PHP & SQL are my weak points.
    Many thanks, may try that today. I never added you Better Together but that with Royal Mail and Image Handler I liked.
    Original store was 1.39:- TransportPostcards.co.uk/shop (redirecting out)
    Working on a fresh new store... 1.56a TransportPostcards.co.uk/store
    Appreciate Zen-Cart? - Always keep a banner link on your shop

  4. #4
    Join Date
    May 2007
    Location
    Brighton/Hove/Sussex
    Posts
    144
    Plugin Contributions
    0

    Default Re: Site crash/hack?, lost a live database connection, before potential upgrading

    Proceeded with the installion of the 1.3.9 install, doing fine at the start, saw the install page, sorted out the first issue permissions on one file, then came up with this after a trying to copy over the .htaccess file from the previous installation about global something. I find these htaccess files awkward to deal with not liking filenames when editing/copying.

    500 Internal Server Error

    [Sun Feb 19] [error] [client 81.101.202.***] File does not exist: /home/******/public_html/500.shtml
    [Sun Feb 19 ] [alert] [client 81.101.202.***] /home/******/public_html/store***/.htaccess: Invalid command '\xef\xbb\xbfRewriteEngine', perhaps misspelled or defined by a module not included in the server configuration

    So back to being a little frustrated...
    When its solved I will post the issue, unless someone else points us to the simple cause.
    Original store was 1.39:- TransportPostcards.co.uk/shop (redirecting out)
    Working on a fresh new store... 1.56a TransportPostcards.co.uk/store
    Appreciate Zen-Cart? - Always keep a banner link on your shop

  5. #5
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,545
    Plugin Contributions
    127

    Default Re: Site crash/hack?, lost a live database connection, before potential upgrading

    Use the stock .htaccess and turn off URL rewriting.
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  6. #6
    Join Date
    May 2007
    Location
    Brighton/Hove/Sussex
    Posts
    144
    Plugin Contributions
    0

    Default Re: Site crash/hack?, lost a live database connection, before potential upgrading

    Quote Originally Posted by swguy View Post
    Use the stock .htaccess and turn off URL rewriting.
    Many thankjs again Scott for assistence, my Update...

    To get back to where I was, from your suggestion to upgrade to 1.3.9 first then later work towards 1.5.0 (might mean the thread gets moved).

    I took out the htaccess file that was originally suggested in the Global requirements to turn that off.
    Then I deleted the htaccess file in the new admin folder and then made sure it was saved from notepad under UTF-8 format.
    I then got happily back to a my original view of my public front page and the zc_install folder...

    The install came back to the error that caused that run of 500 Server errors; Register Globals = ON Click here for more info
    I have ignored that for now. My server/host dealt with that last time in the htaccess file.

    Next highlight was;
    PHP Output Buffering (gzip) = OFF

    All seemed fine until...
    Click here to open the Admin area
    Disappointingly it was back to 500 internal Server error!
    Original store was 1.39:- TransportPostcards.co.uk/shop (redirecting out)
    Working on a fresh new store... 1.56a TransportPostcards.co.uk/store
    Appreciate Zen-Cart? - Always keep a banner link on your shop

  7. #7
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,545
    Plugin Contributions
    127

    Default Re: Site crash/hack?, lost a live database connection, before potential upgrading

    Keep an eye on the cache directory, which contains error logs (but not for this situation, which is likely a permissions issue with your admin directory - be sure things are set to 755 or 644).
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  8. #8
    Join Date
    May 2007
    Location
    Brighton/Hove/Sussex
    Posts
    144
    Plugin Contributions
    0

    Default Re: Site crash/hack?, lost a live database connection, before potential upgrading

    Im getting the 500 error still, but now sure which file to look at, its the htaccess file in the admin folder, as I see the word I added admin after the # at the start of the text.

    .htaccess: Invalid command '\xef\xbb\xbf#admin', perhaps misspelled or defined by a module not included in the server configuration

    This looks like gibberish bits in front of the file I saved again by UTF-8 in notepad then used filezilla in ftp to the site.

    Those files in the cache directory are 644 or just one has 600
    In my ftp filezilla I see another htaccess file there but in my cpanel file manager I dont ?

    Cache log said:
    Failed opening required 'includes/languages/custom/english.php
    But it was there. Making me get a bit tired of it all now.
    Original store was 1.39:- TransportPostcards.co.uk/shop (redirecting out)
    Working on a fresh new store... 1.56a TransportPostcards.co.uk/store
    Appreciate Zen-Cart? - Always keep a banner link on your shop

  9. #9
    Join Date
    May 2007
    Location
    Brighton/Hove/Sussex
    Posts
    144
    Plugin Contributions
    0

    Default Re: Site crash/hack?, lost a live database connection, before potential upgrading

    Still not found the issue to solve but this lot of detail digging a round in the cache log;

    PHP Fatal error: require() [<a href='function.require'>function.require</a>]: Failed opening required 'includes/languages/custom/english.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/*******/public_html/store***/admin/includes/init_includes/init_languages.php on line 35

    While line 35;
    require(DIR_WS_LANGUAGES . $_SESSION['language'] . '.php');

    words specific to my site removed and 'admin' had been renamed too.

    Using the htaccess file in the install it gives a 500 Error, while renaming it to not be used gives a total blank page on the admin side, while both ways give a working shop, with 'down for maintenance' script BUT I have mananged to buy, with it sending a 'success' email out, hence why the store is not running somewhere public.

    What am I missing or looking for ...
    Last edited by Dinnages; 20 Feb 2012 at 11:06 PM. Reason: privacy items
    Original store was 1.39:- TransportPostcards.co.uk/shop (redirecting out)
    Working on a fresh new store... 1.56a TransportPostcards.co.uk/store
    Appreciate Zen-Cart? - Always keep a banner link on your shop

  10. #10
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Site crash/hack?, lost a live database connection, before potential upgrading

    Quote Originally Posted by Dinnages View Post
    PHP Fatal error: require(): Failed opening required 'includes/languages/custom/english.php' ... in .../admin/ ...
    The error message is telling you that an important file is missing, and is causing a fatal error.
    ie: your /includes/languages/custom/english.php file is apparently missing
    .
    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.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v154 Lost connection to database
    By Bob Higgins in forum General Questions
    Replies: 4
    Last Post: 25 Aug 2015, 05:56 AM
  2. Lost Admin connection to Database
    By motherwestwind in forum Upgrading to 1.5.x
    Replies: 1
    Last Post: 23 Jul 2014, 02:42 AM
  3. v151 Please help! I've lost my connection to my database
    By motherwestwind in forum Installing on a Linux/Unix Server
    Replies: 18
    Last Post: 4 Jul 2014, 11:15 AM
  4. Resetting Database before going Live ?
    By zcnb in forum General Questions
    Replies: 3
    Last Post: 24 Oct 2008, 07:54 AM
  5. Lost database connection
    By SMIFFAD in forum Installing on a Linux/Unix Server
    Replies: 9
    Last Post: 14 Nov 2007, 06:59 PM

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