Fix remaining PHP errors