I have a custom module which is supposed to change a user's profile picture.
When you are logged in as a super-admin, the module works fine. Problems arise, however, when you log in as a regular user.
I believe that
entity_load() is causing infinite recursion, either crashing PHP (due to an xdebug limitation) or running to the PHP memory limit.
I located something similar here, but that's from 2009! Surely it's been integrated into Drupal's core by now, yes? Also, I tried to apply the last green patch using Git, but it appears that the directory structure is different than my install?
common.inc is definitely in my
includes folder, but there's no
node folder in my
includes folder, so I'm not quite sure how to apply it..
The full stack trace can be found here
If anyone could help me figure out what I need to do to fix this, I'd be very appreciative.