Ajax functions – no access to wp-admin.php only online

Try checking the file owner for wp-admin, it could be that it’s own by different user and it won’t allow you to read.

Check permission of the file if it’s readable by world