| Anonymous | Login | Signup for a new account | 2010-09-02 17:30 BST |
| Main | Bug Tracker | View Issues | Change Log | Roadmap | Docs |
| Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ Issue History ] [ Print ] | ||||||||
| ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||
| 0001098 | [CubeCart v4] Admin Control Panel | major | always | 2008-06-18 03:14 | 2008-08-19 04:22 | ||||
| Reporter | estelle | View Status | public | ||||||
| Assigned To | martin | ||||||||
| Priority | normal | Resolution | fixed | ||||||
| Status | closed | Product Version | 4.2.2 | ||||||
| Summary | 0001098: Image Management - hash comparison some images are not found/displayed | ||||||||
| Description |
I have just spent a long time trying to figure out why some images were not being found and added to the database by the buildDatabase() function. The following code is causing the problem, and it occurs when the same image exists in more than one folder. I don't understand why you would exclude images from being added to the database when they clearly exist in the filesystem and may be used for some of the products. If you want to prevent duplicate images in different folders, wouldn't you add the check to the file upload area instead of the manage images page? ## Hash comparison $checksql = sprintf("SELECT COUNT(`file_id`) as Count FROM %sCubeCart_filemanager WHERE md5hash = %s;", $this->_config['dbprefix'], $record['md5hash']); $checkquery = $this->_db->select($checksql); if ($checkquery[0]['Count'] == 0) { $this->_db->insert($this->_config['dbprefix'].'CubeCart_filemanager', $record); $count++; } |
||||||||
| Additional Information | |||||||||
| Tags | No tags attached. | ||||||||
| Browser | N/A | ||||||||
| Install Method | N/A | ||||||||
| MySQL Version | Unknown | ||||||||
| PHP Version | Unknown | ||||||||
| Server OS | Linux/Unix | ||||||||
| Skin | |||||||||
| Attached Files | |||||||||
|
|
|||||||||
| Copyright © 2000 - 2008 Mantis Group |