Error thrown

Undefined constant "publish"