Log changed and it works in gallery.php