1 (edited by Thort 2007-12-14 11:07)

Topic: Fatal Error: Cannot redeclare...

Hi!

I get this error message when trying to open help.php:

Fatal error: Cannot redeclare check_cookie() (previously declared in /customers/finbild.se/finbild.se/httpd.www/forum/include/functions.php:28) in /customers/finbild.se/finbild.se/httpd.www/forum/include/functions.php on line 97

Page url: http://finbild.se/forum/help.php

Forum url:http://finbild.se/forum

Everything else seems to work as it shall in the forum. It's just this help.php that won't open.

I'm running a modded 1.2.14 version of PunBB.

What does "redeclare" meens?
What can I do to make the page open?

Re: Fatal Error: Cannot redeclare...

Paste your code, it sounds like you modified something wrong wink

3

Re: Fatal Error: Cannot redeclare...

Thanks for helping me!

Yes, I must have modified something. But what?

Here is my functions.php

And here is my help.php

Re: Fatal Error: Cannot redeclare...

OK, your lang/Swedish/help.php is not a language file, my guess is it's another copy of help.php. Download the language pack again and replace it smile

5

Re: Fatal Error: Cannot redeclare...

Thanks Smartys!

It was as you said. I uploaded the wrong help.php by mistake.

Now, it works again.

smile