Pagina 1 di 1
Errore con Oscommerce del file includes/classes/shipping.php
Inviato: 13/05/2006, 18:51
da sogi_845
Ciao
Ho riscontrato un errore con il mio OsCommerce
Codice: Seleziona tutto
Warning: shipping(DIR_RP_LANGUAGESenglish/modules/shipping/flat.php): failed to open stream: No such file or directory in /web/htdocs/www.miosito.it/home/includes/classes/shipping.php on line 37
Warning: shipping(): Failed opening 'DIR_RP_LANGUAGESenglish/modules/shipping/flat.php' for inclusion (include_path='.:/php/lib/php/') in /web/htdocs/www.miosito.it/home/includes/classes/shipping.php on line 37
Warning: shipping(DIR_RP_MODULESshipping/flat.php): failed to open stream: No such file or directory in /web/htdocs/www.miosito.it/home/includes/classes/shipping.php on line 38
Warning: shipping(): Failed opening 'DIR_RP_MODULESshipping/flat.php' for inclusion (include_path='.:/php/lib/php/') in /web/htdocs/www.miosito.it/home/includes/classes/shipping.php on line 38
Fatal error: Cannot instantiate non-existent class: flat in /web/htdocs/www.miosito.it/home/includes/classes/shipping.php on line 41
il codice dalla linea 36 a 41 di includes/classes/shipping.php è questo:
Codice: Seleziona tutto
// ship2pay start
include(DIR_RP_LANGUAGES . $language . '/modules/shipping/' . $include_modules[$i]['file']);
include(DIR_RP_MODULES . 'shipping/' . $include_modules[$i]['file']);
// ship2pay end
$GLOBALS[$include_modules[$i]['class']] = new $include_modules[$i]['class'];
quale potrebbe essere l'errore?
Sarà qualcosa legato a mysq5 perchè solo in remoto dà errore;
in locale no.
Re: Errore con Oscommerce del file includes/classes/shipping
Inviato: 13/05/2006, 19:56
da marcus
sogi_845 ha scritto:Ciao
Ho riscontrato un errore con il mio OsCommerce
Codice: Seleziona tutto
Warning: shipping(DIR_RP_LANGUAGESenglish/modules/shipping/flat.php): failed to open stream: No such file or directory in /web/htdocs/www.miosito.it/home/includes/classes/shipping.php on line 37
Warning: shipping(): Failed opening 'DIR_RP_LANGUAGESenglish/modules/shipping/flat.php' for inclusion (include_path='.:/php/lib/php/') in /web/htdocs/www.miosito.it/home/includes/classes/shipping.php on line 37
Warning: shipping(DIR_RP_MODULESshipping/flat.php): failed to open stream: No such file or directory in /web/htdocs/www.miosito.it/home/includes/classes/shipping.php on line 38
Warning: shipping(): Failed opening 'DIR_RP_MODULESshipping/flat.php' for inclusion (include_path='.:/php/lib/php/') in /web/htdocs/www.miosito.it/home/includes/classes/shipping.php on line 38
Fatal error: Cannot instantiate non-existent class: flat in /web/htdocs/www.miosito.it/home/includes/classes/shipping.php on line 41
il codice dalla linea 36 a 41 di includes/classes/shipping.php è questo:
Codice: Seleziona tutto
// ship2pay start
include(DIR_RP_LANGUAGES . $language . '/modules/shipping/' . $include_modules[$i]['file']);
include(DIR_RP_MODULES . 'shipping/' . $include_modules[$i]['file']);
// ship2pay end
$GLOBALS[$include_modules[$i]['class']] = new $include_modules[$i]['class'];
quale potrebbe essere l'errore?
Sarà qualcosa legato a mysq5 perchè solo in remoto dà errore;
in locale no.
E' un errore di def delle costanti dei percorsi nei files di configurazione.
Posta i tuoi configure remoti.
Marcus
Inviato: 14/05/2006, 14:46
da sogi_845
questo è il file includes/configure.php
Codice: Seleziona tutto
define('HTTP_SERVER', 'http://www.miosito.it'); // eg, http://localhost - should not be empty for productive servers
define('HTTPS_SERVER', ''); // eg, https://localhost - should not be empty for productive servers
define('ENABLE_SSL', false); // secure webserver for checkout procedure?
define('HTTP_COOKIE_DOMAIN', 'www.miosito.it');
define('HTTPS_COOKIE_DOMAIN', '');
define('HTTP_COOKIE_PATH', '/');
define('HTTPS_COOKIE_PATH', '');
define('DIR_WS_HTTP_CATALOG', '/');
define('DIR_WS_HTTPS_CATALOG', '');
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', '/web/htdocs/www.miosito.it/home/');
define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
quest'altro è il file admin/includes/configure.php
Codice: Seleziona tutto
define('HTTP_SERVER', 'http://www.miosito.it'); // eg, http://localhost - should not be empty for productive servers
define('HTTP_CATALOG_SERVER', 'http://www.miosito.it');
define('HTTPS_CATALOG_SERVER', '');
define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module
define('DIR_FS_DOCUMENT_ROOT', '/web/htdocs/www.miosito.it/home/'); // where the pages are located on the server
define('DIR_WS_ADMIN', '/admin/'); // absolute path required
define('DIR_FS_ADMIN', '/web/htdocs/www.miosito.it/home/admin/'); // absolute pate required
define('DIR_WS_CATALOG', '/'); // absolute path required
define('DIR_FS_CATALOG', '/web/htdocs/www.miosito.it/home/'); // 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/');
Inviato: 14/05/2006, 19:09
da marcus
Queste costanti
da dove vengono fuori?
L'errore è dovuto al fatto che non sono definite.
Marcus
Inviato: 15/05/2006, 19:11
da sogi_845
Ti ringrazio
Col tuo aiuto ho risolto
Inviato: 25/02/2008, 18:42
da spadino70
Ho lo stesso problema di questo vecchio post... come avete risolto?
ciao a tutti