WordPress.org

Ready to get started?Download WordPress

Forums

error code in comments display (3 posts)

  1. nasir1984
    Member
    Posted 7 years ago #

    Need Help

    I recieve this error code if i try to test a comment and comments do not display with the error check out

    following is the error

    Warning: main(../../../wp-config.php) [function.main]: failed to open stream: No such file or directory in /home/dubaifor/public_html/wp-content/themes/SuperAdsenseTheme-V2.1/super-adsense/comments-ajax.php on line 2

    Fatal error: main() [function.require]: Failed opening required '../../../wp-config.php' (include_path='.:/usr/local/php5/pear') in /home/dubaifor/public_html/wp-content/themes/SuperAdsenseTheme-V2.1/super-adsense/comments-ajax.php on line 2

    ----------------------------------------------------------

    The other problem is also for comments but its a bit different then the first one. The comments do not diplay in the footer of my theme

    here is the blog address

    Error Code:

    Fatal error: Call to undefined function: get_recent_comments() in /home/nasash/public_html/cgblog/wp-content/themes/silver-shine-10/footer.php on line 29

    --------------------------

    Please help me out on that thakyou

    Nasir

  2. moshu
    Member
    Posted 7 years ago #

    1. Does it work if you switch to the default or classic theme?

    2. Call to undefined function: get_recent_comments()
    The theme's template file calls for a function that does NOT exist on your blog, most likely for a plugin. Study the readme of that theme.
    Switch to another theme. Does it work?

  3. nasir1984
    Member
    Posted 7 years ago #

    I have checked that the comment system is fine with some other themes but problem is I want to keep the current themes in my website. So is there any way to sort this out on the existing theme.
    Thankyou

Topic Closed

This topic has been closed to new replies.

About this Topic