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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.