Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Errors in Tools>Files


myty

Recommended Posts

I am recieving the following error when I try to access the files via Tools:

 

Warning: OpenDir: Permission denied (errno 13) in /home2/blah/blah/blah/admin/admin/file_manager.php on line 187

 

Fatal error: Call to a member function on a non-object in /home2/blah/blah/blah/admin/admin/file_manager.php on line 188

 

File Manager

/home/blah/blah

 

I have access to the files in CPanel, but only to /home. Can someone Please help me with this? Any help would be GREATLY appreciated.

 

Again, thank you for any help.

 

Newb Power!

Link to comment
Share on other sites

ok, so either this is a ridiculously stupid question I have or it's something that nobody wants to help with. again, i am asking for any help at all with this.

Link to comment
Share on other sites

Can you post lines 187 - 188 from the file (the whole section). And any other lines that may be appropriate.

 

Peter

Link to comment
Share on other sites

So a stab in the dark here;

while ($file = $dir->read()) {

Your permissions are wrong for the directory, which one I don't know.

 

if ( ($file != '.') && ($file != 'CVS') && ( ($file != '..') || ($current_path != DIR_FS_DOCUMENT_ROOT) ) ) {

 

my guess it has something to do with the admin/admin in your listing for the error, a configure.php errror.

 

But like I said, just a stab in the dark I know I will be corrected by someone much better than me.

Link to comment
Share on other sites

yes, i can post that, will be a few hours before I can. Im at my 'real job' at the moment. What Im really confused about is why its giving me an error from /home2 yet the file manager in in /home. i looked at the lines referred to in the error and theres nothing there about /home2. I guess what I really want to know at this point is why would it refer to /home2 at all ??? Is this something that will be able to be fixed from CPanel which allows me to view /home files?

 

Will post lines later, when Im home to do so. Theres nothing worse than taking over something for someone else and when you try to fix all the problems that they created, you get bit**ed at...

 

 

thanks so much for your response. code to follow.

Link to comment
Share on other sites

heres lines 184 thru 198

 

$showuser = (function_exists('posix_getpwuid') ? true : false);

$contents = array();

$dir = dir($current_path);

while ($file = $dir->read()) {

if ( ($file != '.') && ($file != 'CVS') && ( ($file != '..') || ($current_path != DIR_FS_DOCUMENT_ROOT) ) ) {

$file_size = number_format(filesize($current_path . '/' . $file)) . ' bytes';

 

$permissions = tep_get_file_permissions(fileperms($current_path . '/' . $file));

if ($showuser) {

$user = @posix_getpwuid(fileowner($current_path . '/' . $file));

$group = @posix_getgrgid(filegroup($current_path . '/' . $file));

} else {

$user = $group = array();

 

 

im lost.

Link to comment
Share on other sites

Take a look at the settings in your admin/includes/configure.php, at about lines 18 and below.

 

define('DIR_FS_DOCUMENT_ROOT' ...

 

should be set for the absolute path to whatever directory you want to make the document root in the admin tool.

 

Note that there is no similar define in the catalog/includes/configure.php.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...