Ah, got it! The problem is that the blasted PubNub library changed the definition of this function. Drives us all crazy. It has broken many pieces of software out there that have been using this library.
Remove the ".async(publish_callback)" from the end of the line and re-run.