Guest Posted January 5, 2005 Posted January 5, 2005 When i go to the shopping cart or my account i get an error about some php thing (but i didnt edit the file in question) The error shows up @ http://aeonline.us/shop/account.php Any Idea's?
julianpuje Posted January 5, 2005 Posted January 5, 2005 I have just logged in and got the error. What are the lines in the error pointing to? english.php:338 and general.php on line 29 Warning: Cannot modify header information - headers already sent by (output started at /home/morgan/public_html/shop/includes/languages/english.php:338) in /home/morgan/public_html/shop/includes/functions/general.php on line 29 They are referencing something that you have probably changed, not necessarily in those files. Julian A little knowledge is dangerous, I SHOULD KNOW. If Life Begins At 40, What ends????
Guest Posted January 5, 2005 Posted January 5, 2005 All i changed was: New products this month to Star Buys, Removed the demo text, Removed the Manufacturers box and changed to default currency from USD to GBP.
Guest Posted January 5, 2005 Posted January 5, 2005 All i changed was: New products this month to Star Buys, Removed the demo text, Removed the Manufacturers box and changed to default currency from USD to GBP. <{POST_SNAPBACK}> Post your code around line 29 of general.php
♥Vger Posted January 5, 2005 Posted January 5, 2005 Go to the Knowledge Base, take a look at Common Problems, especially the one that begins: Cannot modify header information - headers already sent Vger
Guest Posted January 5, 2005 Posted January 5, 2005 contents of general.php: Removed as this isnt related to the problem and wastes bandwidth
ozcsys Posted January 5, 2005 Posted January 5, 2005 Did you read the solution that Vger pointed you to? If not go to the knowledge base and it will explain how to fix the problem. There is really no reason to post your complete file as it does not help any. How are you editing your files? What program? The Knowledge Base is a wonderful thing. Do you have a problem? Have you checked out Common Problems? There are many very useful osC Contributions Are you having trouble with a installed contribution? Have you checked out the support thread found Here BACKUP BACKUP BACKUP!!! You did backup, right??
♥akmac Posted January 5, 2005 Posted January 5, 2005 I had a similar problem. It was the result of the failure of my web host to upgrade zend optimizer after upgrading to php 4.3.10. So that's another possibility. Quidquid latine dictum sit, profundum viditur.
Guest Posted January 5, 2005 Posted January 5, 2005 i dont know much about php, i can edit the bits that were made for editing but with the actual code, im rubbish,
Guest Posted January 5, 2005 Posted January 5, 2005 I just made another shop to try again and i got exactly the same error :S
♥Vger Posted January 5, 2005 Posted January 5, 2005 The error you are getting relates to the header being called again, as in general.php on line 29 header('Location: ' . $url); I did not get this error until I tried to add something to the shopping cart, so it's my guess that your configure.php files are not set up correctly. Post them here, minus the db user name and password. Vger
Mark Evans Posted January 6, 2005 Posted January 6, 2005 As vger mentioned at the start a solution can be found in the KB. http://www.oscommerce.info/kb/osCommerce/Common_Problems/15 Mark Evans osCommerce Monkey & Lead Guitarist for "Sparky + the Monkeys" (Album on sale in all good record shops) --------------------------------------- Software is like sex: It's better when it's free. (Linus Torvalds)
Guest Posted January 6, 2005 Posted January 6, 2005 <?php /* osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ // Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) define('HTTP_SERVER', 'http://aeonline.us'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'https://aeonline.us'); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', false); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'aeonline.us'); define('HTTPS_COOKIE_DOMAIN', 'aeonline.us'); define('HTTP_COOKIE_PATH', '/shop/'); define('HTTPS_COOKIE_PATH', '/shop/'); define('DIR_WS_HTTP_CATALOG', '/shop/'); define('DIR_WS_HTTPS_CATALOG', '/shop/'); define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); define('DIR_WS_INCLUDES', 'includes/'); define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/'); define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/'); define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/'); define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/'); define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/'); define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/'); define('DIR_FS_CATALOG', '/home/morgan/public_html/shop/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); // define our database connection define('DB_SERVER', 'localhost'); // eg, localhost - should not be NULL for productive servers define('DB_SERVER_USERNAME', 'xxx_xxx'); define('DB_SERVER_PASSWORD', 'bo{xxxxxx'); define('DB_DATABASE', 'xxx_xxx'); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' ?>
♥Vger Posted January 6, 2005 Posted January 6, 2005 What's not to understand. It means that you can have 'white space' or blank lines or spaces either before the opening php tag or after the closing php tag. We're not there at your website, and you will have to look for yourself. With regard to your configure.php file - do you actually have a full ssl certificate installed on your website? If not then remove all of the ssl settings from it. Also use www. in your domain name and in your cookie domain name. Vger sparky, yes but i dont understand any of that <{POST_SNAPBACK}>
Guest Posted January 6, 2005 Posted January 6, 2005 I removed the bit about the ssl and now if i click it trys to find http://www.aeonline.us/shop/HTTPS_SERVER/shop/account.php Why is it doing this?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.