Magento 2 giving error no category save. Error is - No such entity with id = xx - magento2

In Magento 2 We are getting error on category save. Error is - No such entity with id = xx please any one can help to resolve the same ?
Thank you.
click to see screen shot for error

It happened to me also, in version 2.2.0.
In my case the problem was the url_rewrite table.
Check the "metadata" column of the url_rewrite table for non-existent categories and delete those rows.
The problem are the url_rewrite rows of products belonging to that category.

Assuming your site is in Developer Mode, you can change it to Production Mode and clear/flush cache and then switch back to Developer Mode.
I had this issue in the front end, as i recently moved the datatbase from one server to another. I have managed to solve by this way.

Please make indexing and recheck. If you are using any third party extension then this issue also occur. If you have deleted any category from any store then this may also happen. Please check all things hope your issue will resolve.

Go to admin Marketing -> URL Rewrite
And search in the target path with specific id category or product where you have an issue.
Then delete the entry where entity with id = xx.
Go back your category or product page and try to save again.

Related

Unknown category Moodle

Sometimes for any reason, the moodle shows the message unknown category and you can't do anything. Does somebody know how to fix this problem?
To fix this problem, I entered the database and deleted the last record on the table mdl_course, because it was the last action that I did. After this, I entered to moodle site normally. Don't forget to remember what was the last action you did.

Tablespace error upon creating table

I'm facing this weird issue.
When I want to create a table, it says Tablespace-xxx exist.
But when I want to remove that Tablespace-xxx, it says it is not exist.
I'm using mysql in google cloud, second generation.
Thanks in advance!
Very interesting. Please email the name of your project and database instance to cloud-sql#google.com (along with a link to this post) and we can follow up there.

Magento 2.1 internal server error for specific category when full page cache enable

I had FPC (full page cache) enabled
There is one category containing subcategories and 900+ products. it was working fine but suddenly it started pushing 500 internal server error.
i have not add any new product or any major change. so now when i disable the FPC, the category start working and when i re enable FPC, again internal server error 500.
i have already applied couple of solutions but no success.
tried with removing cache at all, re indexing, crons, have check the htaccess also all things are fine, i had try with creating new category but when i assigned the same block to load on that category, again same issue started.
log is saying that
The problem is in the function getIdentities()
can anyone help with this? thanks in advance.
i resolved this issue.
Here is the solution:
When we will have a bulk products in a category we can either enable Varnish cache or Full page cache. we cannot enable both simultaneously, otherwise it will through internal server error if both caches will be enabled.

Magento 2 save configurable product issue

Magento 2.1 admin:-
When updating configurable product I am getting the following issue.
You don't have permission to access /admin/catalog/product/validate/id/3316/type/configurable/store/0/set/4/key/11c0d458dc11fc072a5fdef7f5fb3fe633c433bbf0342175b987f10588ee2b2c/
Thanks in advance.
I have fixed that.
Just checked the server log and found that it was mod_security extension is enable.
That should be disabled.
Okay, How many products are you going to create or assign while creating configurable product.
I have experienced the same issue and I have sorted out with creating a configurable product with few product assignment.
I hope this may help you
Thanks
We were getting the following error -:
=======
403 Forbidden
You don't have permission to access /admin/catalog/product/validate/id/966/type/simple/store/0/set/9/
=====
Emailed hosting provider and they did change the setting at the server level. As soon as they changed the setting the error went straight away.
If they can’t change the setting on the server for some reason then look for product data. You will find malicious code, in our case it was iFrame code snippet which was causing that trouble.

unable to find DLFileEntryLocalServiceUtil.getFileEntryByTitle() in liferay 6.1

Is there any direct api to fetch a file entry by title with given folder id.
I have tried DynamicQueryFactoryUtil, apart from this is there anything to fetch DLFileEntries by title.
I believe DLFileEntryLocalServiceUtil.getFileEntryByTitle() is not there anymore in Liferay 6.1
In Liferay 6.1.0, I can see there is
com.liferay.portlet.documentlibrary.service.DLFileEntryLocalServiceUtil.getFileEntryByName(groupId, folderId, name), as I get from lib/ext/portal-service.jar
You can also see the official documentation here
I think you start by making sure you have the correct libraries imported
EDIT:
I guess that the parent folder and groupID are needed as more than 2 DLFileEntries can have the same title/name. If you need exactly 1 result, and giving only 1 attribute, you can use getDLFileEntry(long fileEntryId). If this doesn't help either, you should tell us some more on what you want to do , and what information you have available (except the title of course)
Liferay has a strange compatibility policy.
Seems like they renamed the getFileEntry to getFileEntryByName and getFileEntryByTitle to getFileEntry. The old and new getFileEntry both share the same singature, but the parameter name is different. :-(