Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Shipping page error


catalin

Recommended Posts

Posted

Hi all,

 

Can anyoane help me with this.

When I try to checkout I get the following error:

 

Warning: shipping(includes/languages/english/modules/shipping/flat.php): failed to open stream: No such file or directory in C:\Program Files\Apache Group\Apache2\test\oscommerce-2.2ms2\catalog\includes\classes\shipping.php on line 36

 

Warning: shipping(includes/languages/english/modules/shipping/flat.php): failed to open stream: No such file or directory in C:\Program Files\Apache Group\Apache2\test\oscommerce-2.2ms2\catalog\includes\classes\shipping.php on line 36

 

Warning: shipping(): Failed opening 'includes/languages/english/modules/shipping/flat.php' for inclusion (include_path='c:\php\includes') in C:\Program Files\Apache Group\Apache2\test\oscommerce-2.2ms2\catalog\includes\classes\shipping.php on line 36

 

Warning: shipping(includes/modules/shipping/flat.php): failed to open stream: No such file or directory in C:\Program Files\Apache Group\Apache2\test\oscommerce-2.2ms2\catalog\includes\classes\shipping.php on line 37

 

Warning: shipping(includes/modules/shipping/flat.php): failed to open stream: No such file or directory in C:\Program Files\Apache Group\Apache2\test\oscommerce-2.2ms2\catalog\includes\classes\shipping.php on line 37

 

Warning: shipping(): Failed opening 'includes/modules/shipping/flat.php' for inclusion (include_path='c:\php\includes') in C:\Program Files\Apache Group\Apache2\test\oscommerce-2.2ms2\catalog\includes\classes\shipping.php on line 37

 

Fatal error: Cannot instantiate non-existent class: flat in C:\Program Files\Apache Group\Apache2\test\oscommerce-2.2ms2\catalog\includes\classes\shipping.php on line 39

 

the shipping file look like this from line 35 to 39:

 

for ($i=0, $n=sizeof($include_modules); $i<$n; $i++) {

include(DIR_WS_LANGUAGES . $language . '/modules/shipping/' . $include_modules[$i]['file']);

include(DIR_WS_MODULES . 'shipping/' . $include_modules[$i]['file']);

 

$GLOBALS[$include_modules[$i]['class']] = new $include_modules[$i]['class'];

 

and my configure.php is:

 

define('HTTP_SERVER', 'http://localhost'); // eg, http://localhost - should not be empty for productive servers

define('HTTP_CATALOG_SERVER', 'http://localhost');

define('HTTPS_CATALOG_SERVER', '');

define('ENABLE_SSL_CATALOG', false); // secure webserver for catalog module

define('DIR_FS_DOCUMENT_ROOT', 'C:/Program Files/Apache Group/Apache2/test/oscommerce-2.2ms2/catalog/'); // where the pages are located on the server

define('DIR_WS_ADMIN', '/oscommerce-2.2ms2/catalog/admin/'); // absolute path required

define('DIR_FS_ADMIN', 'C:/Program Files/Apache Group/Apache2/test/oscommerce-2.2ms2/catalog/admin/'); // absolute pate required

define('DIR_WS_CATALOG', '/oscommerce-2.2ms2/catalog/'); // absolute path required

define('DIR_FS_CATALOG', 'C:/Program Files/Apache Group/Apache2/test/oscommerce-2.2ms2/catalog/'); // absolute path required

define('DIR_WS_IMAGES', 'images/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');

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_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');

define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');

define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');

define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');

define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');

 

I think everything is right and I had double ckecked.

Thanks in advance! :huh:

Posted

Sorry for posting earlier but I had another check in my includes/languages/english/modules and there is no shipping file and of course no flat.php.

 

Doe's anyone know from where I can get them?

Posted
Sorry for posting earlier but I had another check in my includes/languages/english/modules and there is no shipping file and of course no flat.php.

 

Doe's anyone know from where I can get them?

that file comes with the default osc install and contains :

 

<?php

/*

$Id: flat.php,v 1.5 2002/11/19 01:48:08 dgw_ Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2002 osCommerce

 

Released under the GNU General Public License

*/

 

define('MODULE_SHIPPING_FLAT_TEXT_TITLE', 'Flat Rate');

define('MODULE_SHIPPING_FLAT_TEXT_DESCRIPTION', 'Flat Rate');

define('MODULE_SHIPPING_FLAT_TEXT_WAY', 'Best Way');

?>

Treasurer MFC

Posted

Hi Boxtel,

 

I've added the file there, but I still get the same error so now I am back to my first post. Can you please have a look there if you have time or any other idea is welcomed. :huh:

 

Thanks in advance!

Posted
somebody :huh: please????!!!

 

you did look in the catalog section and not the admin section ?

 

I am asking because the configure.php you posted above is the one from admin.

Treasurer MFC

Posted

This is my configure from the admin section

 

 

define('HTTP_SERVER', 'http://localhost'); // eg, http://localhost - should not be empty for productive servers

define('HTTP_CATALOG_SERVER', 'http://localhost');

define('HTTPS_CATALOG_SERVER', '');

define('ENABLE_SSL_CATALOG', false); // secure webserver for catalog module

define('DIR_FS_DOCUMENT_ROOT', 'C:/Program Files/Apache Group/Apache2/test/oscommerce-2.2ms2/catalog/'); // where the pages are located on the server

define('DIR_WS_ADMIN', '/oscommerce-2.2ms2/catalog/admin/'); // absolute path required

define('DIR_FS_ADMIN', 'C:/Program Files/Apache Group/Apache2/test/oscommerce-2.2ms2/catalog/admin/'); // absolute pate required

define('DIR_WS_CATALOG', '/oscommerce-2.2ms2/catalog/'); // absolute path required

define('DIR_FS_CATALOG', 'C:/Program Files/Apache Group/Apache2/test/oscommerce-2.2ms2/catalog/'); // absolute path required

define('DIR_WS_IMAGES', 'images/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');

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_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');

define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');

define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');

define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');

define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');

 

// define our database connection

define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers

define('DB_SERVER_USERNAME', '******');

define('DB_SERVER_PASSWORD', '******');

define('DB_DATABASE', 'osc');

define('USE_PCONNECT', 'true'); // use persisstent connections?

define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

?>

Archived

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

×
×
  • Create New...