Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Topic started by: wizard13335 on November 10, 2005, 05:04:46 PM

Title: Fatal Error: Cannot redeclare isnotminusone()... Please Help!
Post by: wizard13335 on November 10, 2005, 05:04:46 PM
Hello. Whereever I click on my forums, i keep getting an error similar to this:

QuoteFatal error: Cannot redeclare isnotminusone() (previously declared in /home/kitten/public_html/forums/Sources/Load.php:1028) in /home/kitten/public_html/forums/Sources/Load.php on line 1076

It's never happened before, i do not know why it is happening now.

Please help as soon as possible, if you want to see all the error messages, let me know through email ([email protected]) and I will send you them.

Thank you in advance.
Title: Re: Fatal Error: Cannot redeclare isnotminusone()... Please Help!
Post by: Fizzy on November 10, 2005, 05:22:39 PM
Hi Wiz

Version please and what is showing on your line 1076 of load.php?
Title: Re: Fatal Error: Cannot redeclare isnotminusone()... Please Help!
Post by: wizard13335 on November 10, 2005, 05:41:37 PM
I am running version 1.1 rc1. Please note that this is only one of the error messages. They differ depending on which page you go to. Give me a few minutes to get the code...
...
Title: Re: Fatal Error: Cannot redeclare isnotminusone()... Please Help!
Post by: Fizzy on November 10, 2005, 05:53:14 PM
Have you thought of uninstalling Simpledownload ?
Title: Re: Fatal Error: Cannot redeclare isnotminusone()... Please Help!
Post by: wizard13335 on November 10, 2005, 08:41:46 PM
It's not SimpleDownload that is the problem. I did not now until now that the problem was sitewide, not just on the downloads page.


Man this stinks, look like my trial version for Dreamweaver just ended. Anyone know another free code program that counts the lines of code? Thanks.
Title: Re: Fatal Error: Cannot redeclare isnotminusone()... Please Help!
Post by: wizard13335 on November 10, 2005, 09:25:52 PM
Any suggestions? This is destroying my entire forums...
Title: Re: Fatal Error: Cannot redeclare isnotminusone()... Please Help!
Post by: JayBachatero on November 10, 2005, 09:52:58 PM
http://ConTEXT.cx

Seems like you installed the mod twice.
Title: Re: Fatal Error: Cannot redeclare isnotminusone()... Please Help!
Post by: wizard13335 on November 11, 2005, 04:50:27 PM
Umm, why does everything think this is cause by the SimpleDownloads mod?

Thank you for a link to the ConTEXT program, it's one of the best code editors i've seen that is free.

This is what line 1076 says:

// subfunction, just returns true if the given parameter is not equal -1
function isnotminusone($entry) {
return $entry != -1;
}
Title: Re: Fatal Error: Cannot redeclare isnotminusone()... Please Help!
Post by: Trekkie101 on November 11, 2005, 07:51:50 PM
// subfunction, just returns true if the given parameter is not equal -1
function isnotminusone($entry) {
return $entry != -1;
}


to

// subfunction, just returns true if the given parameter is not equal -1
//function isnotminusone($entry) {
// return $entry != -1;
//}


Try that :)

Also everyone thinks its a mod, because SMF doesn't have "redeclare" errors by default, and thats just php complaining that the same thing is being tried twice and it doesn't like it.
Title: Re: Fatal Error: Cannot redeclare isnotminusone()... Please Help!
Post by: wizard13335 on November 11, 2005, 08:33:00 PM
I can't possibly tell you how much I thank you. This has been really stressful for me, and I'm glad that you were able to help me fix the problem.  :D