Re: 404 in CodeIgniter3 application
Arno Welzel <[email protected]> Thu, 13 Apr 2023 09:22:32 +0200
| Newsgroups | comp.lang.php |
|---|---|
| Message-ID | <[email protected]> |
Jivanmukta, 2023-04-12 18:25:
> I am trying to solve a problem of 404 in my COdeIgniter3 application.
> The problem occurs because of problem in core/Codeigniter.php:
> echo 'BEFORE call_user_func_array';
> var_dump($CI, $method, $params);
> call_user_func_array(array(&$CI, $method), $params);
>
> // Mark a benchmark end point
> $BM->mark('controller_execution_time_( '.$class.' / '.$method.' )_end');
> echo 'AFTER call_user_func_array ';
>
> BEFORE is displayed, AFTER is not displayed.
Without any error message it's impossible to tell what the problem is.
However if you want to do benchmarking this is done in a different way:
<https://codeigniter.com/userguide3/libraries/benchmark.html>
To find out what the real problem is, check the error logs of PHP and/or
the webserver or enable error reporting in php.ini and try to call the
URL again:
error_reporting = E_ALL
Also using XDebug (<https://xdebug.org>) with an IDE like PHPStorm or
VSCode helps a lot. This is often already included in current Linux
distributions and just has to be enabled.
--
Arno Welzel
https://arnowelzel.de