Jump to content

John_from_Oz

Members
  • Content count

    6
  • Joined

  • Last visited

Profile Information

  • Real Name
    John Carmichael
  • Gender
    Male
  • Location
    Sydney
  1. I've discovered the problem! I misunderstood the instructions in README.txt that say "(Earlier versions than oscommerce-2.2rc2a)" I thought that meant I didn't need to make those changes on my version.. When I put them in it all worked fine. Maybe the moderator can remove the earlier (useless) post?
  2. Are you refering to the post at top of page 2 by xispita10 ? Sep 17 2008, 09:21 PM I used the latest contribution, so it wasn't needed- the relevant section in my admin/categories.php reads: if ($categories_image = new upload('categories_image', $dir_to_make)) { $db_image_file_name = tep_output_generated_category_path_fs($categories_id) . $categories_image->filename; tep_db_query("update " . TABLE_CATEGORIES . " set categories_image = '" . tep_db_input($db_image_file_name) . "' where categories_id = '" . (int)$categories_id . "'"); } This appears to be the area of the program where the extra path is being added at the front Seems to me we need to skip this altogether if nothing to upload?
  3. No, what is it? Where do I find it? - Just did a search for it, and came up with this post only...
  4. Having problems when I go back and edit a product: Is this just me, or are others having problems? Works correctly the first time- ie when put in as a new product eg: image uploaded from my computer goes to correct location: test_category/testcat_one/skin_1.jpg If I go back and edit that product, say the description, and leave image input box blank then preview is fine, but 'update' adds the folder names to its beginning (again) test_category/testcat_one/test_category/testcat_one/skin_1.jpg If I upload the image again from my computer it goes back to correct location If I write 'none' as the image filename everything updates OK There is a test for a null field in the update function, but somehow when the field is passed to the update function, it has something in it.. the test is here: case 'updateproduct' if (isset($HTTP_POST_VARS['products_image']) && tep_not_null($HTTP_POST_VARS['products_image']) && ($HTTP_POST_VARS['products_image'] != 'none'))
×