Adding Custom Error Templates to OJS - 404, 403 etc

We are using a old version of OJS, and whenever we have a 400, 403, 404 or even a 500 level error, we don’t see any template saying what’s happening.

So, we’ve created templates for to display these errors, but can’t find any documentation on how add them in.

Any help would be greatly appreciated.

Hi @joshmantis,

Some (if not all) of these errors will result in an error page generated by your web server, not OJS or PHP, and you’ll probably have to configure a custom error page there. See e.g. this:

Alec Smecher
Public Knowledge Project Team

Thanks for the help. We’re currently trying to implement that solution. I’ll post back with our results

@asmecher The HealthSciences theme includes an error page. I’m wondering if it’s possible to use the above method for linking to a custom template like that. Of course we can just load in an HTML file but it would be nice to have it dynamically updated if possible with the templating engine.