Skip to main content
Topic: call_user_func_array() expects parameter 1 to be a valid callback (Read 1776 times) previous topic - next topic

call_user_func_array() expects parameter 1 to be a valid callback

Ive made a project constisting just 1 page -the edit page which edits existing datasets. The edit page is displayed but on update drops this error:
Warning: call_user_func_array() expects parameter 1 to be a valid callback, class 'FreeipsController' does not have a method 'index'

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

Reply #1
update: despite the error the dataset does get updated
(Classic 2.4)

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

Reply #2
any hints ?

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

Reply #3
Please change the property RedirectToAfterUpdate to another page as the page index page does not exit.
FreeipsController does not have index page and it is trying to redirect to the page after update which does not exit.

Thanks

 

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

Reply #4
Works! Thankyou!