WordPress.org

Ready to get started?Download WordPress

Forums

Archive Hack (5 posts)

  1. goodsnake
    Member
    Posted 10 years ago #

    Thought since I was having archive issues I would try MtDewVirus' archive hack that I found on the wiki. Now I am getting the following error:
    Fatal error: Cannot redeclare archive_date() (previously declared in /homepages/28/d88240883/htdocs/SGRBlog/wordpress/my-hacks.php:12) in /homepages/28/d88240883/htdocs/SGRBlog/wordpress/my-hacks.php on line 12
    I checked to make sure I pasted it into myhacks.php correctly, and I changed all the code to match what he said. Any clues?

  2. goodsnake
    Member
    Posted 10 years ago #

    yes, I missed the dash in my-hacks.php, if you look at the page you can see the code is in the right file, somehow the code isn't doing what its supposed to do.

  3. goodsnake
    Member
    Posted 10 years ago #

    Well nevermind... I am starting to learn how to troubleshoot my problems before I can get answers to them. Scary...

  4. carthik
    Member
    Posted 10 years ago #

    and good too. Most of us start that way, and end up contributing something to the community, and the product gets better. :)

  5. Nick Momrik
    Member
    Posted 10 years ago #

    Sounds like you may have copied the code twice because the error claims that a function is declared twice.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.