Results 1 to 7 of 7

Almost ready to go live

This is a discussion on Almost ready to go live within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; Hi everybody, I'm not sure if this is the area to post this, so I am sorry if it is ...

      
  1. #1
    Active Member
    Join Date
    May 2003
    Posts
    185
    Rep Power
    9


    Default Almost ready to go live

    Hi everybody, I'm not sure if this is the area to post this, so I am sorry if it is not, but I am also ready to go live and I am in the process of testing before going live, however I am running into a few errors messages and I'm hoping that someone can me help with the following errors:

    1) When trying to log-in or setup a new account I get:
    Warning: Cannot add header information - headers already sent by (output started at c:\program files\easyphp\www\catalog\includes\application_top .php:204 in c:\program files\easyphp\www\catalog\login.php on line 43

    Warning: Cannot add header information - headers already sent by (output started at c:\program files\easyphp\www\catalog\includes\application_top .php:204 in c:\program files\easyphp\www\catalog\includes\functions\gener al.php on line 23
    however if I hit my back buttom on my browser, I'm login, go figure

    2) When logging off I get the follow error:
    Warning: Cannot add header information - headers already sent by (output started at c:\program files\easyphp\www\catalog\includes\application_top .php:204 in c:\program files\easyphp\www\catalog\includes\functions\gener al.php on line 23
    however if I hit my back buttom on my browser, I'm log-off.

    3) When I am log-on and I try editting the account info I get the following error:
    Parse error: parse error, unexpected $ in c:\program files\easyphp\www\catalog\account_edit_process.php on line 310

    4) During the checkout process I get this error:
    Warning: Cannot add header information - headers already sent by (output started at c:\program files\easyphp\www\catalog\includes\application_top .php:204 in c:\program files\easyphp\www\catalog\includes\functions\gener al.php on line 23

    I believe that the problem is somewhere between the general.php and the application_top.php but I am not that familar with PHP to be able to figure out which one or what to look for. I am working on my local machine using winXP before going live and I am not sure if that is the problem. Thanks in advise for any and all help. Thank You.

  2. #2
    Lurker
    Join Date
    May 2003
    Posts
    3
    Rep Power
    0


    Default

    Regarding items 1,2 and 4:
    It has been my experience that this type of problem is caused when the application is attempting to redirect the browser, via a header redirection, to another page AFTER output has already been sent to the browser.

    The bottom line is that you can not do a redirect via a header redirection if content has already been streamed to the browser.

    Looking at your error messages I would guess that you have made some modifications to application_top.php that resulted in some output being sent to the browser prior to application_top.php processing an action directive like logging in, or adding/removing items from the shopping cart. To double-check this theory you can rename your existing application_top.php file to application_top.php.bak and restore the original application_top.php file from the archive you used to install. If it works with the original version, then figure out the differences between the files and fix the problem.

    It does not surprise me that you are actually logged in even though you encountered this problem... The code to log you in set up everything in the session, it was just unable to forward you to the appropriate page.

    Regarding item 3:
    Edit the account_edit_process.php file and look on or around line 310 for a stray '$' character...

    Hope this helps.

    Cor

  3. #3
    Active Member
    Join Date
    May 2003
    Posts
    185
    Rep Power
    9


    Default

    Hi Cruiten,
    Thanks for your reply, I was able to get all item fix with some help from freerangemum we found that what was causing the problem was some spaces after the last > in the account_edit_process.php file. I remove the spaces and that took care of those problem. However I still have a problem with the checkout process. During the checkout process when I click on checkout I can get to the first step of the process which is the Delivery Information, however in the shipping method field I see the following message

    "This is currently the only shipping method available to use on this order."

    but I don't not see any of the shipping methods that I have enable in the admin. I have UPS and FedEX enable but they don't show up here. Also when I click on continue, rather than going to the next step which is the payment information screen, it just loops back to the delivery information screen. Would you know what is causing these problems?
    Thanks for your help.

  4. #4
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,500
    Rep Power
    567


    Default

    Some things to check:

    Make sure your product has a weight. This could be causing the problem. Next, make sure you have a display order setup in the admin. This also causes problems sometimes... Those are the 2 easiest possible solutions. Try them and see if that fixes it...
    Michael Sasek
    osCMax Developer


    osCmax installation service - Have our professionals install osCmax on your server - same day service!
    osCmax 2.0 User Manual - the must have beginners guide to osCmax v2.0

    Stay Up To Date with everything osCMax:
    Free osCMax Newsletters - Security notices, New Releases, osCMax News
    osCMax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  5. #5
    Active Member
    Join Date
    May 2003
    Posts
    185
    Rep Power
    9


    Default

    Thanks Msasek that did the trick, I was missing the weight information for the item I was testing. One question I do have, for some items I don't know the shipping weight of the item, what would be the best way to handle this?

  6. #6
    Member
    Join Date
    Dec 2002
    Posts
    92
    Rep Power
    0


    Default

    I always put in a weight of 1.

  7. #7
    Active Member
    Join Date
    May 2003
    Posts
    185
    Rep Power
    9


    Default

    Thanks Doug

Similar Threads

  1. Ready to go live but a couple of hang ups! Please Help!
    By n2advnture in forum osCommerce 2.2 Modification Help
    Replies: 0
    Last Post: 11-19-2005, 09:03 AM
  2. Is OSCMAX v2.0 Ready for Prime Time?
    By driwashsolutions in forum osCmax v2 Installation issues
    Replies: 2
    Last Post: 11-08-2005, 11:03 AM
  3. AABox osC MS2-MAX 1.0 released and ready for download!
    By michael_s in forum osCmax v1.7 Discussion
    Replies: 61
    Last Post: 09-06-2003, 01:22 PM

Bookmarks

Posting Permissions

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