Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

problem with include_once, rates and images in admin area...


MichuM.

Recommended Posts

see below and HELP ME plz :) !!

 

http://provector.pl/~shop/admin/default.php - errors ( admin area )

http://provector.pl/~shop/catalog/default.php - works fine ( catalog area )

 

something is wrong with admin area, but what ?

 

my aplication top from adminarea:

// define our webserver variables

// FS = Filesystem (physical)

// WS = Webserver (virtual)

define('HTTP_SERVER', 'http://provector.pl/~shop');

define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT . '/home/shop/public_html/'); // where your pages are located on the server.. needed to delete images.. (eg, /usr/local/apache/htdocs)

define('DIR_FS_LOGS', '/usr/local/apache/logs/');

define('DIR_WS_ADMIN', '/admin/');

define('DIR_WS_CATALOG', 'catalog/');

define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG);

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

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_PAYMENT_MODULES', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG . 'includes/modules/payment/');

define('DIR_FS_SHIPPING_MODULES', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG . 'includes/modules/shipping/')

 

where are images from adminarea ? config looks fine but they didnt't display :( ( also bad link on them: http://provector.pl/admin/images/header_exchange.gif ( without ~shop )

see here:

http://provector.pl/~shop/admin/default.php - errors ( admin area )

Link to comment
Share on other sites

Try this:

 

my aplication top from adminarea:

// define our webserver variables

// FS = Filesystem (physical)

// WS = Webserver (virtual)

define('HTTP_SERVER', 'http://provector.pl/~shop');

define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT); // where your pages are located on the server.. needed to delete images.. (eg, /usr/local/apache/htdocs)

define('DIR_FS_LOGS', '/usr/local/apache/logs/');

define('DIR_WS_ADMIN', '/admin/');

define('DIR_WS_CATALOG', '/catalog/');

define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG);

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

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/');

Link to comment
Share on other sites

thx You solve my problem with images, but I still have some strange warnings on http://provector.pl/~shop/admin/default.php

 

Warning: Unable to access /usr/local/idea/public_html/catalog/includes/data/rates.php in /home/shop/public_html/admin/includes/include_once.php on line 4



Warning: Failed opening '/usr/local/idea/public_html/catalog/includes/data/rates.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/shop/public_html/admin/includes/include_once.php on line 4

 

Links are good, there is rates.php etc on the server at those catalogs...FAILED OPENING why ? everthing seems to works ok....how may I solve this ?

Link to comment
Share on other sites

Try adding this:

 

define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'data/');

 

I'm fishing with this as I noticed you are using V2.1. You really ought to try using 2.2. Much more functionality and it is stable, despite the impression you might get from it being listed as in "development". I've been using 2.2 for months and I know others have been using it longer.

 

HTH,

 

Mark

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...