Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Oct 2006
    Posts
    56
    Plugin Contributions
    0

    Default Backup - Internal Server Error 400

    Hello
    I'm hoping someone can help me! I installed the following contribution on v1.3.5 of ZenCart: BACKUP_MYSQL_ADMIN_PLUGIN-1.2.0.10a.

    I have always used the following settings to backup:
    - No compression (Pure SQL)
    - Download without storing on server.
    I have created many backups successfully with these settings until today! Now when I try I get the following message:

    INTERNAL SERVER ERROR

    An internal server error has occured!
    Please try again later.



    In the title of the page in says: Error 400!



    Its worth mentioning that I have previously backed up without ticking the "Download without storing on server" box but was unable to successfully restore from the file created.


    Can anyone help me. I am trying to install another contribution but can't risk doing it until i can successfully backup the current database.


    Thanks in advance!

  2. #2
    Join Date
    Oct 2006
    Posts
    56
    Plugin Contributions
    0

    Default Re: Backup - Internal Server Error 400

    I reckon I should also mention that I did wait and try again later but repeatedly get the same result.

    Thanks again to anyone taking the time to read this.

  3. #3
    Join Date
    Jan 2004
    Location
    UK
    Posts
    1,230
    Plugin Contributions
    0

    Default Re: Backup - Internal Server Error 400

    You might want to ask your host if they've tightened security on the server recently or made any other changes since you last backed up that may be relevant to you receiving that error.

    From Dr. Byte's readme file for that mod:

    NOTE: uses exec() function calls to run mysqldump and mysql binaries. Sometimes exec() is restricted from use in shared-hosting environments. Also, doesn't work in safe mode or on servers where the mysqldump or mysql binaries have restricted access.

  4. #4
    Join Date
    Oct 2006
    Posts
    56
    Plugin Contributions
    0

    Default Re: Backup - Internal Server Error 400

    Hey Pixxi

    Thanks for getting back to me. I'll give my host a call and check to see if they've changed anything.

    Fingers crossed!


  5. #5
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Backup - Internal Server Error 400

    While it shouldn't be an issue with this mod, you might also ask about "mod_security" changes they might have made recently.
    .

    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.

  6. #6
    Join Date
    Oct 2006
    Posts
    56
    Plugin Contributions
    0

    Default Re: Backup - Internal Server Error 400

    Hi Dr Byte

    Thanks for your reply.

    I have spoken to my host and they say no changes have been made to any of the points you and pixxi mentioned. They suggested my user name, password or database settings may be wrong but i don't think i have changed any files that would have affected these settings. The guy i spoke to can't help me further and so has forwarded the problem to the server experts who will get back to me by email.... Hopefully that won't take too long - better not hold my breath though!

    I'll update this thread as soon as i hear back from them or if anything changes!

    Thanks again.

  7. #7
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Backup - Internal Server Error 400

    If you have access to your server's errorlog, you might get more detailed information there.
    .

    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.

  8. #8
    Join Date
    Oct 2006
    Posts
    56
    Plugin Contributions
    0

    Default Re: Backup - Internal Server Error 400

    Hey. I checked this out and apparently my host doesn't provide access to Apache error logs on shared hosting packages. It does say that I can create my own error logs for debugging PHP Scripts by inserting the following code into my PHP script (or by creating a separate file and adding the code in it. It mentions to include the file using "include()")

    Script : PHP error logging
    error_reporting(0);
    $old_error_handler = set_error_handler("userErrorHandler");

    function userErrorHandler ($errno, $errmsg, $filename, $linenum, $vars)
    {
    $time=date("d M Y H:i:s");
    // Get the error type from the error number
    $errortype = array (1 => "Error",
    2 => "Warning",
    4 => "Parsing Error",
    8 => "Notice",
    16 => "Core Error",
    32 => "Core Warning",
    64 => "Compile Error",
    128 => "Compile Warning",
    256 => "User Error",
    512 => "User Warning",
    1024 => "User Notice");
    $errlevel=$errortype[$errno];

    //Write error to log file (CSV format)
    $errfile=fopen("errors.csv","a");
    fputs($errfile,"\"$time\",\"$filename:
    $linenum\",\"($errlevel) $errmsg\"\r\n");
    fclose($errfile);

    if($errno!=2 && $errno!=8) {
    //Terminate script if fatal errror
    die("A fatal error has occured. Script execution has been aborted");
    }
    }

    Does this make sense to you? If so do you know which file i
    should insert it into?

    Thanks heaps!

  9. #9
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: Backup - Internal Server Error 400

    Sounds like the new Mod you installed will not work with the Server you are on.

    Error 400 Bad Request
    The request could not be processed by the server due to invalid syntax. The
    request should not be repeated until after, the required modifications have first
    been completed by the site owner.

    Although access to Apache Error logs may not be available, every Control Panel provided with a Hosting account will usually provide access to errors related to your Hosting account.

    For example, in Cpanel: Web/FTP Stats > Error Log
    gives all kinds of information on errors that happened within the account

    You are best off to either contact the creator of the Module or go back to your previous Backup method.

  10. #10
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Backup - Internal Server Error 400

    Your original reason for posting was that you were trying to backup your database in order to install another mod.
    You can still do a database-backup if you have access to phpMyAdmin as part of your hosting account. Here are the instructions:
    http://www.zen-cart.com/wiki/index.p...P_THE_DATABASE
    .

    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. v139h localhost server checkout_process -> checkout_success returning internal server error
    By kamion in forum Built-in Shipping and Payment Modules
    Replies: 5
    Last Post: 26 Jan 2013, 02:49 AM
  2. v150 Display 404 error page instead of 500 Internal Server Error
    By ShopVille in forum General Questions
    Replies: 1
    Last Post: 7 Dec 2012, 05:34 PM
  3. Replies: 1
    Last Post: 3 Dec 2012, 01:58 PM
  4. v139f Shopping Cart error: HTTP Error 500 (Internal Server Error)
    By Tulameen in forum General Questions
    Replies: 0
    Last Post: 15 Jan 2012, 01:48 AM
  5. Replies: 14
    Last Post: 2 Jan 2011, 11:13 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