• Hey everyone,

    I am back with another problem. I have had every issue with wordpress and I am not on the net YET!!! Due to constant problems with WordPress. However I have uploaded the Genesis theme and the sleek theme, I can login, get on the page however when I enter another page I get this message:

    Fatal error: Call to undefined function genesis() in /home/freedomw/public_html/jonbw/index.php on line 5

    From my experiences I know the in the () on line 5 something has to go in there, but WHAT!? I am at a brick wall and I cannot do anything on my website until this issue is resolved. I have gone into Cpanel and I have seen this on the Index document as well, but I need urgent help as this is really delaying my progress. Any suggestions on this matter will really help me out.

    Jon

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator t-p

    (@t-p)

    you may try:

    -deactivating ALL plugins temporarily to narrow down and possibly fix the problem. If the problem goes away, activate them individually to find the culprit.

    -switching to the default theme (“twentyten”) for a moment by renaming your current theme’s folder in wp-content/themes. The idea is to force WordPress to fall back to the default theme to rule out any theme-specific issue.

    Thread Starter jonbw12

    (@jonbw12)

    I have deactivated all the plugins as I only had two installed, I have reverted back to the twentyten and deleted the other themes on filezilla, however I still get the message when I go into any category or page on my site.

    Fatal error: Call to undefined function genesis() in /home/freedomw/public_html/jonbw/index.php on line 5

    On the twentyten theme? I can access the page and that appears fine, its the pages and catergories within the themes which is the issue.

    It looks like something was added to your WP main index.php, did you edit that at all

    It’s not to be edited, when only your THEME’s index.php should be edited

    <?php
    /**
     * Front to the WordPress application. This file doesn't do anything, but loads
     * wp-blog-header.php which does and tells WordPress to load the theme.
     *
     * @package WordPress
     */
    
    /**
     * Tells WordPress to load the WordPress theme and output it.
     *
     * @var bool
     */
    define('WP_USE_THEMES', true);
    
    /** Loads the WordPress Environment and Template */
    require('./wp-blog-header.php');
    ?>

    should be the only content of the main WP index.php located in your root

    Thread Starter jonbw12

    (@jonbw12)

    Well looking at it, my index.php is normal on the outside as this is above my folder name, so that I don’t have the folder name at the end of the website as I had to create a copy of index.php file in root. In the actual document there is another index.php, however this is different and it looks like this when I have looked into it.

    <?php
    /**
     *
     */
    genesis();

    I have no idea how this has got into here, however in the past when I have deleted a file I usually got a 404 error and had to reinstall wordpress as it was so aggrevating. Should I delete this folder and put the original wordpress index.php into here? Bearing in mind I have an index.php on the outside which has the following which is correct:

    <?php
    /**
     * Front to the WordPress application. This file doesn't do anything, but loads
     * wp-blog-header.php which does and tells WordPress to load the theme.
     *
     * @package WordPress
     */
    
    /**
     * Tells WordPress to load the WordPress theme and output it.
     *
     * @var bool
     */
    define('WP_USE_THEMES', true);
    
    /** Loads the WordPress Environment and Template */
    require('./jonbw/wp-blog-header.php');
    ?>
    Moderator t-p

    (@t-p)

    Perhaps you want to consider Download WordPress again and replacing your copies of everything EXCEPT the wp-config.php file and the /wp-content/ directory with fresh copies. This should replace your core files without changing your content and settings in wp-config.php file and the /wp-content/ directory.

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