1 (edited by Sam 2006-07-21 20:49)

Topic: Cookie problem

I am having a problem with the post.php file, which is annoying me a lot. It doesn't affect me though, only other people who visit my site which is very odd. Whenever somebody else views post.php, they get this error:

Fatal error: Cannot redeclare check_cookie() (previously declared in /vetinari/sinkhead/public_html/forum/include/functions.php:2) in /vetinari/sinkhead/public_html/forum/include/functions.php on line 2

I tried tinkering with it a little, but I'm not too good at PHP so I restored it back to the original after a while. So now I'm stuck. Please can someody help me get round this troublesome problem? I've tried telling them to clear their cookies, in case that was the problem, but that doesn't fix it. Please help!


EDIT: If anybody wants to try it, the URL is http://sinkhead.net/forum and the username and password are both demo.

Re: Cookie problem

is it a stock post.php?

3

Re: Cookie problem

It's the one that comes with the standard download, if that's what you mean.

Re: Cookie problem

He means if you reverted to "the original" and that solved your issue, what was modified in the version that had the issue?

5 (edited by Sam 2006-07-21 20:46)

Re: Cookie problem

I reverted back to the original and I still have problems. I know this sounds stupid, but it's actually very annoying.

EDIT: If anybody wants to try it, the URL is http://sinkhead.net/forum and the username and password are both demo.

6 (edited by Frank H 2006-07-21 20:54)

Re: Cookie problem

the guest account also gets it ...

what have you set your "Base url" in the admin-options to?

Edit: but it feels more like there's something wrong with the phpfiles themselves ... have you tried re-download from punbb.org and re-upload fresh files?
(sometimes files get corrupt and 'almost' work fine)

7

Re: Cookie problem

The base URL is EXACTLY 'http://www.sinkhead.net/forum'

Re: Cookie problem

I don't have www in my url ...

http://sinkhead.net/forum/viewforum.php?id=7 is what my browser say

9

Re: Cookie problem

I've changed the base URL now and asked some people to test it, as I don't get the error myself. I'll edit if it worked or not.

Re: Cookie problem

I still get it ...

hmm.. might be worth to download the zip again, and re-upload fresh files ... as I edited above, sometimes they get corrupt during filetransfer and 'almost' work perfect tongue

Re: Cookie problem

So you're not using any edited files or have done any sort of integrating with other scripts?

12

Re: Cookie problem

Nope. I've re-installed now, waiting to see if the problems arise again.

Re: Cookie problem

It looks like functions.php is being included more than once or something. Or maybe it's common.php that is being included more than once.

That's why I asked if you did any integrating.

14

Re: Cookie problem

I did do some integrating, but then when the errors started I replaced the files I changed with the original ones straight froom the download. That didn't fix the problem