I can fix the issue by setting Security->Site Policies->Force users to log in to view user pictures to "NO". I would rather not do that though. Any ideas?
General developer forum
Get moodle user profile image in PHP
This discussion has been locked so you can no longer reply to it.