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
You are not logged in. Please login or register.
PunBB Forums → PunBB 1.2 troubleshooting → 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
Undo whatever you just did to register.php: you ended up adding the functions.php file twice.
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.
What was the last file(s) you edited?
Main PunBB files edited on 24th, 25th.
header.php
register.php
functions.php
main.tpl
Also ran one install_mod.php for "Captcha Box"
OK, could your paste your edited copy of header.php, register.php, and functions.php here please?
And if you revert your changes for one file at a time, does it go back to normal?
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.
Were there any other edits you did?
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?
It shouldn't but you can try removing the files. To be honest, I have no way of knowing what the isssue is
I also get the same error here:
Only thing I see in common that wouldn't be elsewhere is lang/English/register.php: I doubt that's requiring functions.php though
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.
The database should have nothing to do with this, nor should install_mod.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!
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.
I have sent an email to you. Thanks.
I have no issues when running it
What? You mean register.php works fine for you?
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)
PunBB Forums → PunBB 1.2 troubleshooting → register.php
Powered by PunBB, supported by Informer Technologies, Inc.