cancel
Showing results for 
Search instead for 
Did you mean: 

No data to save error message

Highlighted
New Contributor

No data to save error message

While I am saving products I got this error message "No data to save", sometimes it give this message and saving the product on the same time, which mean the product appear on admin and sometimes it gives me this message and the product not saved correctly for example the sample products saved while the configurable product doesn't, can anyone help me to solve this issue.

Tags (1)
6 REPLIES
Moderator

Re: No data to save error message

Hi @nilecreations,

 

That message came from:

 

\Magento\Catalog\Controller\Adminhtml\Product\Save.php

On Magento 2.1.10 is the line 154.

It seems that, for some reason in some case the $data variable is empty.

Maybe yoy can start there to debug the variable and check what happens when you get the message.

--
If the answer is useful, please give "Kudos" or "Accept as Solution".
New Contributor

Re: No data to save error message

it appear when add large number of options which is the sample products of the configurable product 

Moderator

Re: No data to save error message

Hi @nilecreations,

 

Maybe the post length is greater than the configuration value?

--
If the answer is useful, please give "Kudos" or "Accept as Solution".
Contributor

Re: No data to save error message

Hi @Damian Culotta 

Sorry I don't understand, also can you help me where to check this and how can I fix

Moderator

Re: No data to save error message

Hi @marianaNc,


I guess maybe your PHP configuration for value post_max_size isn't enough.

Maybe you should ask to your hosting if you can increase the value of that variable on your PHP configuration.

--
If the answer is useful, please give "Kudos" or "Accept as Solution".
Contributor

Re: No data to save error message

I checked it and found it 8M and increase it to 16M and the error still appear, please advice