View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update | 
|---|---|---|---|---|---|
| 0005313 | OXID eShop (all versions) | 4.11. Image handling | public | 2013-07-25 10:10 | 2023-11-20 15:32 | 
| Reporter | Bergfreunde | Assigned To | |||
| Priority | normal | Severity | minor | Reproducibility | always | 
| Status | closed | Resolution | fixed | ||
| Product Version | 4.7.4 / 5.0.4 revision 57063 | ||||
| Fixed in Version | 6.0.0-beta.1 | ||||
| Summary | 0005313: oxdynimggenerator::getImagePath() - Not available image will return a 0 kb file in browser | ||||
| Description | If an image is not available in folders like out/pictures/promo/, the method oxdynimggenerator::getImagePath() will return the image with 0 kb. The problem is, that $sImagePath is always set with a path (without filename), so the last if-statement will never be false Change the last If-statement from if ( $sImagePath ) { to if ( is_file($sImagePath) ) { to resolve the problem  | ||||
| Steps To Reproduce | Available image: http://demoshop.oxid-esales.com/professional-edition/out/pictures/promo/surfer_wave_promo.jpg Wrong Image: http://demoshop.oxid-esales.com/professional-edition/out/pictures/promo/surfer_wave_promo_wrong.jpg  | ||||
| Tags | Image Conversion | ||||
| Theme | Not defined | ||||
| Browser | All | ||||
| PHP Version | Not defined | ||||
| Database Version | Not defined | ||||
| 
		 | 
	
	Reminder sent to: Bergfreunde Hi, As we saw, you submitted a complete solution for this issue. If you feel fancy, you'd also have the possibility to contribute your changes directly to our GitHub repository on https://github.com/OXID-eSales/oxideshop_ce/. [^] Please leave a note there with the bug number you fixed so we can close this issue in the bug tracker." Best regards, Jurate  | 
| 
		 | 
	fixed in 6.0.0-beta.1 |