PHP redirection function error

I'm getting this error, this is very strange, since this script was working.. I must have changed something?? :(

Fatal error: Call to undefined function redirect() in /mounted-storage/home43a/sub004/sc31952-BMDX/www/perfiles/mainpage.php on line 102
Who is Participating?
Have you looked at line 102 in mainpage.php?

It sounds like you are calling a function called 'redirect' however this function is not defined in mainpage.php or in any include files linked to by mainpage.php.

It could be that you have a typo in it or the case isn't the same.
Guy Hengel [angelIII / a3]Billing EngineerCommented:
I agree with jasonbytes, you have either a typo, or a missing an "include" to a file where the redirect function has been declared.
it must be a function that contains the system function header(), I guess...
axturAuthor Commented:
Stupid me, I had uploaded a previous version of a functions.php file where the redirect() function was not yet declared!!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.