1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Fatal Error Called Undefined function

Discussion in 'Blogging' started by vintageadult, Oct 25, 2015.

  1. vintageadult

    vintageadult Junior Member

    Joined:
    Nov 28, 2014
    Messages:
    199
    Likes Received:
    3
    I got this error on this page: http://www.vintagepornbay.com/premium-membership/
    The error code says:
    Code:
    Fatal error: Call to undefined function the_comments_navigation() in/home/****/public_html/wp-content/themes/twentysixteen-child/comments.php on line49
    Why is this happens only for the above page?
    How to fix it?

    Thanks..

    Using: Twentysixteen theme
     
  2. blogzandstuff

    blogzandstuff Elite Member

    Joined:
    Jan 1, 2015
    Messages:
    5,806
    Likes Received:
    2,702
    Occupation:
    blog creator
    Location:
    UK
    Looks like you have been editing the main functions.php file, do it in a child theme not main theme files as when there is a update everything will be overridden
    to create a child theme make a folder and call it the same as your theme, something like twenty sixteen-child for example.
    now make a .css file and add this to it changing to match your theme
    /*
    Theme Name: Twenty Sixteen Child Theme
    Version: 0.1
    Template: twentysixteen
    */
    Save to the child theme folder, you now have a child theme for your site and you can modify php pages using that.
     
    Last edited: Oct 27, 2015