ill have a look at this array for youI tried messing with permissions some more, and restarting from square 1.
Just got "Fatal error: Cannot create references to elements of a temporary array expression in .../gallery/Model/gallery.php on line 888" again.