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 ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| Hi everybody, I'm not sure if this is the area to post this, so I am sorry if it is not, 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 Warning: Cannot add header information - headers already sent by (output started at c:\program files\easyphp\www\catalog\includes\application_top .php:204 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 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 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. |
| Sponsored Links | ||
| ||
|
#2
| |||
| |||
| 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
| |||
| |||
| 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
| ||||
| ||||
| 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
|
|
#5
| |||
| |||
| Thanks Msasek that did the trick, |
|
#6
| |||
| |||
| I always put in a weight of 1. |
|
#7
| |||
| |||
| Thanks Doug |
| Sponsored Links | ||
| ||
| |
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Ready to go live but a couple of hang ups! Please Help! | n2advnture | osCommerce 2.2 Modification Help | 0 | 11-19-2005 08:03 AM |
| Is OSCMAX v2.0 Ready for Prime Time? | driwashsolutions | osCMax v2 Installation issues | 2 | 11-08-2005 10:03 AM |
| AABox osC MS2-MAX 1.0 released and ready for download! | michael_s | osCMax v1.7 Discussion | 61 | 09-06-2003 12:22 PM |