anvc / scalar

Born-digital, open source, media-rich scholarly publishing that’s as easy as blogging.
Other
232 stars 73 forks source link

Instance crashes after 5 relationship links #218

Open atmcgrath opened 1 year ago

atmcgrath commented 1 year ago

Hi there! I've been noticing a bug on a few different Scalar instances I manage running the most recent version of Scalar: Relationships for each page are maxed out at 5. After that, when you try to save the page you get a 403 Forbidden error:

You don't have permission to access this resource. Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.

Indeed, the error log doesn't get updated, and usually one or two of the previously existing relationships get deleted.

I'm not sure when this behavior (with saving tag and path relationships) started but I think it was sometime over the summer. These are all instances on Reclaim (Domain of One's Own), so this could be related to the Scalar installatron errors observed there (a database connection can't be established, so the installatron backup feature won't work) because I think they began around the same time.

rmiessle commented 1 year ago

This may be related to issues 200 and 201? I don't think it ever got a good explanation for what was causing it, but weirdly I've never been able to replicate it, despite using Reclaim DOOO and having WP instances on the same domain.

atmcgrath commented 1 year ago

@rmiessle thanks for the suggestion! Two of the instances I was looking at have other CMS on the same domain, one of them doesn't (but did have an old Scalar install that wasn't properly removed).

I'll try to find a domain with nothing else on it to test; I just tried it out on a new subdomain (previous install was a subdirectory), and the same behavior persists but I get a 404 instead of a 403. Incidentally, I tried to use the json import tool on the new install and it tapped out after importing 5 pages (probably a related error). All of this is made much more inconvenient because of the Installatron issue which prevents me from backing up, cloning, or removing any Scalar instance on Domain of One's Own!

atmcgrath commented 1 year ago

Update: we tried this on a fresh install on a domain with no other applications and still got the same error.

craigdietrich commented 1 year ago

Hi all,

This is really baffling. We haven't received reports of this kind of thing (Reclaim or not), so it's curious that you're encountering it on multiple installs.

What version of Scalar are you installing (ie, what is the version number in the pulldown in the cPanel)?

Is there an install we can test out ourselves? Maybe the new one that is still having the problem? You can send it to me at craigdietrich at gmail.

Thanks, Craig

atmcgrath commented 1 year ago

Thanks, Craig! The version is 2.6.6. I'm emailing you info for the test site.