otuatail Posted May 23, 2015 Share Posted May 23, 2015 Fatal error: Cannot redeclare myerrorhandler() (previously declared in /home/fhlinux190/d/desmond-roberts.co.uk/user/htdocs/secure/SecureFunctions.php:10) in /home/fhlinux190/d/des-roberts.co.uk/user/htdocs/secure/SecureFunctions.php on line 36 Hi I have a problem using a php page of secure functions in a folder with .htaccess The problem is I am using this file in all web pages and other folders like /personal and / calculations I have been doing this for over 10 years with my hosting provider. Now I am getting. This has not happened before. Have the host providers made changes and is there a better way of setting an error handler? visitors do not always go to the home page firs. so it cannot be declared just there. please help. Quote Link to comment Share on other sites More sharing options...
Ch0cu3r Posted May 23, 2015 Share Posted May 23, 2015 You are getting that error due the function myerrorhandler() being declared twice. PHP is reporting it has already being declared on line 10 of SecureFunctions.php. The error has being triggered because you are trying to redefine that function again on line 36 of SecureFunctions.php. Functions cannot be declared more than once. How are you defining this function? Can we see the code for SecureFunctions.php? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.