Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Message: call_user_func_array() expects parameter 1 to be a valid callback

A PHP Error was encountered Severity: Warning

Message: call_user_func_array() expects parameter 1 to be a valid callback, class 'Error' does not have a method 'index'

Filename: core/CodeIgniter.php

Line Number: 532

Backtrace:

File: /var/www/monitors/index.php Line: 315 Function: require_once

In my local system working fine but i move to the server i got this error

like image 590
Krishnareddy Gorla Avatar asked Nov 19 '25 20:11

Krishnareddy Gorla


1 Answers

I got a similar error that I solved by renaming the Error class to Errors in application/controllers/Errors.php. In config/routes.php I changed the class name accordingly:

$route['404_override'] = "errors/page_missing";
like image 63
Gfy Avatar answered Nov 22 '25 04:11

Gfy



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!