News:

Want to get involved in developing SMF? Why not lend a hand on our GitHub!

Main Menu

viewing profile ERROR

Started by project_ice420, April 05, 2012, 12:21:46 AM

Previous topic - Next topic

project_ice420

Fatal error: Cannot redeclare template_awards() (previously declared in /homepages/1/d386587127/htdocs/forum/Sources/Load.php(2151) : eval()'d code:3315) in /homepages/1/d386587127/htdocs/forum/Sources/Load.php(2151) : eval()'d code on line 3616

ice-game.com

whenever i click on somones profile it gives me this error.
i have attached the file

kat

template_awards() doesn't, actually, appear in that file.

Looks like that "eval" thing's masking the true error.

Can you go to Admin>Server Settings and check "Disable evaluation of templates"?

After doing that, you should get the true error.

project_ice420

Fatal error: Cannot redeclare template_awards() (previously declared in /homepages/1/d386587127/htdocs/forum/Themes/modern_warfare_3_2/Profile.template.php:3315) in /homepages/1/d386587127/htdocs/forum/Themes/modern_warfare_3_2/Profile.template.php on line 3616

file attached

NanoSector

There is no line 3616. It ends at 3539.

My text editor also can only find 1 occurrence of the template_awards() function.

Are you sure you picked the correct file?
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

project_ice420

absolutely positive. its the modern_warfare_3_2 theme

kat

I can confirm what Yoshi said.

NanoSector

What happens when you try the attached file? Does the Awards stuff still display?
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

project_ice420

Quote from: Yoshi2889 on April 05, 2012, 12:24:16 PM
What happens when you try the attached file? Does the Awards stuff still display?

with that specific file, i can now view the profiles. but the awards went away

NanoSector

Hmm, that's weird.

What mod do you have installed that handles the awards?
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."


NanoSector

That's damned weird. I can only see it defined once.

Sorry, this is going over my head :(
Best to bash the mod creator about this.
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

kat

Did you install that mod using emulation? (Assuming you're using SMF v2.0.2).

Also, did you install the correct version of the mod, from the two available?

project_ice420

i used package manager
and yes it is the correct  package

kat

I'm afraid I'm totally baffled, then. :(

Matthew K.

The function most likely got defined in another file, probably one that's loaded on every page load, whether that be Load.php, Subs.php, or index.template.php, etc. which is why it's disappearing when you remove it from Profile.template.php.

Best bet is to run a search on the function name in your forums directory to find what other file it's in, although my best bet would be probably Load.php if it's not in the Profile.template.php (duplicated).

Did you manually install the modification? That could be a very good reason why.

Advertisement: