How can I supress error codes?

Hi:
My site is hosted on a public host: hostgator. That means I don’t have access to php.ini
Given that, is there any way I can suppress all the errors and warnings SuiteCRM routinely generates?

Even on shared hostings there are normally ways to change some settings.

Two typical methods would be

  • graphical UI options on CPanel

  • the ability to place a php.ini at the root of your site, and they will pick it up and integrate it with their own settings

Ask your hosting about this.

If nothing works, there are ways to add these settings through PHP code, but it’s not really a good way to do it.

Thanks for the response.
No cigar - hostgator has php.ini locked up.
I’ve tried adding one to the site - no help.

Must I conclude that with SuiteCRM there is simply no way to do it short of a hack?
If so I really can’t consider this software usable.

You can try the solutions suggested here:

https://suitecrm.com/suitecrm/forum/suitecrm-7-0-discussion/14264-some-notices-appear-when-i-tried-to-enter-in-studio#47695

Again - ask your hosting about this.

And really, consider whether your hosting is usable, not whether this software is usable. SuiteCRM doesn’t claim to be compatible with every single hosting out there, no matter how many limitations they come up with. You need to be able to access PHP settings to run PHP apps, they’re not all the same, there is no one-size-fits-all, that’s just the nature of the game.

But I’m sure Hostgator provides a way, they’re too big to be so limited, so locked down:

https://www.google.pt/search?q=hostgator+change+php.ini

You can add below line to your .htaccess file

php_value error_reporting 0