404 when deleting a rejected document

When I delete a file that has been rejected I get 404 message: " /doc/delete.php%3Fmode%3Dtmpdel%26id0%3D89&num_checkboxes=1" not found.
The files delete.php and and rejects.php both exist and can be accessed.
I am using Apache on Ubuntu Linux with php7 and I have not had success in anything I have tried. I have change permissions, change owners on files and disabled my custom 404 error message.

Do you have opendocman installed in the /doc folder? What is your baseURL set to?

Yes, it is installed in /doc. There is no baseURL on the page admin->settings. I think it was removed when I upgraded to version 1.3.7