Fixed error and changed echo to PHP warning

There was an error in colorRGBA method there was an ] instead a comma.
Changed warning echo to trigger_error PHP function as a Warning to be able to hide them in production.