U
U
UntitledNikname2019-11-12 17:30:45
Yii
UntitledNikname, 2019-11-12 17:30:45

Yii2, what does error code zero mean in pro version?

on the dev version, it seems to work like that, but when I do an init for prod, when I log in, it pops up an error code of zero, as I understand it, this is a default error if there is no function error (... code = 0 ... ). Error text is empty...

// HttpException controller
    public function __construct($status, $message = null, $code = 0, \Exception $previous = null)
    {
        $this->statusCode = $status;
        parent::__construct($message, $code, $previous);
    }

PS. I'm talking about an error on a par with 404, 403 ....

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim, 2019-11-15
@UntitledNikname

Remove this zero from errors everywhere and program normally. The problem is in your imagination or someone else's. You yourself say that there is no such error status. Do you have...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question