[OJS 3.2.1.4] Published and unpublished stay loading too long

Hi @diegomejia07,

Thanks for sharing that. Regarding the error in the first image: could you also share a screenshot with the network tab that show the request that’s failing was and possibly the response it’s returning? It’s probably one of the XHR requests.

The second error makes sense, because if the article has already been recorded as published, the system won’t let you publish it again, so once we have the underlying problem sorted, this should go away.

As for the speed, this is most likely because of the search index update that happens at the end of the publish step. Unfortunately, this is a known issue, especially with large installations. This post is on slow file uploads, but it’s related to the search index. Increasing the max_execution_time and other such PHP settings as described in the thread below may help as well. This won’t speed anything up, but it may stop the publish step from failing.

And the relevant section of the publish code can be found here:

If none of this works for you, another place to look might be to see what the actual SQL queries are for the indexing process and which of those are the slowest.

Thanks.

Regards,

Erik
PKP Team