Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15
  1. #11
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: Checkout not working

    [EDIT] *** all of us now typing at the same time ***

    (The real fix is to find a competent host... but) a blank page is generally a result of a faulty PHP file - not usually a permissions issue.

    Stevesh (above) points you to the tutorial on dealing with blank pages.

    Further than showing you the diagnostic procedure, there's not much else we can offer, because we have no access to your logs or your code files.
    Last edited by Kim; 8 Jan 2012 at 05:00 PM.
    20 years a Zencart User

  2. #12
    Join Date
    Jan 2012
    Posts
    27
    Plugin Contributions
    0

    Default Re: Checkout not working

    Thanks to stevesh and DrByte!!

    I have found loads of log files in the cache folder, I've downloaded two of them, as they were of different sizes from the same day (yesterday the 6th, lunchtime and later in the afternoon).

    Log content from 13:42 6th Jan:-

    [06-Jan-2012 13:44:32] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/a27flsu/public_html/flsstore/includes/languages/english/modules/shipping/flat.php:53) in /home/a27flsu/public_html/flsstore/includes/functions/functions_general.php on line 45

    Log content from later in the afternoon on the same day:-

    [06-Jan-2012 15:36:30] PHP Warning: constant() [function.constant]: Couldn't find constant MODULE_SHIPPING_PARCELFORCE48B_COMPENSATION_ in /home/a27flsu/public_html/flsstore/includes/modules/shipping/parcelforce48b.php on line 156

    Both seem to relate to the shipping modules and not the stage after that.

    So I downloaded all the logs from yesterday, all 18 of them, to have a look into each one.

    All the log entries from yesterday after 13:42 (17 logs) contain this:-

    [06-Jan-2012 15:15:00] PHP Warning: constant() [function.constant]: Couldn't find constant MODULE_SHIPPING_PARCELFORCE48B_COMPENSATION_ in /home/a27flsu/public_html/flsstore/includes/modules/shipping/parcelforce48b.php on line 156

    The shipping module ParceFoce48Hrs is not switched on in Zen cart.

    The two modules that ARE switched on are Flat Rate, which I have called Parcel Force Next day at a constant figure, so someone can pick overnight shipping.

    The other module that is on is Table Rate, which I am having my own problems with making work, but ParcelForce48hrs is not switched on.

    So I went to the store today and tried to make one purchase, which seemed to produce a total of 6 logs. 5 of them containing this:-

    [07-Jan-2012 11:18:46] PHP Warning: constant() [function.constant]: Couldn't find constant MODULE_SHIPPING_PARCELFORCE48B_COMPENSATION_ in /home/a27flsu/public_html/flsstore/includes/modules/shipping/parcelforce48b.php on line 156

    And on log containing:-

    [07-Jan-2012 11:21:15] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/a27flsu/public_html/flsstore/includes/languages/english/modules/shipping/flat.php:53) in /home/a27flsu/public_html/flsstore/includes/functions/functions_general.php on line 45

    I am not quite sure what this means, not being a PHP expert!! :-(

    Cheers

    Steve

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

    Default Re: Checkout not working

    The "couldn't find constant" error is to be expected if you've got an addon that's not fully configured. And isn't going to trigger a fatal problem.

    However, the "headers already sent" error does roll into a fatal problem, and needs fixing.

    You've got a problem on line 53 of your flat.php file. Searching the Tutorials/FAQs for the "headers already sent" error message text brings up this article: https://www.zen-cart.com/tutorials/index.php?article=87 which shows you what you should do.
    .

    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.

  4. #14
    Join Date
    Jan 2012
    Posts
    27
    Plugin Contributions
    0

    Default Re: Checkout not working

    Thanks DrByte

    Looks like my Sunday, coffee in hand, is to see if I can get this!

    Cheers

    Steve B

  5. #15
    Join Date
    Jan 2012
    Posts
    27
    Plugin Contributions
    0

    Default Re: Checkout not working

    Hi DrByte

    Thanks for your help. The article you pointed me at sorted the problem completely!

    Upon opening the flat.php file I found loads of extra line spaces at the top, between comments and at the bottom of the file.

    How they got there is a mystery but at least they have been cleared and the cart now works....

    Thanks again for your help, it was the most constructive received :-)

    Cheers

    Steve B

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Checkout is not working
    By ICS in forum General Questions
    Replies: 1
    Last Post: 11 Aug 2007, 12:19 AM
  2. Checkout not working.
    By bryanptcs in forum General Questions
    Replies: 10
    Last Post: 9 Nov 2006, 05:54 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