1

I have created nearly 10 new attributes under product attributes. Its added to attribute set as well.

But now, when I update the product information, the data is not getting saved. Instead, after the product shown successfully saved message, the field is kept empty.

As in the image attached below, the diamond weight is a new attribute. And value 12 is given. But not getting saved.

enter image description here

The following shows my php-info()

enter image description here

9
  • Hi please check you max_input_vars limit in php.ini this may be issue if is less then it does not save data try to increase it. Oct 3, 2018 at 10:30
  • @CharulTyagi Increased to 10,000 and still the issue is the same. Oct 3, 2018 at 10:41
  • so when are trying to save then what error you are seeing any thing getting wrong when submitting data. Oct 3, 2018 at 10:48
  • @CharulTyagi, everything seems to be right and no errors are shown. But the value is not saved. Oct 3, 2018 at 10:54
  • have to checked by phpinfo function that max_input_vars you know sometimes it does not effect. Oct 3, 2018 at 11:15

5 Answers 5

14

What I did to get this working was (Magento 2.3.2):

  1. Mark the product attribute as required setting "Values required" to "YES"
  2. Go to a product, add the attribute, select a value and save
  3. If you need the product attribute as optional go back to the attribute edit page and set Values required to "NO"
1

Try to run those commends from root :-

php bin/magento indexer:reindex php bin/magento cache:flush.

5
  • When I did this, the whole server is now showing error. Both for frond end as well as admin panel. Please help. Oct 3, 2018 at 10:57
  • When I tried refreshing the cache, its showing An error occurred while refreshing cache Oct 3, 2018 at 10:59
  • can you please share the error ?
    – vikaskimt
    Oct 3, 2018 at 11:13
  • Error is fixed. But this does not worked. Oct 6, 2018 at 6:45
  • Thank bro. Attributes have worked
    – River
    Jan 10, 2021 at 16:06
1

First of all confirm that the mode should be developer.

Then,

  1. clear var folder
  2. clear generated except .htaccess
  3. run php bin/magento setup:upgrade
  4. run php bin/magento indexer:reindex
  5. run php bin/magento setup:static-content:deploy -f
  6. run php bin/magento cache:flush

Please share the screenshot of error that is occurring.

If this solution is helpful please accept.

13
  • I have made changes to many design pages. Will the "run php bin/magento setup:static-content:deploy -f" comment replace all those changes? I had an issue like this before. That is why I am asking this. Oct 4, 2018 at 10:52
  • Running static content deploy generates files in pub/static folder. Yes all design related changes resides in this folder, so running this command will refresh your css and other design related changes Oct 4, 2018 at 11:03
  • Are you still facing any error ? If so you should share screenshot, so that we may know what is the error. Oct 4, 2018 at 11:04
  • I am not able to run the page after running the above comments. Its showing 500 error. Oct 5, 2018 at 10:43
  • 1
    500 issue can be related to permission also, please check once the permission Oct 5, 2018 at 11:48
0

I was having the same problem and I moved the Custom Attribute to the "General" group and the values started showing up.

-1

Try these commands.

  1. php bin/magento indexer:reindex

  2. rm -rf var/di/* var/generation/* var/cache/* var/log/* var/page_cache/* var/session/* var/view_preprocessed/* pub/static/*

  3. php bin/magento setup:upgrade

  4. php bin/magento setup:static-content:deploy -f;

2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.