Skip to content

Error Reporting problem in PHP #2

@openrijal

Description

@openrijal

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);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions