Most commented hack Fatal Error (3 posts)

  1. Vohiyaar
    Posted 12 years ago #

    I am trying to install the Most Commented hack and am getting the following error.
    Fatal Error: Call to undefined function: get_most_commented()
    I have two other functions defined in my-hacks.php and they both work fine.
    1) Recent Posts
    2) phpGiggle
    Anyone else had this problem and know a fix for it or common reasons for this error?

  2. carthik
    Posted 12 years ago #

    Like the error message says, check if the function get_most_commented(); is defined in the my-hacks file. Check for ";" a the end of lines, etc...
    Or you could save your my-hacks.php as my-hacks.txt or my-hacks.phps somewhere on your server, so people who want to help can see the code in it.

  3. Vohiyaar
    Posted 12 years ago #

    Ah! The ";" at the end of each line!!!
    Its fixed now!
    Thanks 2fargon.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.