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.
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.
it appear when add large number of options which is the sample products of the configurable product
Sorry I don't understand, also can you help me where to check this and how can I fix
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.
I checked it and found it 8M and increase it to 16M and the error still appear, please advice