Aide - Recherche - Membres - Calendrier
Version complète : [RESOLU] Images produits qui ne s'affichent pas
Forum osCommerce-fr > Les Bases d'OsCommerce MS2 > Installation de la boutique
mfoucault
Lu a tous,

J'essais de rajouter un nouveau produit dans Osc, seulement l'image du produit ne s'affiche pas ... pourquoi ?

Pour les produits de base de Osc le chemin des image est par exemple:
http://localhost/boutique/catalog/images/dvd/die_hard_3.gif

Mais pour le produit que j'ai rajouté, le chemein est uniquement:
http://localhost/boutique/catalog/images/

Y a pas la suite, pourtant dans l'admin j'ai choisi une image avec le chemin complet...

Et je me retrouve avec ce message d'erreur:

Erreur : le chemin cible n'existe pas.
Erreur Erreur : Le répertoire d'images n'existe pas : /home/user//boutique/catalog/images/

Pourquoi j'ai 2 // qui se suivent ?

Je cherche et toujours pas de solution...
blush.gif
fkba67
essaye en passant par ton admin :
dans catalague arrow.gif catalogues produits...

Insere le comme ça pour voir si tun as le meme probleme!!
fissiaux

Les 2 //, c'est une erreur dans le configure.php de l'admin.

Affiche nous le code sans les élements d'accès au serveur MYSQL.
xaglo
oui les deux slashes // viennent d'une erreur de configure, mais cela ne devrait pas gêner le fonctionnement, l'erreur est probablement ailleurs: si "/home/user/" est le define de ton ROOT, c'est surement cette ligne qui est fausse. Essaie de connaître ton root, on te dira qui tu es wink.gif
mfoucault
lu a vous,

Le chemin de mon ROOT, si j'ai bien compris la question, est :

c:\web\easyphp1-7\www\realpath.php

CODE
Données du serveur : http://127.0.0.1

PHP version : 4.3.3
====== $_SERVER[COMSPEC] = C:\WINDOWS\system32\cmd.exe
====== $_SERVER[DOCUMENT_ROOT] = c:/web/easyphp1-7/www
====== $_SERVER[HTTP_ACCEPT] = text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
====== $_SERVER[HTTP_ACCEPT_CHARSET] = ISO-8859-1,utf-8;q=0.7,*;q=0.7
====== $_SERVER[HTTP_ACCEPT_ENCODING] = gzip,deflate
====== $_SERVER[HTTP_ACCEPT_LANGUAGE] = fr-fr,en-us;q=0.7,en;q=0.3
====== $_SERVER[HTTP_CACHE_CONTROL] = max-age=0
====== $_SERVER[HTTP_CONNECTION] = keep-alive
====== $_SERVER[HTTP_HOST] = 127.0.0.1
====== $_SERVER[HTTP_KEEP_ALIVE] = 300
====== $_SERVER[HTTP_USER_AGENT] = Mozilla/5.0 (Windows; U; Windows NT 5.1; fr-FR; rv:1.7.5) Gecko/20041108 Firefox/1.0
====== $_SERVER[PATH] = C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\UltraEdit;C:\Program Files\Executive Software\Diskeeper\;C:\Program Files\Fichiers communs\GTK\2.0\bin;C:\Program Files\ATI Technologies\ATI Control Panel
====== $_SERVER[REMOTE_ADDR] = 127.0.0.1
====== $_SERVER[REMOTE_PORT] = 3086
====== $_SERVER[SCRIPT_FILENAME] = c:/web/easyphp1-7/www/realpath.php
====== $_SERVER[SERVER_ADDR] = 127.0.0.1
====== $_SERVER[SERVER_ADMIN] = admin@localhost
====== $_SERVER[SERVER_NAME] = 127.0.0.1
====== $_SERVER[SERVER_PORT] = 80
====== $_SERVER[SERVER_SIGNATURE] =
Apache/1.3.27 Server at 127.0.0.1 Port 80

====== $_SERVER[SERVER_SOFTWARE] = Apache/1.3.27 (Win32) PHP/4.3.3
====== $_SERVER[SystemRoot] = C:\WINDOWS
====== $_SERVER[WINDIR] = C:\WINDOWS
====== $_SERVER[GATEWAY_INTERFACE] = CGI/1.1
====== $_SERVER[SERVER_PROTOCOL] = HTTP/1.1
====== $_SERVER[REQUEST_METHOD] = GET
====== $_SERVER[QUERY_STRING] =
====== $_SERVER[REQUEST_URI] = /realpath.php
====== $_SERVER[SCRIPT_NAME] = /realpath.php
====== $_SERVER[PATH_TRANSLATED] = c:/web/easyphp1-7/www/realpath.php
====== $_SERVER[PHP_SELF] = /realpath.php

