I installed magento 2.4.0 on my Linux server from godaddy. I’m unable to add the products to it. It is showing the Error is The stock item was unable to be saved. Please try again. Can any one help me from this please
If you are using Elasticsearch instead of Mysql. then please check once that elasticsearch is working or not.
sudo service elasticsearch status // for checking the Running Status
sudo service elasticsearch start // for Start
sudo service elasticsearch restart // for Restart
7
Answers
Please change all indexer as Update by Schedule mode in
system-> index management
. It’s working for me.Go to Magento 2.4.2 installation location:
Flush cache
Chek Indexer Status
Reset Indexer
Reindex Indexer
Chek Indexer Status
Chek indexer Info
Finally Flush Cache
Restart
sudo reboot
Login to admin and check
I have fixed it. There was an entry missing in cataloginventory_stock
try to run this query
If you are using Elasticsearch instead of Mysql. then please check once that elasticsearch is working or not.
I’ve Migrated the magento 2.3.x into 2.4.x. I faced the same issues.
I’ve resolved this issue the following way.
INSERT INTO cataloginventory_stock (stock_id, website_id, stock_name) VALUES (‘1’, ‘1’, ‘default’);
php bin/magento indexer:reindex
php bin/magento cache:flush
But still i am facing the same issue, then I did the below steps.
mydb
;mydb
;Thank you!
Pilathraj
Make sure you have Elastic search service active status ?
I had the same issue, I just had to execute: