Guest Posted July 15, 2003 Share Posted July 15, 2003 Whenever I hit the "Purchase" Icon in my checkout process, I get this error: Warning: Cannot modify header information - headers already sent by (output started at /home/xhelderx/public_html/osCommerce/includes/languages/english.php:329) in /home/xhelderx/public_html/osCommerce/includes/functions/general.php on line 23. Can anyone please help me? I dont know what is going wrong. Thanks! -Helder[/code] Link to comment Share on other sites More sharing options...
thiswaynow Posted July 15, 2003 Share Posted July 15, 2003 Sounds to me like some white-space has crept before the opening <?php tag in /includes/languages/english.php Link to comment Share on other sites More sharing options...
Guest Posted July 15, 2003 Share Posted July 15, 2003 I tried that, no dice. Any other suggestions? Link to comment Share on other sites More sharing options...
thiswaynow Posted July 15, 2003 Share Posted July 15, 2003 Have you modified osCommerce/includes/languages/english.php? I didn't read the error carefully enough. It is actually saying that output is being started at line 329 of english.php. What you added something there? Link to comment Share on other sites More sharing options...
Guest Posted July 15, 2003 Share Posted July 15, 2003 I had someone try to add the MoPics contribution, but I'm not sure if that's the problem.. Any thoughts? Link to comment Share on other sites More sharing options...
thiswaynow Posted July 15, 2003 Share Posted July 15, 2003 Could you post the code block around line 329? Link to comment Share on other sites More sharing options...
Guest Posted July 15, 2003 Share Posted July 15, 2003 Here it is: define('IMAGE_BUTTON_ADD_ADDRESS', 'Add Address'); define('IMAGE_BUTTON_ADDRESS_BOOK', 'Address Book'); define('IMAGE_BUTTON_BACK', 'Back'); define('IMAGE_BUTTON_CHANGE_ADDRESS', 'Change Address'); define('IMAGE_BUTTON_CHECKOUT', 'Checkout'); define('IMAGE_BUTTON_CONFIRM_ORDER', 'Confirm Order'); define('IMAGE_BUTTON_CONTINUE', 'Continue'); define('IMAGE_BUTTON_CONTINUE_SHOPPING', 'Continue Shopping'); define('IMAGE_BUTTON_DELETE', 'Delete'); define('IMAGE_BUTTON_EDIT_ACCOUNT', 'Edit Account'); define('IMAGE_BUTTON_HISTORY', 'Order History'); define('IMAGE_BUTTON_LOGIN', 'Sign In'); define('IMAGE_BUTTON_IN_CART', 'In Cart'); define('IMAGE_BUTTON_NOTIFICATIONS', 'Notifications'); define('IMAGE_BUTTON_QUICK_FIND', 'Quick Find'); define('IMAGE_BUTTON_REMOVE_NOTIFICATIONS', 'Remove Notifications'); define('IMAGE_BUTTON_REVIEWS', 'Reviews'); define('IMAGE_BUTTON_SEARCH', 'Search'); define('IMAGE_BUTTON_SHIPPING_OPTIONS', 'Shipping Options'); define('IMAGE_BUTTON_TELL_A_FRIEND', 'Tell a Friend'); define('IMAGE_BUTTON_UPDATE', 'Update'); define('IMAGE_BUTTON_UPDATE_CART', 'Update Cart'); define('IMAGE_BUTTON_WRITE_REVIEW', 'Write Review'); define('ICON_ARROW_RIGHT', 'more'); define('ICON_CART', 'In Cart'); define('ICON_WARNING', 'Warning'); define('TEXT_GREETING_PERSONAL', 'Welcome back <span class="greetUser">%s!</span> Would you like to see which <a href="%s"><u>new products</u></a> are available to purchase?'); define('TEXT_GREETING_PERSONAL_RELOGON', '<small>If you are not %s, please <a href="%s"><u>log yourself in</u></a> with your account information.</small>'); define('TEXT_GREETING_GUEST', ' Welcome <span class="greetUser">Guest</span>, To Auto Outfitters. Would you like to <a href="%s"><u>log yourself in</u></a>? or would you prefer to create <a href="%s"><u>create an account</u></a> with us'); define('TEXT_SORT_PRODUCTS', 'Sort products '); define('TEXT_DESCENDINGLY', 'descendingly'); define('TEXT_ASCENDINGLY', 'ascendingly'); define('TEXT_BY', ' by '); define('TEXT_REVIEW_BY', 'by %s'); define('TEXT_REVIEW_WORD_COUNT', '%s words'); define('TEXT_REVIEW_RATING', 'Rating: %s [%s]'); define('TEXT_REVIEW_DATE_ADDED', 'Date Added: %s'); define('TEXT_NO_REVIEWS', 'There are currently no product reviews.'); define('TEXT_NO_NEW_PRODUCTS', 'There are currently no products.'); define('TEXT_UNKNOWN_TAX_RATE', 'Unknown tax rate'); define('ERROR_TEP_MAIL', '<font face="Verdana, Arial" size="2" color="#ff0000"><b><small>TEP ERROR:</small> Cannot send the email through the specified SMTP server. Please check your php.ini setting and correct the SMTP server if necessary.</b></font>'); define('WARNING_INSTALL_DIRECTORY_EXISTS', 'Warning: Installation directory exists at: ' . dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/install. Please remove this directory for security reasons.'); define('WARNING_CONFIG_FILE_WRITEABLE', 'Warning: I am able to write to the configuration file: ' . dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php. This is a potential security risk - please set the right user permissions on this file.'); define('WARNING_SESSION_DIRECTORY_NON_EXISTENT', 'Warning: The sessions directory does not exist: ' . tep_session_save_path() . '. Sessions will not work until this directory is created.'); define('WARNING_SESSION_DIRECTORY_NOT_WRITEABLE', 'Warning: I am not able to write to the sessions directory: ' . tep_session_save_path() . '. Sessions will not work until the right user permissions are set.'); define('WARNING_SESSION_AUTO_START', 'Warning: session.auto_start is enabled - please disable this php feature in php.ini and restart the web server.'); define('WARNING_DOWNLOAD_DIRECTORY_NON_EXISTENT', 'Warning: The downloadable products directory does not exist: ' . DIR_FS_DOWNLOAD . '. Downloadable products will not work until this directory is valid.'); define('TEXT_CCVAL_ERROR_INVALID_DATE', 'The expiry date entered for the credit card is invalid.<br>Please check the date and try again.'); define('TEXT_CCVAL_ERROR_INVALID_NUMBER', 'The credit card number entered is invalid.<br>Please check the number and try again.'); define('TEXT_CCVAL_ERROR_UNKNOWN_CARD', 'The first four digits of the number entered are: %s<br>If that number is correct, we do not accept that type of credit card.<br>If it is wrong, please try again.'); /* The following copyright announcement can only be appropriately modified or removed if the layout of the site theme has been modified to distinguish itself from the default osCommerce-copyrighted theme. For more information please read the following Frequently Asked Questions entry on the osCommerce support site: http://www.oscommerce.com/community.php/faq,26/q,50 Please leave this comment intact together with the following copyright announcement. */ define('FOOTER_TEXT_BODY', '<BR><img src="images/bottom.jpg">'); // BOF: WebMakers.com Added: CENTER SHOP CONTROL require(DIR_WS_LANGUAGES . $language . '/' . 'center_shop.php'); // EOF: WebMakers.com Added: CENTER SHOP CONTROL ?> Link to comment Share on other sites More sharing options...
thiswaynow Posted July 15, 2003 Share Posted July 15, 2003 Without the line numbers, it's hard to be sure, but is line 329 the closing php tag? If so, is there any whitespace after the closing tag? If not, I can't see anything that would cause output in the content you posted. Link to comment Share on other sites More sharing options...
Guest Posted July 15, 2003 Share Posted July 15, 2003 I dont see any closing PHP tags around those lines.. is there anything else it could be? Here's the Error one more time: Warning: Cannot modify header information - headers already sent by (output started at /home/xhelderx/public_html/osCommerce/includes/functions/general.php:1154) in /home/xhelderx/public_html/osCommerce/includes/functions/general.php on line 23 Link to comment Share on other sites More sharing options...
Guest Posted July 15, 2003 Share Posted July 15, 2003 Can anyone help me with this? I'm lost and need to fix this error to go Live with my site. Thanks. Link to comment Share on other sites More sharing options...
Guest Posted July 15, 2003 Share Posted July 15, 2003 I would reload all the files that are giving the error. It seems that they have characters that php does not recognize in them. This usually occurs as a result of a faulty editor. For example, the one in the admin section. Good luck, Matt Link to comment Share on other sites More sharing options...
Guest Posted July 15, 2003 Share Posted July 15, 2003 Wont I lose anything though if I reload all those files? -Helder Link to comment Share on other sites More sharing options...
Guest Posted July 15, 2003 Share Posted July 15, 2003 You would lose any changes you made to those files. However, I haven't heard of a better way of getting rid of the (invisible) incorrect characters. If you are on a unix server with shell access, you could rename the files, copy the replacements in, run diff on both, and then apply the changes to the new files with an acceptable text editor. If you can't use diff, there are several MS Windows programs that can do the same thing, but I don't know of a good, free one. Of pay products, I believe that the Beyond Compare that people recommend is capable of doing this. Good luck, Matt Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.