You may enable WP_DEBUG 1st to know what is the reason behind the  error ;  https://codex.wordpress.org/Debugging_in_WordPress