CSEpe Posted September 25, 2014 Share Posted September 25, 2014 We hebben de site 1 op 1 overgezet naar een VPS. Alles gaat goed behalve het plaatsen van foto's.De afbeeldingen hebben 664 en dirs 775 gelijk aan de site op de shared server.Het bestand AdminImagesController 777 gegeven. Geen effect.Alle files en dirs hebben rw op user en groepniveau.Warning: unlink(/home/gebruiker/domains/xxzaak.nl/public_html/img/p/1/9/5/195-home_default.jpg): Permission denied in /home/gebruiker/domains/xxzaak.nl/public_html/controllers/admin/AdminImagesController.php on line 465Regel 465:// delete product images using new filesystem. if ($product) { $productsImages = Image::getAllImages(); foreach ($productsImages as $image) { $imageObj = new Image($image['id_image']); $imageObj->id_product = $image['id_product']; if (file_exists($dir.$imageObj->getImgFolder())) { $toDel = scandir($dir.$imageObj->getImgFolder()); foreach ($toDel as $d) foreach ($type as $imageType) if (preg_match('/^[0-9]+\-'.$imageType['name'].'\.jpg$/', $d) || (count($type) > 1 && preg_match('/^[0-9]+\-[_a-zA-Z0-9-]*\.jpg$/', $d))) if (file_exists($dir.$imageObj->getImgFolder().$d)) unlink($dir.$imageObj->getImgFolder().$d); } } } Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now