Call to undefined function (4 posts)

  1. TSemmes
    Posted 4 years ago #

    I was trying to make changes to the functions.php file so I could add an additional menu to my WordPress template (it only came with one).
    Ok, so I am a little in over my head but I was following a tutorial on this website and thought I could at least try.

    Anyway I got this error:
    Fatal error: Call to undefined function dd_action() in /home/semmesco/public_html/test/wp-content/themes/burette/functions.php on line 46
    And now I can't view the blog or switch the template or anything.

    The blog can be viewed at http://semmesco.com/test/.

    When I had this error message I went to the original template files and copied and pasted the functions.php file so I could eliminate any changes I had made. (There weren't that many and I am pretty sure I had deleted them anyway). But I still get the message. Here is the code that seems to be giving a problem:

    // global scripts
    add_action('init', 'aq_init_scripts');
    add_action('template_redirect', 'aq_print_scripts');

    Line 46 seems to print to the blank line at the end of the code.
    I have done some research on google and tried the different fixes for this there but nothing works. Part of the problem might be that the poster assumes some knowledge of PHP and that is not the case. So I might be pasting the fix code but in the wrong place

    Any help is appreciated. Thank you!

  2. Nanang Rukmana
    Posted 4 years ago #

    search this phrase in function.php

    function dd_action(
  3. TSemmes
    Posted 4 years ago #

    What do I do with it when I find it?

  4. TSemmes
    Posted 4 years ago #

    Oh, I see it should read "add_action".... Thank you!

Topic Closed

This topic has been closed to new replies.

About this Topic