I'm having this same problem, only mine is with vb
3.7 beta 3 and the notification drop down (replacement for private messages indicator). All of my dropdown list items append /gallery/ at the beginning. This fix doesn't seem to work. I've added all of my php files to the list, but I'm still getting these errors.