Jump to content

Error 101 in combination with Fatal error: Cannot redeclare (function)


grafeety

Recommended Posts

Hi there,

I have a local server set up on my computer which I have used before and it worked flawlessly. It is running apache with PHPand mySQL set up as services. Recently I attempted to copy a project I have worked on at school onto my server. I have the database up and running, however when I try to run a PHP file it gives me the error:

Fatal error: Cannot redeclare getText() in C:\Server\htdocs\projects\tournament\includes\functions.php on line 20

When I rename that function (which I know is not being redeclared) I get a browser error:

This webpage is not available.

 

The webpage at http://localhost/projects/tournament/index.php might be temporarily down or it may have moved permanently to a new web address.

 

  More information on this error

Below is the original error message

 

Error 101 (net::ERR_CONNECTION_RESET): Unknown error.

 

Has anybody else experienced this error and have a solution to fix it?

My guess is that it has to do with the function gettext() being available on this machine but not on the machine at school, however I thought PHP was case sensitive?

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.