crash! (6 posts)

  1. visibleh20
    Posted 11 years ago #

    1. Open the wp-includes/template-functions-category.php file in a text editor like Wordpad.
    2. Go to around line 103 where it says get_the_category_by_ID.
    3. Create a new line after that and paste in $cat_ID = (int) $cat_ID;

    I thought I placed this in correctly and now that I see what has happened (http://visibleh20.com/WordPress/) I wish I hadn't.

    What should I do?

  2. whooami
    Posted 11 years ago #

    download the latest version.. replace wp-includes/template-functions-category.php with the one that is inside the zip you downloaded.

  3. visibleh20
    Posted 11 years ago #

    OK... I will do so.


  4. Les Bessant
    keeper of the Tiggers
    Posted 11 years ago #

    Upload a fresh copy of template-functions-category.php.

    Then go back and have another go at editing. You've probably made a small error - lost a bracket or a semi-colon or something which has broken the page. Looking at the bottom of the page, you can see there's an error relating to the_category(), a function just above the bit you needed to edit, so have a look there.

    Oh - you did edit in a text editor, not a word processor, yes?

  5. visibleh20
    Posted 11 years ago #

    Yes it worked! Thanks ... many thanks. I guess I won't do anything like that again!

  6. visibleh20
    Posted 11 years ago #

    Fatal error: Call to undefined function: get_category() in /home/visibleh/public_html/WordPress/wp-includes/template-functions-category.php on line 105


    Uh.. oh... I get this message when in the write post area... everything else is ok. But am unable to write posts... what should I do now?

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.