Jump to content
Sign in to follow this  
FrostyFred

Notice: Constant HTTP_SERVER already defined

Recommended Posts

Notice: Constant HTTP_SERVER already defined in /hsphere/local/home/xxxxxxxx/xxxxxxxx.com/commerce/catalog/admin4AlBe/includes/configure.php on line 13
Notice: Constant HTTP_CATALOG_SERVER already defined in /hsphere/local/home/xxxxxxxx/xxxxxxxx.com/commerce/catalog/admin4AlBe/includes/configure.php on line 14
Notice: Constant HTTPS_CATALOG_SERVER already defined in /hsphere/local/home/xxxxxxxx/xxxxxxxx.com/commerce/catalog/admin4AlBe/includes/configure.php on line 15
Notice: Constant ENABLE_SSL_CATALOG already defined in /hsphere/local/home/xxxxxxxx/xxxxxxxx.com/commerce/catalog/admin4AlBe/includes/configure.php on line 16
Notice: Constant DIR_FS_DOCUMENT_ROOT already defined in /hsphere/local/home/xxxxxxxx/xxxxxxxx.com/commerce/catalog/admin4AlBe/includes/configure.php on line 17

 

If you get the above error change application top

 

// Set the local configuration parameters - mainly for developers
 if (file_exists('includes/local/configure.php')) include('includes/local/configure.php');
// include server parameters
 require('includes/configure.php');

 

to

 

// Set the local configuration parameters - mainly for developers
 if (file_exists('includes/local/configure.php')) {
  include('includes/local/configure.php');
 } else {
// include server parameters
require('includes/configure.php');
 }

 

Now I need to find out why I get

 

Notice: Undefined index: id in /hsphere/local/home/xxx/commerce/catalog/includes/application_top.php on line 373
Notice: Undefined index: qty in /hsphere/local/home/xxx/commerce/catalog/includes/classes/shopping_cart.php on line 142
Warning: Cannot modify header information - headers already sent by (output started at /hsphere/local/home/xxx/commerce/catalog/includes/application_top.php:373) in /hsphere/local/home/commerce/catalog/includes/functions/general.php on line 29

 

When clicking on the buy button in product_info

 

commerce/catalog/product_info.php?cPath=23&products_id=180&action=add_product

 

Have I lost some indexes on my data?

 

TIA

 

FF

Share this post


Link to post
Share on other sites

No, it appears the code in application top on line 373 was out of date and line 98 in classes/shopping cart needs to be commented out.

 

HTH

 

FF

Edited by FrostyFred

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×