I have been working on this website for weeks however when I tried to host it, for some reason only the navbar shows up. I uploaded all the files to htdocs and I have an index file, I also connected my database. I’m not sure what could cause this. If anyone can please help, that will be greatly appreciated.
So after I enabled display errors, I got the following error.
Fatal error : Cannot redeclare validate() (previously declared in /home/vol19_1/infinityfree.com/if0_35013293/htdocs/config/function.php:14) in /home/vol19_1/infinityfree.com/if0_35013293/htdocs/config/function.php on line 14
The function is not declared more than once in the function.php file, so i’m not sure what causes this issue. If anyone could help, that would be greatly appreciated.
Also check your “require” or “include” statements. If the files you are including in php have a function with the same name or if the file is included multiple times it will throw an error. Maybe use “require_once()”?