jackoffjill Posted July 13, 2008 Share Posted July 13, 2008 Fatal error: Cannot redeclare item_remove() (previously declared in /home/violence/public_html/itemmarket.php:48) in /home/violence/public_html/global_func.php on line 339 That is the error i get when i click on Item Market in explore. can anyone tell me how to fix this (im using mccodes V2) cheers, Violent A Quote Link to comment Share on other sites More sharing options...
Floydian Posted July 13, 2008 Share Posted July 13, 2008 Re: Item Market Problem??? Most likely you have that function defined twice. function item_remove() { something like that is probably in your script twice. Removing one of them will likely solve the problem. If that doesn't do it, there's one more thing that may be causing it. And as funny as this may sound, I've seen it happen. If you have your switch at the top of the script, before you define your functions, it's possible that error can happen. The simply solution to that is moving your functions before the rest of your code. But it's far more likely that it's the first problem that is the cause. Quote Link to comment Share on other sites More sharing options...
dementor Posted July 13, 2008 Share Posted July 13, 2008 Re: Item Market Problem??? You have two functions doing the same thing delete one Quote Link to comment Share on other sites More sharing options...
Guest Anonymous Posted July 13, 2008 Share Posted July 13, 2008 Re: Item Market Problem??? In your item market file... find. case "remove": item_remove(); break; replace. case "remove": itemm_remove(); break; find. function item_remove() { Replace. function itemm_remove() { Should work. Quote Link to comment Share on other sites More sharing options...
jackoffjill Posted July 14, 2008 Author Share Posted July 14, 2008 Re: Item Market Problem??? thank you! i appreciate your help and time to help me as this worked :-D Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.