skip to Main Content

I’ve been Import products via CSV Including Images.

All product data & images import sucessfully – the images were copied into their relevant directories, and show up in the back-end.

However, they don’t appear on the front end, which just shows a single placeholder image. I’ve tried clearing the cache, reindexing, deploying static files, all to no avail.

Has anybody else had this problem and found a solution?

Edit: I tried adding a product manually through the admin interface, and it did appear on the product page.

2

Answers


  1. Have you tried giving the media folder the right permission?

    Login or Signup to reply.
  2. Edit the validateURLScheme() function of vendormagentoframeworkImageAdapterGd2.php as below:

    private function validateURLScheme(string $filename) : bool
    {
            $allowed_schemes = ['ftp', 'ftps', 'http', 'https'];
            $url = parse_url($filename);
            if ($url && isset($url['scheme']) && !in_array($url['scheme'], $allowed_schemes) && !file_exists($filename)) {
                return false;
            }
    
            return true;
    }
    

    This worked for me !

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search