Advertisement:
2by2host

Author Topic: Fatal error: Cannot redeclare template_pretty_board_url() error  (Read 3751 times)

Offline abidejaz4u

  • Jr. Member
  • **
  • Posts: 387
i m using 1.x when i went to board option
http://www.myweb.com/forum/manageboards/
in following link in my forum i m facing this error

Fatal error: Cannot redeclare template_pretty_board_url() (previously declared in /home/myweb/public_html/forum/Sources/Load.php(1733) : eval()'d code:565) in /home/myweb/public_html/forum/Sources/Load.php(1733) : eval()'d code on line 648

plz solve my problem plzzz

Offline MrPhil

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 6,649
Re: Fatal error: Cannot redeclare template_pretty_board_url() error
« Reply #1 on: May 20, 2012, 05:47:56 PM »
It sounds like you installed some mod (pretty board URL?) at least twice. Uninstall all but one copy of that mod.

Please don't post error messages with "eval" in them. They're probably not giving the correct file name and line number. Install mod 2054 and use it to turn off "eval" and get the correct file and line next time.
Please do not PM me with support questions, unless I ask you to. Unsolicited PMs for support will be ignored. It's best to have questions and answers in public, so others can research a problem and learn about it without having to ask the question yet again. Thank you!
FAQs | SMF 1.1 fixes | Project ideas
-= From the ashes shall rise a sooty tern =-

Offline Arantor

  • SMF Legend
  • *
  • Posts: 50,978
    • wedgebook on Facebook
Re: Fatal error: Cannot redeclare template_pretty_board_url() error
« Reply #2 on: May 20, 2012, 05:51:24 PM »
The correct file will be ManageBoards.template.php, lines 565 and 648. Pretty URLs mod got installed twice.

Offline abidejaz4u

  • Jr. Member
  • **
  • Posts: 387
Re: Fatal error: Cannot redeclare template_pretty_board_url() error
« Reply #3 on: May 21, 2012, 05:07:01 AM »
i Uninstalled that mod its working fine but when i again installed it again same error :(

Offline Arantor

  • SMF Legend
  • *
  • Posts: 50,978
    • wedgebook on Facebook
Re: Fatal error: Cannot redeclare template_pretty_board_url() error
« Reply #4 on: May 21, 2012, 09:07:26 AM »
When you uninstalled it, it was still actually installed (because you installed it twice originally), you'll need to remove the extra code from ManageBoards.template.php.

Offline MrPhil

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 6,649
Re: Fatal error: Cannot redeclare template_pretty_board_url() error
« Reply #5 on: May 21, 2012, 10:37:14 AM »
You had two copies installed. You uninstalled one, and then installed the mod again. Surprise, surprise, you have two copies installed now. Why in the world did you install it again?
Please do not PM me with support questions, unless I ask you to. Unsolicited PMs for support will be ignored. It's best to have questions and answers in public, so others can research a problem and learn about it without having to ask the question yet again. Thank you!
FAQs | SMF 1.1 fixes | Project ideas
-= From the ashes shall rise a sooty tern =-

Offline Arantor

  • SMF Legend
  • *
  • Posts: 50,978
    • wedgebook on Facebook
Re: Fatal error: Cannot redeclare template_pretty_board_url() error
« Reply #6 on: May 21, 2012, 01:22:26 PM »
Because he thought that uninstalling it would remove all copies of it, which it won't.

Offline abidejaz4u

  • Jr. Member
  • **
  • Posts: 387
Re: Fatal error: Cannot redeclare template_pretty_board_url() error
« Reply #7 on: May 23, 2012, 11:36:26 AM »
You had two copies installed. You uninstalled one, and then installed the mod again. Surprise, surprise, you have two copies installed now. Why in the world did you install it again?
i did not installed it twice ...any way how can i remove it because when i remove it in one time its uninstalled fully ...tell me how can ???

Offline Arantor

  • SMF Legend
  • *
  • Posts: 50,978
    • wedgebook on Facebook
Re: Fatal error: Cannot redeclare template_pretty_board_url() error
« Reply #8 on: May 23, 2012, 12:15:14 PM »
Somehow it got installed twice (perhaps double-clicking the install button), and when you hit remove, it only removed one copy of the code.

Go to the mod's page, select 'Parse' on the right and it'll show you all the operations that get carried out to install the mod - do them in reverse.

Offline abidejaz4u

  • Jr. Member
  • **
  • Posts: 387
Re: Fatal error: Cannot redeclare template_pretty_board_url() error
« Reply #9 on: May 24, 2012, 10:50:57 AM »
any body here who tell me the exact script which i will remove that one???

Offline Arantor

  • SMF Legend
  • *
  • Posts: 50,978
    • wedgebook on Facebook
Re: Fatal error: Cannot redeclare template_pretty_board_url() error
« Reply #10 on: May 24, 2012, 11:00:42 AM »
There's no easy way to do it. I already told you what you have to do; you have to remove the code by hand YOURSELF.

Offline abidejaz4u

  • Jr. Member
  • **
  • Posts: 387
Re: Fatal error: Cannot redeclare template_pretty_board_url() error
« Reply #11 on: June 02, 2012, 03:53:37 AM »
tell me the exact file from where i can remove it then  :-\

Offline Arantor

  • SMF Legend
  • *
  • Posts: 50,978
    • wedgebook on Facebook
Re: Fatal error: Cannot redeclare template_pretty_board_url() error
« Reply #12 on: June 02, 2012, 10:17:53 AM »
I already did, actually, please see reply 2.

But there will be other duplicates of code too, so you will have to go through ALL the code added - by following the instructions I provided.

Offline JimM

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 11,977
  • Gender: Male
    • Southern Spirit Hunters
Re: Fatal error: Cannot redeclare template_pretty_board_url() error
« Reply #13 on: June 17, 2012, 01:59:30 PM »
Any update on this?  Were you able to remove the duplicate code?  Don't forget to mark this as solved.
Jim "JimM" Moore
Former Support Specialist
jimm@simplemachines.org

Please do not PM me for support!                   
Installing SMF
Upgrade SMF
Manual Installation of Mods

Offline abidejaz4u

  • Jr. Member
  • **
  • Posts: 387
Re: Fatal error: Cannot redeclare template_pretty_board_url() error
« Reply #14 on: July 29, 2012, 06:00:47 AM »
not solved still facing the problem :(

Offline abidejaz4u

  • Jr. Member
  • **
  • Posts: 387
Re: Fatal error: Cannot redeclare template_pretty_board_url() error
« Reply #15 on: July 29, 2012, 06:32:06 AM »
When you uninstalled it, it was still actually installed (because you installed it twice originally), you'll need to remove the extra code from ManageBoards.template.php.

Problem Solve by this action first i remove the mod then i got to this file and manually remove the script of pretty urls
then i again installled it and porblem solved :) thanks dear

Offline PSPguru

  • Semi-Newbie
  • *
  • Posts: 47
  • Gender: Male
    • Snoopy Street Fair
Re: Fatal error: Cannot redeclare template_pretty_board_url() error
« Reply #16 on: September 19, 2012, 10:26:14 AM »
Hello ,
I got pretty much the same error, but I'm still not clear what script you are talking  about, I would appreciate if you can make it clearer please. I'm newby .

thanks