How to add 404 page in OJS 3.0.2

I have recently upgraded from OJS 2.4.5 to 3.0.2

I want to add a 404 page, right now it throws a fatal error

I am using Bootstrap child theme

404 Not Found

Stack Trace:

File: /var/www/vhosts/sitename/lib/pkp/classes/core/ line 203
Function: Dispatcher->handle404()

File: /var/www/vhosts/sitename/lib/pkp/classes/core/ line 134
Function: PKPPageRouter->route(Object(Request))

File: /var/www/vhosts/sitename/lib/pkp/classes/core/ line 227
Function: Dispatcher->dispatch(Object(Request))

File: /var/www/vhosts/sitename/index.php line 68
Function: PKPApplication->execute()

I don’t think that OJS has a way of adding custom 404 pages, but you could do it with htaccess/php.ini settings:

I guess you could even use the static page plugin to create an error page and set that as the custom 404 page in the htaccess settings.

@ LaxMariappan, you can try this simple solution.