View Issue Details

IDProjectCategoryView StatusLast Update
0003002OXID eShop (all versions)2. ----- eShop backend (admin) -----public2012-11-16 09:56
ReporterArunas Assigned To 
PrioritynormalSeveritytweakReproducibilityalways
Status resolvedResolutionno change required 
Product Version4.5.0 revision 34568 
Summary0003002: When adding a picture to a Promotion Banner while the directory 'out/pictures/promo' is deleted / renamed you get an error
DescriptionWhen you upload a picture in the admin -> promotions -> banner, while the directory 'out/pictures/promo' is missing or renamed, you get a PHP Warning "Warning: copy(/var/www/testshops/out/pictures/promo/graphicupload_promo.png): failed to open stream: No such file or directory in /var/www/testshops/core/oxutilsfile.php on line 454".

It tries to move the file from TMP to the directory and fails (because the directory doesnt exist), but still shows that you can remove the picture (tho its not even uploaded)

It should have somekind of System health check if the filesystem is not full,
or create the needed directory before the upload
Steps To Reproduce1) Rename out/pictures/promo
2) Go to admin -> promotions
3) Create a new promotion with the type of "BANNER"
4) Browse to and image and press save
TagsNo tags attached.
ThemeBoth
BrowserAll
PHP Versionany
Database Versionany

Activities

Linas Kukulskis

2012-11-16 09:56

reporter   ~0007874

in picture management in shop all base picture storage folder must exist (by default they are created in setup); if you drop some of them or want to change, handle it yourself. only for generated images folder are generated on demand.