cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 2.3.4 product shows a blank page after migration process

SOLVED

Re: Magento 2.3.4 product shows a blank page after migration process

Hi @radiantweb ,

 

You mean to say that on category pages, the product image is loading but on product page image is not loading. Right. ?

 

In that case, please try to run below command on the server to resize the images for the cache.

 

bin/magento catalog:images:resize

 Thanks!

 

Problem Solved! Accept as Solution!

Re: Magento 2.3.4 product shows a blank page after migration process

Yes my question is that.

 

I ran command you given but I received errors like given screenshot

https://nimb.ws/JEUHgD

Re: Magento 2.3.4 product shows a blank page after migration process

HI @radiantweb ,

This means that file which they tried to process is not a valid file. You need to delete all the invalid files from your media folder as well as from your database.

 

After that you will be able to run resize command successfully.

 

Thanks!

Re: Magento 2.3.4 product shows a blank page after migration process

I fixed for the invalid images files and ran command. And successfully ran. But issue is still there that I am not getting image on product page.

 

Even I found that "catalog_product_entity_media_gallery_value_to_entity" table is missing some entity id references for showing images. After adding value_id and entity_id reference i am able to see image on product page.

 

Any solution on this ?

Re: Magento 2.3.4 product shows a blank page after migration process

I can't find a way to paginate my entities in magento 2. I have this code :
    public function getPosts()
    {
        if (!$this->hasData('posts')) {
            $posts = $this->_postCollectionFactory->create()->addOrder(
                PostInterface::CREATED,
                PostCollection::SORT_ORDER_DESC
            );

            $this->setData('posts', $posts);
        }
        return $this->getData('posts');
    }

in magento 1.x i had custom quick block which had "page/html_pager" type but I can't find in magento 2 documentation a way to paginate my entities ...quickpayportal I fetch them from my block controller (code above).