News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Fatal Error: Cannot redeclare isnotminusone()... Please Help!

Started by wizard13335, November 10, 2005, 05:04:46 PM

Previous topic - Next topic

wizard13335

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 and I will send you them.

Thank you in advance.
Wizard-A world of spells and enchantments awaits you.
Have a cat? Share your pet with the world at Kitten Kare.

Fizzy

Hi Wiz

Version please and what is showing on your line 1076 of load.php?
"Reality is merely an illusion, albeit a very persistent one." - A.E.


wizard13335

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...
...
Wizard-A world of spells and enchantments awaits you.
Have a cat? Share your pet with the world at Kitten Kare.

Fizzy

"Reality is merely an illusion, albeit a very persistent one." - A.E.


wizard13335

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.
Wizard-A world of spells and enchantments awaits you.
Have a cat? Share your pet with the world at Kitten Kare.

wizard13335

Wizard-A world of spells and enchantments awaits you.
Have a cat? Share your pet with the world at Kitten Kare.

JayBachatero

Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

wizard13335

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;
}
Wizard-A world of spells and enchantments awaits you.
Have a cat? Share your pet with the world at Kitten Kare.

Trekkie101

// 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.

wizard13335

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
Wizard-A world of spells and enchantments awaits you.
Have a cat? Share your pet with the world at Kitten Kare.

Advertisement: