Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error Reporting problem in PHP #2

Open
openrijal opened this issue Oct 2, 2012 · 0 comments
Open

Error Reporting problem in PHP #2

openrijal opened this issue Oct 2, 2012 · 0 comments

Comments

@openrijal
Copy link

I am using Linux Mint, based on Ubuntu. It seems that these OS treat all the sites as Production mode, and thus they disable the error reporting by default.

We can of course set it on in the php.ini file but since awecms uses a single php file to handle all the request, I would recommend a small fix so that even if the settings are turned off, the cms itself overrides the thing.

I'm not sure whether it is a good way to do it, but still here it is.

It worked for me, kept the code in "index.php"

ini_set('display_errors', true); error_reporting(E_ALL ^ E_NOTICE);

Repository owner deleted a comment Feb 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant