Jump to content

myerrorhandler()


otuatail

Recommended Posts

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.

 

Link to comment
https://forums.phpfreaks.com/topic/296461-myerrorhandler/
Share on other sites

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?

Link to comment
https://forums.phpfreaks.com/topic/296461-myerrorhandler/#findComment-1512509
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.