Annet Posted March 27, 2007 Share Posted March 27, 2007 When we try to acces the Images Folder at the File Manager area in the Admin, we got this Fatal error: Warning: dir(/home/megacard/public_html/shopping/catalog//images) [function.dir]: failed to open dir: Permission denied in /home/megacard/public_html/shopping/catalog/admin/file_manager.php on line 178 Fatal error: Call to a member function on a non-object in /home/megacard/public_html/shopping/catalog/admin/file_manager.php on line 179 File Manager /home/megacard/public_html/shopping/catalog//images Can someone tell me how can I fix it? Thanks so much... :blush: Quote Link to comment Share on other sites More sharing options...
learning4 Posted November 18, 2007 Share Posted November 18, 2007 having the same problem...anyone get the fix on this? when I'm in File Manager of Admin Panel it displays .../httpdocs/catalog/ then when i click on a folder, such as Admin, it displays..../httpdocs/catalog//admin i'm playing with the / catalog / admin / includes / configure.php file but nothing works so far. the public pages are displaying correctly... :blink: Quote Link to comment Share on other sites More sharing options...
♥geoffreywalton Posted November 18, 2007 Share Posted November 18, 2007 Have you added "/" infront of some of the paths in catalog/admin/includes/configure.php? define('DIR_FS_ADMIN', 'C:/Program Files/xampp/htdocs/dev/catalog/admin/'); // absolute pate required define('DIR_WS_CATALOG', '/dev/catalog/'); // absolute path required define('DIR_FS_CATALOG', 'C:/Program Files/xampp/htdocs/dev/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/'); Finally did you change the access rights as described on the front page of the vanilla site and on page 9 of the documentation? Quote Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile Virus Threat Scanner My Contributions Basic install answers. Click here for Contributions / Add Ons. UK your site. Site Move. Basic design info. For links mentioned in old answers that are no longer here follow this link Useful Threads. If this post was useful, click the Like This button over there ======>>>>>. Link to comment Share on other sites More sharing options...
learning4 Posted November 19, 2007 Share Posted November 19, 2007 Have you added "/" infront of some of the paths in catalog/admin/includes/configure.php? OOOHHHHH yeah. Lots of that. Started making notes within the file prior to saving so I could remember what I've done. Then I would update the notes to say what I'd done, didn't work, what it did and leave it in the notes. I went to the original installation for osCommerce 2.2 ms and looked at the code. I cut and pasted from there and here is what I ended up with: // define('DIR_FS_DOCUMENT_ROOT', '/home/httpd/vhosts/sitename.com/httpdocs/catalog/'); // where the pages are located on the server *** PUT LINE BELOW FROM ORIGINAL CONFIG FOR INSTALL define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT); // where your pages are located on the server. if $DOCUMENT_ROOT doesnt suit you, replace with your local path. (eg, /usr/local/apache/htdocs) I don't know why my prior confugure.php file didn't work, but it worked before I installed STS v4.5.8 Finally did you change the access rights as described on the front page of the vanilla site and on page 9 of the documentation? Oh, yeah. I'm learning osCommerce 2.2 ms inside and out. Think I reinstalled it about 4 or 5 times. Primarily due to Contributions that I've attempted to install. Waiting for resolution to STS v4.5.8 and issue regarding unable to set as default templates (posted elsewhere). Guess I'll try Easy Populate today. That's one way to learn... Quote Link to comment Share on other sites More sharing options...
Guest Posted November 19, 2007 Share Posted November 19, 2007 When we try to acces the Images Folder at the File Manager area in the Admin, we got this Fatal error: Warning: dir(/home/megacard/public_html/shopping/catalog//images) [function.dir]: failed to open dir: Permission denied in /home/megacard/public_html/shopping/catalog/admin/file_manager.php on line 178 Fatal error: Call to a member function on a non-object in /home/megacard/public_html/shopping/catalog/admin/file_manager.php on line 179 File Manager /home/megacard/public_html/shopping/catalog//images Can someone tell me how can I fix it? Thanks so much... :blush: You may have to adjust the permissions on your images directory. Quote Link to comment Share on other sites More sharing options...
learning4 Posted November 19, 2007 Share Posted November 19, 2007 oK. It was suggested that I move to Rs version. Just loaded and have same problem. I installed with the Auto Installer after uploading the Catalog to the Root. All should have been installed automatically...I thought. In the File Admin, I get this: /home/httpd/88/web-design-commerce.com/httpdocs//admin Can anyone tell me what's up? Here is the code for my /admin/includes/configure.php <?php define('HTTP_SERVER', 'http://web-design-commerce.com'); define('HTTP_CATALOG_SERVER', 'http://web-design-commerce.com'); define('HTTPS_CATALOG_SERVER', 'http://web-design-commerce.com'); define('ENABLE_SSL_CATALOG', 'false'); define('DIR_FS_DOCUMENT_ROOT', '/home/httpd/88/web-design-commerce.com/httpdocs/'); // define('DIR_WS_ADMIN', 'admin/'); /** DIDN'T WORK // define('DIR_WS_ADMIN', '/admin');** DIDN'T WORK define('DIR_WS_ADMIN', '/admin/'); define('DIR_FS_ADMIN', '/home/httpd/88/web-design-commerce.com/httpdocs/admin/'); define('DIR_WS_CATALOG', '/'); // define('DIR_WS_CATALOG', '');** DIDN'T WORK define('DIR_FS_CATALOG', '/home/httpd/88/web-design-commerce.com/httpdocs/'); 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('DB_SERVER', '88'); define('DB_SERVER_USERNAME', '88'); define('DB_SERVER_PASSWORD', '88'); define('DB_DATABASE', '88'); define('USE_PCONNECT', 'false'); define('STORE_SESSIONS', 'mysql'); ?> and I haven't even tried to play with this file for httpdocs/includes/configure.php <?php define('HTTP_SERVER', 'http://web-design-commerce.com'); define('HTTPS_SERVER', 'http://web-design-commerce.com'); define('ENABLE_SSL', false); define('HTTP_COOKIE_DOMAIN', 'web-design-commerce.com'); define('HTTPS_COOKIE_DOMAIN', 'web-design-commerce.com'); 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', '/home/httpd/88/web-design-commerce.com/httpdocs/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); same problem, different install & software updated to 2.2 rc1...exhausted Quote Link to comment Share on other sites More sharing options...
Guest Posted November 19, 2007 Share Posted November 19, 2007 http://www.oscommerce.com/forums/index.php?sho...=193738&hl= explains the configure.php files. Hope you change the database info, it may end up on google. Quote Link to comment Share on other sites More sharing options...
learning4 Posted November 19, 2007 Share Posted November 19, 2007 (edited) http://www.oscommerce.com/forums/index.php?sho...=193738&hl=explains the configure.php files. Hope you change the database info, it may end up on google. i see. obviously there is something wrong with the install. You'll see in my code I did try some changes...maybe i'll just forget the File Manager in the Admin Panel. no, i changed the database and other items too Edited November 19, 2007 by learning4 Quote Link to comment Share on other sites More sharing options...
Guest Posted November 19, 2007 Share Posted November 19, 2007 i see. obviously there is something wrong with the install. You'll see in my code I did try some changes...maybe i'll just forget the File Manager in the Admin Panel. no, i changed the database and other items too OK, do not use the file manager to make edits. Download the files to your pc, make the changes in a pure text editor (there are free ones on the web), then upload your changed files. Use an ftp program such as filezilla, cuteftp, or any other free one. Quote Link to comment Share on other sites More sharing options...
learning4 Posted November 20, 2007 Share Posted November 20, 2007 maybe this will help someone, help me...and a lot of other people. When I look at the source for the File Manager page this is what I see: <td class="dataTableContent" onclick="document.location.href='http://web-design-commerce.com/admin/file_manager.php?goto=/home/httpd/88/web-design-commerce.com/httpdocs//_borders'"><a href="http://web-design-commerce.com/admin/file_manager.php?goto=/home/httpd/88/web-design-commerce.com/httpdocs//_borders"><img src="images/icons/current_folder.gif" border="0" alt="Current Folder" title=" Current Folder "></a> _borders</td> any suggestions? I know others have problems with this..it would be great to get this resolved, especially since this is a clean install. :-" Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.