lanesharon Posted July 30, 2003 Posted July 30, 2003 I chose to put my CATLOG and ADMIN parallel in my public_html folder. In other words, ADMIN is not a subdirectory of CATALOG. It was easier to secure ADMIN on my server that way and easier for me to separate ADMIN and CATALOG in my mind. Now I am running into a problem. As I load up categories/products and images, I can see the images in my store, but not in my ADMIN system. I would imagine that it has something to do with the configure.php in my ADMIN, but I have no idea how to change it. Could someone help me? Thanks for any help you can give me. Here is my config from ADMIN: define('HTTP_SERVER', 'http://www.mysite.com/' define('HTTP_CATALOG_SERVER', 'http://www.mysite.com/'); define('HTTPS_CATALOG_SERVER', 'https://www.mysite.com/'); define('ENABLE_SSL_CATALOG', 'false'); define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT); define('DIR_WS_ADMIN', 'admin/'); define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_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_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/');
Rumble Posted July 30, 2003 Posted July 30, 2003 Try replacing $DOCUMENT_ROOT with your local path Reddy to Rumble Thank you osCommerce and all who Contribute to her!
lanesharon Posted July 30, 2003 Author Posted July 30, 2003 Thanks, but that didn't work. I tried to change docroots based on my servers settings, but it made no difference. Same problems. Maybe it would help if I gave you and ADMIN error message. With the ADMIN configure.php file as I wrote in the original post, this is one of the things that happens when I am in ADMIN: Go to localization-->languages-->english-->click display details button Here is the error message that occurs: Warning: dir(/home/me/public_htmlcatalog/includes/languages/english): failed to open dir: No such file or directory in /home/laneshar/public_html/admin/define_language.php on line 152 Thanks for any help you can give, Sharon
Guest Posted July 30, 2003 Posted July 30, 2003 Warning: dir(/home/me/public_htmlcatalog Notice anything wrong with the above?
lanesharon Posted July 30, 2003 Author Posted July 30, 2003 Of course, it should be public_html/catalog And maybe I am dense, but if I have the / at the end of the server names in the first two config entries, then why is it not putting it in automatically. Please look at the original entry, and tell me what line to change and how. I know this may seem like a stupid request to you, but whatever the problem is, it is going right over my head. Thank you, Sharon
Guest Posted July 30, 2003 Posted July 30, 2003 This is the line you need to be concerned with: define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT); What do you have it set to now that you've put the actual path in?
lanesharon Posted July 30, 2003 Author Posted July 30, 2003 I changed the document root statement to be: define('DIR_FS_DOCUMENT_ROOT', '/home/me/public_html/'); Now I am not getting any errors, but I am also not getting any images in ADMIN. I am pretty sure that the ADMIN thinks that the catalog directory is embedded in the admin directory because when I click on the empy image, it tells me that the path is: http://www.mysite.com/admin/catalog/includ...images/icon.gif But I am not sure where this is set. As I stated in the beginning, I placed the two directories parallel on my server, not embedded. So, in my public_html directory, I have the ADMIN and the CATALOG directory, side-by-side. I am still stuck. Thanks for trying to help. Sharon
Rumble Posted July 30, 2003 Posted July 30, 2003 Change these first lines define('HTTP_SERVER', 'http://www.mysite.com/' define('HTTP_CATALOG_SERVER', 'http://www.mysite.com/'); define('HTTPS_CATALOG_SERVER', 'https://www.mysite.com/'); define('ENABLE_SSL_CATALOG', 'false'); define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT); define('DIR_WS_ADMIN', 'admin/'); define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN); define('DIR_WS_CATALOG', 'catalog/'); to define('HTTP_SERVER', 'http://www.mysite.com' define('HTTP_CATALOG_SERVER', 'http://www.mysite.com'); define('HTTPS_CATALOG_SERVER', 'https://www.mysite.com'); define('ENABLE_SSL_CATALOG', 'false'); define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT); define('DIR_WS_ADMIN', '/admin/'); define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN); define('DIR_WS_CATALOG', '/catalog/'); Reddy to Rumble Thank you osCommerce and all who Contribute to her!
lanesharon Posted July 31, 2003 Author Posted July 31, 2003 That worked, could you explain to me why. I can't figure it out at all. But, thanks so much for the fix. Take Care. Sharon
Recommended Posts
Archived
This topic is now archived and is closed to further replies.