WordPress Error While trying to access wp-admin page

Solution:1

Increase your allocated memory in wp-config.php or wherever you need it:

define('WP_MEMORY_LIMIT', '64M');

In case PHP itself is running out of memory, you can increase that by modifying php.ini and restarting your web server.

memory_limit 256M

Solution:2

A theme/plugin is trying to put a Dashboard widget of some sort in your wp-admin homepage, Not enough info to fix that here I’m afraid. Put WP into debug mode and see if there are any other errors being caused.

Also, should be no need to reinstall WordPress, just disable/delete the offending themes/plugins and it should go away. Otherwise like Matt H said, you could increase your memory limit but I would not recommend it if you don’t know the consequences.