Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Admin Problem...


Guest

Recommended Posts

This is not a function I use, but after having a mooch around my admin just now, I got the following error:

 

Warning: dir(/home/delicatacauk/public_html/catalog/): failed to open dir: No such file or directory in /home/delicatacauk/public_html/admin/file_manager.php on line 178

 

Fatal error: Call to a member function on a non-object in /home/delicatacauk/public_html/admin/file_manager.php on line 179

 

This is the code from admin/file_manager.php lines 173 - 200:

      </form></tr>
<?php
 } else {
   $showuser = (function_exists('posix_getpwuid') ? true : false);
   $contents = array();
line 178 ->    $dir = dir($current_path);
line 179 ->    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();
       }

       $contents[] = array('name' => $file,
                           'is_dir' => is_dir($current_path . '/' . $file),
                           'last_modified' => strftime(DATE_TIME_FORMAT, filemtime($current_path . '/' . $file)),
                           'size' => $file_size,
                           'permissions' => $permissions,
                           'user' => $user['name'],
                           'group' => $group['name']);
     }
   }

 

Anyone any ideas?

 

I have added the following contrbs in the last 24 hours:

Sitemap

Recover Lost Carts

 

TIA

 

BTW, it works alright on my local test server.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...