$PHP_SELF = /realpath.php

$HTTP_HOST = 127.0.0.1


Pour les fichiers configure.php
Catalog/include/configure.php
CODE
<?php
/*
 $Id: configure.php,v 1.14 2003/07/09 01:15:48 hpdl Exp $

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 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://localhost'); // 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', '');
 define('HTTPS_COOKIE_DOMAIN', '');
 define('HTTP_COOKIE_PATH', '/boutique/catalog/');
 define('HTTPS_COOKIE_PATH', '');
 define('DIR_WS_HTTP_CATALOG', '/boutique/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', '/home/user/boutique/catalog/');
 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 empty for productive servers
 define('DB_SERVER_USERNAME', 'root');
 define('DB_SERVER_PASSWORD', '');
 define('DB_DATABASE', 'mabase');
 define('USE_PCONNECT', 'false'); // use persistent connections?
 define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'
?>


/catalogue/Admin/include/configure.php
CODE
<?php
/*
 $Id: configure.php,v 1.14 2003/02/21 16:55:24 dgw_ Exp $

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2002 osCommerce

 Released under the GNU General Public License
*/

// define our webserver variables
// FS = Filesystem (physical)
// WS = Webserver (virtual)
 define('HTTP_SERVER', 'http://localhost'); // eg, http://localhost or - https://localhost should not be NULL 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', '/home/user/'); // where your pages are located on the server. if $DOCUMENT_ROOT doesnt suit you, replace with your local path. (eg, /usr/local/apache/htdocs)
 define('DIR_WS_ADMIN', '/boutique/catalog/admin/');
 define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN);
 define('DIR_WS_CATALOG', '/boutique/catalog/');
 define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG);
 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');
 define('DB_SERVER_USERNAME', 'root');
 define('DB_SERVER_PASSWORD', '');
 define('DB_DATABASE', 'mabase');
 define('USE_PCONNECT', 'false');
 define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'
?>


Arrrrff, Si ca peux vous être utile, pour savoir qui je suis ... confused.gif
Si dans toutes ces tartines de code vous voyez d'autre trucs louches profitez en... wink.gif
ViVe le CoDe, ViVe le CoDe, ViVe le CoDe ...
xaglo
Essaye de remplacer par ça
Catalog/include/configure.php
CODE
<?php
/*
 $Id: configure.php,v 1.14 2003/07/09 01:15:48 hpdl Exp $

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 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://localhost'); // 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', 'localhost');
 define('HTTPS_COOKIE_DOMAIN', '');
 define('HTTP_COOKIE_PATH', '/boutique/catalog/');
 define('HTTPS_COOKIE_PATH', '');
 define('DIR_WS_HTTP_CATALOG', '/boutique/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', 'c:/web/easyphp1-7/www/boutique/catalog/');
 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 empty for productive servers
 define('DB_SERVER_USERNAME', 'root');
 define('DB_SERVER_PASSWORD', '');
 define('DB_DATABASE', 'mabase');
 define('USE_PCONNECT', 'false'); // use persistent connections?
 define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'
?>


/catalogue/Admin/include/configure.php
CODE
<?php
/*
 $Id: configure.php,v 1.14 2003/02/21 16:55:24 dgw_ Exp $

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2002 osCommerce

 Released under the GNU General Public License
*/

// define our webserver variables
// FS = Filesystem (physical)
// WS = Webserver (virtual)
 define('HTTP_SERVER', 'http://localhost'); // eg, http://localhost or - https://localhost should not be NULL 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:/web/easyphp1-7/www'); // where your pages are located on the server. if $DOCUMENT_ROOT doesnt suit you, replace with your local path. (eg, /usr/local/apache/htdocs)
 define('DIR_WS_ADMIN', '/boutique/catalog/admin/');
 define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN);
 define('DIR_WS_CATALOG', '/boutique/catalog/');
 define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG);
 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');
 define('DB_SERVER_USERNAME', 'root');
 define('DB_SERVER_PASSWORD', '');
 define('DB_DATABASE', 'mabase');
 define('USE_PCONNECT', 'false');
 define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'
?>

fissiaux
Une configuration UNIX sur une machine windows : ca le fait pas !!!
mfoucault
IMPECABLE, Merci les gars vous avez assuré,

Je vais continuer mes investigations sur le forum pour ne pas que mes images soient toute déformées...

merci biggrin.gif
Ceci est une version "bas débit" de notre forum. Pour voir la version complète avec plus d'informations, la mise en page et les images, veuillez cliquer ici.
Invision Power Board © 2001-2024 Invision Power Services, Inc.