Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "J.O. Aho" Newsgroups: comp.lang.php Subject: Re: 404 in CodeIgniter3 application Date: Thu, 13 Apr 2023 07:40:04 +0200 Lines: 38 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net JG01hK03RCTUcQtsMm7kOgC7aqXUdXKAncHCdYB0u8zX/phTaz Cancel-Lock: sha1:49jNWByOfMRDYSxddU6SY7PK/bI= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.1 Content-Language: en-US-large In-Reply-To: Xref: csiph.com comp.lang.php:19425 On 4/12/23 18:25, Jivanmukta wrote: > 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. I guess it hard fails at call_user_func_array > var_dump displays object Main, method index, empty array params. If the method called don't need parameters > I have a controller > class Main extends MY_Controller { > public function index() { Most likely something that goes wrong when you call index(), debug that one. > > In folder /home/robert/Projekty/praca/application/controllers I have > file Main.php > In file /home/robert/Projekty/praca/application/config/routes.php I have: > > $route['default_controller'] = 'main'; Not sure if it's case sensitive, never used CodeIgniter3, you may need to change to Main. -- //Aho