Changed a lot of things, reverted to the old sidebar to see if that was causing the error (it probably wasn't...)