Need help fixing problem in Wordpress Plugin

Discussion in 'Programming' started by tyankee, Dec 8, 2011.

  1. #1
    i had a wordpress plugin developed a while ago and all of a sudden it doesn't work with the latest wordpress. i get the folllowing error when trying to activate it:

    Fatal error: Cannot redeclare flush_rewrite_rules() (previously declared in /home/freedisk/public_html/wp-includes/rewrite.php:91) in /home/freedisk/public_html/wp-content/plugins/wptrader/wptrader.php on line 219


    can anyone help please. pm me and i'll send you the plugin zip file.
     
    tyankee, Dec 8, 2011 IP
  2. viruthagiri

    viruthagiri Active Member

    Messages:
    232
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    95
    #2
    viruthagiri, Dec 8, 2011 IP
  3. tyankee

    tyankee Well-Known Member

    Messages:
    1,023
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    150
    #3
    tyankee, Dec 8, 2011 IP
  4. tyankee

    tyankee Well-Known Member

    Messages:
    1,023
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    150
    #4
    tyankee, Dec 8, 2011 IP
  5. Rukbat

    Rukbat Well-Known Member

    Messages:
    2,908
    Likes Received:
    37
    Best Answers:
    51
    Trophy Points:
    125
    #5
    Open /home/freedisk/public_html/wp-content/plugins/wptrader/wptrader.php in a text editor. Find line 219. Comment it. (Add // at the beginning of the line.)

    If it's on a hosted site, do the change in your local copy (you should always have a local copy of every file on your site), save it and upload it to the site.
     
    Rukbat, Dec 10, 2011 IP
  6. tyankee

    tyankee Well-Known Member

    Messages:
    1,023
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    150
    #6
    thank you everyone. this is now fixed...
     
    tyankee, Dec 10, 2011 IP