Results 1 to 8 of 8

Hybrid View

  1. #1
    Join Date
    Apr 2013
    Posts
    4
    Plugin Contributions
    0

    Default Blank white screen when checking out in 1.3.8a

    Hi Zen Cart,

    I'm working on a client's site which is experiencing the dreaded blank white screen when clicking the Checkout Button.

    I've tried a number of suggestions read in other forums on this site but nothing has resolved the problem.

    Here is some detail about the setup:

    Host: Hostgator
    Zen Cart version 1.3.8a
    PHP 5.2.17
    MySQL 5.5.23

    My error log indicates the following fatal error, so this is where I would like to start:

    Code:
    [02-Apr-2013 10:12:36] PHP Fatal error:  Call to a member function javascript_validation() on a non-object in /home/mysite/public_html/cart/includes/templates/classic/templates/tpl_checkout_default.php on line 24
    Here is the echo statement in the tpl_checkout_default.php file on line 24:
    Code:
    <?php echo $payment_modules->javascript_validation(); ?>
    When I'm in the Admin area and I click on Modules/Payment the following message displays above the list of payment modules:

    Code:
    TEXT_CART_EMPTY
    1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'SQL_SHOW_SHOPPING_CART_EMPTY' at line 1
    in:
    [SQL_SHOW_SHOPPING_CART_EMPTY]
    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've attached a screenshot showing the various payment modules, but I don't seem to be able to take any actions to configure them.Name:  payment_module_screen.jpg
