• 1] After installing wordpress and various plugins I tried to change Permalink Structure from Default [https://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 [https://www.sitename.com/blog/?p=123]
    the error disappears.

    Please help!!!

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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

    Thread Starter pramodd

    (@pramodd)

    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

    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 = '') { .....

    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 https://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)

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Fatal Error Message’ is closed to new replies.