Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

anyone get this contrib to work? seems like its missing a config file or somethign doesnt even let you config where the thumb folder is?

 

http://www.oscommerce.com/community/contri.../mirror,sunsite

 

 

I get these errors after install. I dont know php so I am not sure what they mean other than the contrib cant find the director either.

 

Warning: opendir(DIR_FS_CATALOGDIR_WS_IMAGES): failed to open dir: No such file or directory in /home/warrior007/www/mall/catalog/admin/thumbs.php on line 56

Warning: readdir(): supplied argument is not a valid Directory resource in /home/warrior007/www/mall/catalog/admin/thumbs.php on line 58

Warning: closedir(): supplied argument is not a valid Directory resource in /home/warrior007/www/mall/catalog/admin/thumbs.php on line 67

Warning: opendir(DIR_FS_CATALOGDIR_WS_IMAGES): failed to open dir: No such file or directory in /home/warrior007/www/mall/catalog/admin/thumbs.php on line 70

Warning: readdir(): supplied argument is not a valid Directory resource in /home/warrior007/www/mall/catalog/admin/thumbs.php on line 72

Warning: closedir(): supplied argument is not a valid Directory resource in /home/warrior007/www/mall/catalog/admin/thumbs.php on line 91

 

here is some of those lines starting at around 56..

//You can change this to a different folder if you want to upload all your files to a temp folder 
//such as images/temp and than create an images/temp/thumbnails folder. You can always move the 
//images back to the main folder when you are done.
define('RESIZE_ORIGINAL_PATH', DIR_FS_CATALOG . DIR_WS_IMAGES);//'images/');
define('RESIZE_NEW_PATH', DIR_FS_CATALOG . DIR_WS_IMAGES);//'images/thumbnails/');
define('PIC_FOLDER', '');

$rep2 = RESIZE_NEW_PATH;
$small_dir = opendir($rep2);
$small_list = "";
while ($s = readdir($small_dir)) {
  if(is_file($rep2.$s)) {
 if ($small_list == '') {
      $small_list .= $s;
 } else {
      $small_list .= ', ' . $s;
 }
  }
} 
closedir($small_dir);

$rep = RESIZE_ORIGINAL_PATH;
$big_dir = opendir($rep);

 

I changed it to /images/ and images/thumbs didnt seem to make a differnence since its commented out.. I can find no other configurations in the other files..

 

can someone point out whats wrong or?? if there is a better contrib. my pics are too large

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...