James,
It looks like you have a version mismatch. As I stated above, publish_url is defined on the 4.6 CVS tip. You should look into this issue and be sure that you have a consistent system. It's quite possible that other related problems may arise. Best to nail it down now and save yourself headaches in the future.
Randy