When publishing in Site Management Tools make sure you have the proper permissions to access the tool. You are likely to run into a Bad Ajax Request error when using a custom role in Site Management Tools.
Using an Administrator Role:
- Navigate to Setup > User/Roles > Manage Roles
- Edit Custom Role
- Go to Permissions > Setup sub tab
- Add Commerce Categories, and set to level Full
- Click Save