3

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

1

1 Answer 1

6

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";
Sign up to request clarification or add additional context in comments.

2 Comments

Thanx @Gfy, this is very useful method for resolve this error !
Showing me 404 Page Not Found error.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.