WordPress.org

Ready to get started?Download WordPress

Forums

Fatal Error Message (5 posts)

  1. pramodd
    Member
    Posted 6 years ago #

    1] After installing wordpress and various plugins I tried to change Permalink Structure from Default [http://www.sitename.com/blog/?p=123] to
    Custom structure: /%postname%/
    However, I am getting following error message on my blog:

    Fatal error: Call to undefined function: user_trailingslashit() in path-to-site/wp-includes/category-template.php on line 38

    2] .htaccess file has been uploaded to blog directory and has write permission enabled.

    3] If i switch back from Custom structure: /%postname%/ to
    Default structure [http://www.sitename.com/blog/?p=123]
    the error disappears.

    Please help!!!

  2. whooami
    Member
    Posted 6 years ago #

    the function, user_trailingslashit, is defined inside wp-includes/link-template.php

    upload a new copy of wp-includes/link-template.php

    its either missing, corrupt, or from an old version

  3. pramodd
    Member
    Posted 6 years ago #

    I uploaded wp-includes/link-template.php again. The problem remains. I am still getting the error message:

    Fatal error: Call to undefined function: user_trailingslashit() in path-to-site/wp-includes/category-template.php on line 38

  4. whooami
    Member
    Posted 6 years ago #

    define again, did you upload over it, or did you delete the old copy and upload a fresh one?

    when you open up the copy of the wp-includes/link-template.php that exists on your site do you see the following @ line 22:

    function user_trailingslashit($string, $type_of_url = '') { .....

  5. myspacegonewild
    Member
    Posted 6 years ago #

    HELP
    I did something and I can't seem to be able to fix it..
    I now lost my whole site..
    and all I get is a fatal error..
    My site is http://www.mywildcrazyspace.com
    Of Course we use wordpress..
    I think u can see the error when u go there..
    I get the error that says
    Fatal error: Call to undefined function: get_header() in /home/.phibsie/mhalp56134/mywildcrazyspace.com/index.php on line 22

    I also have many duplicates in the files area..
    that says..
    Browsing wp-content/themes/tigalatest/index.php
    Recent

    Oops, no such file exists! Double check the name and try again, merci.

    u can see I have dups...below..
    Some work and some say the above line.
    is there a way to delete the ones that have the error
    and keep the good one?

    1. Main Index Template
    2. Main Index Template
    3. Main Index Template
    4. Main Index Template
    5. index.php&a=te

    Common

    * Main Index Template
    * .htaccess (for rewrite rules )
    * my-hacks.php (legacy hacks support)

Topic Closed

This topic has been closed to new replies.

About this Topic