Hello that error message tells me your PHP memory is being exhausted.
This is usually brought on my using GD2 as the image processor and uploading big images
You can place a little over ride in your upload file to help
In uploadphoto.php find this
add this above