Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

PHP Problem


Guest

Recommended Posts

Posted

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????

Posted

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.

Posted
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 your code around line 29 of general.php

Posted

Go to the Knowledge Base, take a look at Common Problems, especially the one that begins:

 

Cannot modify header information - headers already sent

 

Vger

Posted

contents of general.php:

 

Removed as this isnt related to the problem and wastes bandwidth

Posted

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??

Posted

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.

Posted

i dont know much about php, i can edit the bits that were made for editing but with the actual code, im rubbish,

Posted

I just made another shop to try again and i got exactly the same error :S

Posted

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

Posted

sparky, yes but i dont understand any of that

Posted

<?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'

?>

Posted

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

Posted

tried removing spaces and its done nothing.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...