Advertisement:

Author Topic: Fatal Error: Cannot redeclare isnotminusone()... Please Help!  (Read 2249 times)

Offline wizard13335

  • Jr. Member
  • **
  • Posts: 169
  • Gender: Male
  • Engage!
    • Kitten Kare
Fatal Error: Cannot redeclare isnotminusone()... Please Help!
« on: November 10, 2005, 05:04:46 PM »
Hello. Whereever I click on my forums, i keep getting an error similar to this:

Quote
Fatal 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.
« Last Edit: November 11, 2005, 08:55:37 PM by JayBachatero »
Wizard-A world of spells and enchantments awaits you.
Have a cat? Share your pet with the world at Kitten Kare.

Offline Fizzy

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,676
  • Gender: Male
  • SMF World Domination
Re: Fatal Error: Cannot redeclare isnotminusone()... Please Help!
« Reply #1 on: November 10, 2005, 05:22:39 PM »
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.


Offline wizard13335

  • Jr. Member
  • **
  • Posts: 169
  • Gender: Male
  • Engage!
    • Kitten Kare
Re: Fatal Error: Cannot redeclare isnotminusone()... Please Help!
« Reply #2 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...
...
Wizard-A world of spells and enchantments awaits you.
Have a cat? Share your pet with the world at Kitten Kare.

Offline Fizzy

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,676
  • Gender: Male
  • SMF World Domination
Re: Fatal Error: Cannot redeclare isnotminusone()... Please Help!
« Reply #3 on: November 10, 2005, 05:53:14 PM »
Have you thought of uninstalling Simpledownload ?
"Reality is merely an illusion, albeit a very persistent one." - A.E.


Offline wizard13335

  • Jr. Member
  • **
  • Posts: 169
  • Gender: Male
  • Engage!
    • Kitten Kare
Re: Fatal Error: Cannot redeclare isnotminusone()... Please Help!
« Reply #4 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.
Wizard-A world of spells and enchantments awaits you.
Have a cat? Share your pet with the world at Kitten Kare.

Offline wizard13335

  • Jr. Member
  • **
  • Posts: 169
  • Gender: Male
  • Engage!
    • Kitten Kare
Re: Fatal Error: Cannot redeclare isnotminusone()... Please Help!
« Reply #5 on: November 10, 2005, 09:25:52 PM »
Any suggestions? This is destroying my entire forums...
Wizard-A world of spells and enchantments awaits you.
Have a cat? Share your pet with the world at Kitten Kare.

Offline JayBachatero

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,562
  • Gender: Male
    • @jaycreations on Twitter
    • JayBachatero.com
Re: Fatal Error: Cannot redeclare isnotminusone()... Please Help!
« Reply #6 on: November 10, 2005, 09:52:58 PM »
http://ConTEXT.cx

Seems like you installed the mod twice.
Follow me on Twitter

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

Offline wizard13335

  • Jr. Member
  • **
  • Posts: 169
  • Gender: Male
  • Engage!
    • Kitten Kare
Re: Fatal Error: Cannot redeclare isnotminusone()... Please Help!
« Reply #7 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:

Code: [Select]
// 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.

Offline Trekkie101

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 8,157
  • Gender: Male
  • Ad Astra!
    • https://www.facebook.com/DLRPRoundup on Facebook
    • @dlrproundup on Twitter
    • DLRP Roundup
Re: Fatal Error: Cannot redeclare isnotminusone()... Please Help!
« Reply #8 on: November 11, 2005, 07:51:50 PM »
Code: [Select]
// subfunction, just returns true if the given parameter is not equal -1
function isnotminusone($entry) {
return $entry != -1;
}

to

Code: [Select]
// 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.

Offline wizard13335

  • Jr. Member
  • **
  • Posts: 169
  • Gender: Male
  • Engage!
    • Kitten Kare
Re: Fatal Error: Cannot redeclare isnotminusone()... Please Help!
« Reply #9 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
Wizard-A world of spells and enchantments awaits you.
Have a cat? Share your pet with the world at Kitten Kare.