WordPress.org

Support

crash!

  • 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?

Viewing 5 replies - 1 through 5 (of 5 total)
  • download the latest version.. replace wp-includes/template-functions-category.php with the one that is inside the zip you downloaded.

    OK… I will do so.

    Thanks.

    Les Bessant
    Participant

    @lesbessant

    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?

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

    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?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘crash!’ is closed to new replies.