WordPress.org

Ready to get started?Download WordPress

Forums

Error on page, Requires Removal of Code (3 posts)

  1. OFGC
    Member
    Posted 3 years ago #

    So if i make a post and then click the category link, i get this error at the bottom of the page
    Page in question
    Fatal error: Call to undefined function firsttheme_posted_on() in /home/content/18/7686118/html/wordpress/wp-content/themes/firsttheme/loop.php on line 145

    now i can remove the code from my loop.php file and the error goes away and everything works fine...
    this is the code i remove

    <div class="entry-meta">
    				<?php firsttheme_posted_on(); ?>
    			</div><!-- .entry-meta -->

    what i want to know is what this string of code is trying to get, why im getting the error and is it an important line of code..

    thanks to whoever has an answer for me

  2. transom
    Member
    Posted 3 years ago #

    firsttheme_posted_on looks like a custom function that came with your theme. It is not a standard WordPress function. Check the functions.php file of your theme to see if the function name has been mis-typed.

  3. OFGC
    Member
    Posted 3 years ago #

    thanks for the response transom...
    i have put together my own basic theme using this tutorial here
    http://thethemefoundry.com/blog/html-wordpress/

    my loop.php file i just copied over from the twentyten theme...
    and i actually do not have a functions.php installed at the moment so maybe thats the issue..

    edit*
    that "firsttheme_posted_on" did read "twentyten_posted_on"

    i changed it when i first got the error first occured, thinking it was maybe a theme name issue.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.