Topic: register.php

What does this mean? And how do I fix it?

Fatal error: Cannot redeclare check_cookie() (previously declared in /home/kntlco/public_html/include/functions.php:28) in /home/kntlco/public_html/include/functions.php on line 97

http://www.kntl.co.uk/register.php

Re: register.php

Undo whatever you just did to register.php: you ended up adding the functions.php file twice.

3 (edited by liquidat0r 2007-02-25 11:01)

Re: register.php

I now have a newly downloaded register.php with no edits. I have uploaded it. As you can see, there is still the same error.

I have not made any changes to functions.php, at least, not for a while.

Re: register.php

What was the last file(s) you edited?

Re: register.php

Main PunBB files edited on 24th, 25th.

header.php
register.php
functions.php
main.tpl

Also ran one install_mod.php for "Captcha Box"

Re: register.php

OK, could your paste your edited copy of header.php, register.php, and functions.php here please?

7 (edited by liquidat0r 2007-02-25 12:56)

Re: register.php

http://www.kntl.co.uk/register.phps
http://www.kntl.co.uk/header.phps
http://www.kntl.co.uk/include/functions.phps

Re: register.php

And if you revert your changes for one file at a time, does it go back to normal?

9 (edited by liquidat0r 2007-02-25 13:03)

Re: register.php

At the moment, there is a standard register.php

All I did to header.php was remove the following, (or something similar to this):

// START SUBST - <pun_pnavlinks>
$tpl_main = str_replace('<pun_pnavlinks>','<div id="brdmenu" class="inbox">'."\n\t\t\t". generate_pnavlinks()."\n\t\t".'</div>', $tpl_main);
// END SUBST - <pun_pnavlinks>

And then I removed the corresponding function in functions.php. Which was something very similar to navlinks but it was called pnavlinks.

---

This function was not being used anywhere in the forums.

---

So, no. If I revert the changes, it does not go back to normal.

Re: register.php

Were there any other edits you did?

11 (edited by liquidat0r 2007-02-25 13:17)

Re: register.php

Nope, not to these files.

I just uploaded a newly downloaded functions.php. It still doesn't work.

Is it anything to do with the cache?

Re: register.php

It shouldn't but you can try removing the files. To be honest, I have no way of knowing what the isssue is

Re: register.php

I also get the same error here:

http://www.kntl.co.uk/misc.php?action=rules

Re: register.php

Only thing I see in common that wouldn't be elsewhere is lang/English/register.php: I doubt that's requiring functions.php though

Re: register.php

Could it have something to do with the install_mod.php file from here? Shall I restore the database to how it was before this installation?


Also, misc.php?report=## and other misc links work fine.

Re: register.php

The database should have nothing to do with this, nor should install_mod.php

17 (edited by liquidat0r 2007-02-26 22:20)

Re: register.php

Can anyone recreate the error? Because I genuinely have no idea what to do. I wouldn't mind if it was a different page, but register.php!

Re: register.php

If you sent me a copy of all your forum's files via email I could try to debug the issue. My email address is smartys at this domain.

Re: register.php

I have sent an email to you. Thanks.

Re: register.php

I have no issues when running it

Re: register.php

What? You mean register.php works fine for you?

Re: register.php

liquidat0r wrote:

What? You mean register.php works fine for you?

Indeed
I just had another thought though: could you send me a dump of the config table for your forum (or, if you want, I just want a dump of the data stored for the forum rules)

Re: register.php

It's on its way.