• I added a TAG cloud widget to my blog and it showed up ok on the admin part (moved) it to my sidebar – fine.

    While writing pages the other night I went to publish and “view site” and its blank with this error:

    Fatal error: Call to undefined function: add_action() in /homepages/10/d209456168/htdocs/wordpress/index.php on line 186

    What did I do? How can I fix this?
    my site is http://www.sledgirl.com

Viewing 2 replies - 1 through 2 (of 2 total)
  • Fatal error: Call to undefined function: add_action() in /homepages/10/d209456168/htdocs/wordpress/index.php on line 18

    THAT index.php should not have 186 lines in it. Thats your first clue.

    Whats inside it?

    This is what ought to be inside it:

    <?php
    /* Short and sweet */
    define('WP_USE_THEMES', true);
    require('./wp-blog-header.php');
    ?>

    if you are trying to put your theme’s index.php in your wordpress root, you arent doing things properly.

    Thread Starter sledgirl

    (@sledgirl)

    looks like the widget went to the index file instead of contents
    thanks

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Fatal Error: Undefined function: add_action’ is closed to new replies.