Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Error When Accessing File Manager


luddite_jean

Recommended Posts

I've just uploaded my site, and when using File Manager in Admin, I get the following errors:

 

Warning: dir(http://www.fabrics-n-stuff.co.uk) [function.dir]: failed to open dir: not implemented in /home/sites/fabrics-n-stuff.co.uk/public_html/admin/file_manager.php on line 178

 

Fatal error: Call to a member function on a non-object in /home/sites/fabrics-n-stuff.co.uk/public_html/admin/file_manager.php on line 179

 

I know the answer is configure.php, but I can't see it, so I've included my code below. Can anyone see the problem? Everything else works as expected, except I get a warning that the backup directory doesn't exist, even though it does.

 

 

// Define the webserver and path parameters
// * DIR_FS_* = Filesystem directories (local/physical)
// * DIR_WS_* = Webserver directories (virtual/URL)
 define('HTTP_SERVER', 'http://www.fabrics-n-stuff.co.uk'); // eg, [url="http://localhost"]http://localhost[/url] - should not be empty for productive servers
 define('HTTP_CATALOG_SERVER', 'http://www.fabrics-n-stuff.co.uk');
 define('HTTPS_CATALOG_SERVER', '');
 define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module
 define('DIR_FS_DOCUMENT_ROOT', 'http://www.fabrics-n-stuff.co.uk'); // where the pages are located on the server
 define('DIR_WS_ADMIN', '/admin/'); // absolute path required
 define('DIR_FS_ADMIN', 'http://www.fabrics-n-stuff.co.uk/admin/'); // absolute pate required
 define('DIR_WS_CATALOG', '/'); // absolute path required
 define('DIR_FS_CATALOG', 'http://www.fabrics-n-stuff.co.uk/'); // 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/');

Link to comment
Share on other sites

define('DIR_FS_DOCUMENT_ROOT', 'http://www.fabrics-n-stuff.co.uk');

define('DIR_FS_ADMIN', 'http://www.fabrics-n-stuff.co.uk/admin/');

define('DIR_FS_CATALOG', 'http://www.fabrics-n-stuff.co.uk/');

 

Wherever you see DIR_FS it is looking for the full server pathway and not a domain name e.g. /var/www/html/ If you are not sure what this is then contact your hosts.

 

On another matter - you shouldn't be using the File Manager anyway - even with the latest update it is still bugged and should never be used. Download the file to be edited and edit it in a plain text editor like Notepad, Text Pad or Crimson Editor (not Word or Wordpad).

 

Vger

Link to comment
Share on other sites

Thanks, Rhea. Actually, I don't use File Manager, but saw the error when going through the Admin screens. I wanted to fix it in case it affected anything else.

 

Do you know what the warning message re: backup directory is?

Link to comment
Share on other sites

Never mind! I follwed your advice re the difference between FS and WS, and the file manager error and the backup warning messages were cleared.

 

Thanks again.

 

I use Evrsoft First Page to edit HTML and PHP files.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...