Views: 197
Size:  18.9 KB

    What do I need to do to fix this error, please? Hopefully I've included enough info to get me moving with a fix.

    Thanks very much,
    azurelink

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Blank white screen when checking out in 1.3.8a

    If you go to your Zen Cart Admin to the Modules ... Payment ... and then peek at your /logs directory via FTP and refresh it, do you see any debug logs referencing your Admin?

    If so, what do those read?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Apr 2013
    Posts
    4
    Plugin Contributions
    0

    Default Re: Blank white screen when checking out in 1.3.8a

    Quote Originally Posted by Ajeh View Post
    If you go to your Zen Cart Admin to the Modules ... Payment ... and then peek at your /logs directory via FTP and refresh it, do you see any debug logs referencing your Admin?

    If so, what do those read?
    Thanks for your interest Ajeh,

    Here is what is in my log/myDEBUG-adm.....php file:

    Code:
    [02-Apr-2013 11:16:01] PHP Warning:  include(/home/mysite/public_html/cart/includes/languages/english/modules/payment/tpl_shopping_cart_default.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory in /home/mysite/public_html/cart/secure/modules.php on line 173
    [02-Apr-2013 11:16:01] PHP Warning:  include() [<a href='function.include'>function.include</a>]: Failed opening '/home/mysite/public_html/cart/includes/languages/english/modules/payment/tpl_shopping_cart_default.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/mysite/public_html/cart/secure/modules.php on line 173
    As these were only warnings and not "fatal errors" I didn't mention them before. The /tpl_shopping_cart_default.php does not exist in that directory path. I tried copying it to that location, but it didn't solve the problem so I deleted it. The only type of files in the payment directory appeared to be payment module files.

    Any other thoughts or suggestions?

    Thanks,
    Azurelink

  4. #4
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Blank white screen when checking out in 1.3.8a

    Zen Cart version 1.3.8a
    What do I need to do to fix this error, please?
    1.3.8a - Really???

    Upgrade on your schedule before you are hacked and have to perform a clean and an upgrade

    That v1.3.8 code is approx 6 years old and has known vulnerabilities
    Zen-Venom Get Bitten

  5. #5
    Join Date
    Apr 2013
    Posts
    4
    Plugin Contributions
    0

    Default Re: Blank white screen when checking out in 1.3.8a

    Quote Originally Posted by kobra View Post
    1.3.8a - Really???

    Upgrade on your schedule before you are hacked and have to perform a clean and an upgrade

    Hi Kobra,

    Thanks. Yes, I realize that 1.3.8a is old. I thought there was a patch for the security issue? I just inherited this project and want to start off by fixing the problem. It might well be that upgrading would solve the issues and I may end up doing just that. But for now, I have to pursue a solution to for the current version. (I have made the client aware of the security issues.)

    Best,
    Azurelink

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

    Default Re: Blank white screen when checking out in 1.3.8a

    Quote Originally Posted by azurelink View Post
    My error log indicates the following fatal error, so this is where I would like to start:

    Code:
    [02-Apr-2013 10:12:36] PHP Fatal error:  Call to a member function javascript_validation() on a non-object in /home/mysite/public_html/cart/includes/templates/classic/templates/tpl_checkout_default.php on line 24
    Here is the echo statement in the tpl_checkout_default.php file on line 24:
    Code:
    <?php echo $payment_modules->javascript_validation(); ?>
    At the literal level, that's all telling you that whatever payment module you're using doesn't have a javascript_validation function defined in it. So, start there.
    Or it means there's a much more serious matter of the /includes/classes/ files being damaged. So, make sure those files match the originals.

    Quote Originally Posted by azurelink View Post
    When I'm in the Admin area and I click on Modules/Payment the following message displays above the list of payment modules:

    Code:
    TEXT_CART_EMPTY
    1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'SQL_SHOW_SHOPPING_CART_EMPTY' at line 1
    in:
    [SQL_SHOW_SHOPPING_CART_EMPTY]
    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.
    Those TEXT_CART_EMPTY and SQL_SHOW_SHOPPING_CART_EMPTY are placeholder names for constants which have no corresponding define() statement in any of the PHP files.
    And that tells me you've got lots of damaged PHP files, not just language files where most defines are done.
    Quote Originally Posted by azurelink View Post
    I've attached a screenshot showing the various payment modules, but I don't seem to be able to take any actions to configure them.
    That's a result of PHP errors occurring when the modules are loaded. All modules consist of a minimum of two files: a pair of files by the same name, but one is in the /includes/modules/payment folder and the other is in the /includes/languages/EVERY_LANGUAGE/modules/payment/ folder. The inner content of the files is different, but there must always be a matching pair for EVERY filename that ends in .php in both places. So, don't leave backups in there with a .php on the end of the filename.

    Really, your problems are looking a lot more serious than just a couple small errors. You REALLY need to do a COMPLETE site audit and verify that EVERY file is clean and unaltered. It's VERY likely that the site has been hacked because it's using a version that has had known vulnerabilities for MANY YEARS. Simply upgrading would have saved a lot of trouble. But now you need to do a THOROUGH cleanup before you can do an upgrade.
    Start here, until you can prove the site has no unauthorized content anywhere, fixing anything bad along the way: http://www.zen-cart.com/wiki/index.p...ing_From_Hacks
    .

    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
    Apr 2013
    Posts
    4
    Plugin Contributions
    0

    Default Re: Blank white screen when checking out in 1.3.8a

    Hi Dr. Byte,

    That was a very helpful response. Thanks! Yes, this site was hacked about a year ago. It was then moved to Hostgator and the malware was apparently cleaned up, though the cart has not worked since then. This is a new client and they are actually considering their options right now.

    I was hoping that we could get the site up and running by solving a few simple problems, but I guess not. We'll see.

    I'll post here with an update once we've decided what to do.

    Thanks very much for your input.

    Oh, btw, do you think it would be possible to export the product list even though we're having these problems? Can you recommend a plugin for 1.3.8a? Does Easy Populate export?

    Best,
    Azurelink

  8. #8
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Blank white screen when checking out in 1.3.8a

    Oh, btw, do you think it would be possible to export the product list even though we're having these problems? Can you recommend a plugin for 1.3.8a?
    Import the full db backup to a test upgraded install
    Then check check check
    Zen-Venom Get Bitten

 

 

Similar Threads

  1. v139h my site going back to login screen (sometimes) when checking out
    By riolas in forum General Questions
    Replies: 1
    Last Post: 19 Dec 2012, 08:41 PM
  2. v139h How do I alter text that shows when checking out at shipping selection screen?
    By heteromorphic in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 10 Sep 2012, 05:21 AM
  3. Blank page returned when checking out
    By Healthadvisor in forum General Questions
    Replies: 1
    Last Post: 9 Dec 2011, 04:59 PM
  4. blank page when checking out
    By jake74 in forum General Questions
    Replies: 7
    Last Post: 1 Aug 2010, 04:54 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