Got this from Puppet?

err: Could not retrieve catalogue: Could not find class php in namespaces standardbuild
  at /etc/puppet/manifests/templates.pp:15 on domain.internal.com

The error points at a missing class, but the real culprit is often a missing closing brace somewhere above that line. Puppet’s parser gets confused and reports the wrong thing.

Check your manifests for unmatched { and }. A syntax highlighter helps — or just count your braces.