As you can see there's a double slash before "edit?".
Looking into the code I found out that the Assignment object seems broken. Instead of having an Assignment like this one <plone.app.portlets.portlets.navigation.Assignment object at 0xdd76398>
mine looks like this <Assignment at >
and their __name__ variable is an empty string, which leads to the wrong generated edit url.
Sorry, I wasn't clear about the error I get. I don't have errors in the log, I just get the 404 error page when I try to edit the portlet.
I assume that I'm getting the error because of the wrong url.
The NotFound exception type is ignored in my error_log. Do you mean "remove it from the ignored list"?
This is the error I get after removing NotFound from the ignore list:
Traceback (innermost last):
Module ZPublisher.Publish, line 49, in publish
Module ZPublisher.BaseRequest, line 518, in traverse
Module ZPublisher.HTTPResponse, line 718, in notFoundError
NotFound:
Site Error
An error was encountered while publishing this resource.
I can't upgrade Plone right now, because it's on a production server. I can probably try to replicate it locally, In that case I can try the update.
I tried accessing it after removing one slash, but I still get the 404 error.
The wrong url comes from this line of code:
And the cause is the empty __name__ field of the Assignment object.
EDIT: by "I can try to replicate it locally" I mean that I have a local copy which db is very old (~3 years) and don't have this issue in my local plone site, so I'll need to download the production db to try and replicate the error locally.