WordPress.org

Forums

WordPress Template (5 posts)

  1. airmikec
    Member
    Posted 1 year ago #

    Hi Everyone,

    I am very new to WordPress. I have only a small idea on how it works. I understand some PHP from a CS point of view, but a graphic artist that works with me gave me a WordPress template. I put the template on my server which is running PHP-5.3.24 and I installed every plugin available just to bypass any errors. When I try and view the index.php of this template I get 2 errors in my php error log. I have tried a couple things from previous posts and it's not working. Here are my errors:

    1)
    [03-Nov-2013 19:48:52 America/Denver] PHP Fatal error: Call to undefined function do_action() in C:\inetpub\wwwroot\fatbottomspirits.com\JG\index.php on line 10

    2)
    [03-Nov-2013 19:49:07 America/Denver] PHP Fatal error: Call to undefined function language_attributes() in C:\inetpub\wwwroot\fatbottomspirits.com\JG\header.php on line 13

    I can't seem to fix either of these errors and if anyone can give me some ideas on how to fix the problem, it would be greatly appreciated. Thank you for your time and I hope you all have a great day.

    -Mike

  2. Tara
    Volunteer Moderator
    Posted 1 year ago #

    Fatal error: Call to undefined function do_action()

    try manually re-uploading all files and folders EXCEPT the wp-config.php file and the /wp-content/ directory from a fresh download of WordPress. Make sure that you delete the old copies of files & folder before uploading the new ones. Read the Manual Update directions first!

    Fatal error: Call to undefined function language_attributes()

    - make sure all of the theme files got uploaded and are not 0 byte
    - Also check your theme's functions.php and make sure this function is defined

  3. airmikec
    Member
    Posted 1 year ago #

    Sorry for being a bit confused. Again I am new to WordPress. I did glance at the Manual Update initially. Do I actually have to have WordPress installed on my server? I kind of assumed WordPress was like Dreamweaver. You have a program that helps you build websites. I noticed the WordPress Template was a bunch of PHP files and since I had PHP running on my server, I figured we could just load all the files on my server and view it from the web as we make developmental changes. Is this not possible?

    Oh and to answer some questions, since I don't have WordPress installed I don't have a wp-config.php to delete and all of my theme files are greater than 0 Bytes.

    I also just checked the functions.php where I thought do_action() and language_attributes() would be, and due to laziness before I just found out that those functions aren't even in the file. Could this be the problem?

    -Mike

  4. WPyogi
    Forum Moderator
    Posted 1 year ago #

    Do I actually have to have WordPress installed on my server?

    Yes.

    Have you read this?

    http://codex.wordpress.org/New_To_WordPress_-_Where_to_Start#Step_Three_-_Install_WordPress

  5. manavkumar
    Member
    Posted 1 year ago #

    Fatal error occurs because WordPress didn't find these 2 functions. Make sure these 2 functions defined in functions.php file and if you are using any custom plugin or widgets then check these functions in your custom plugins or widgets.
    Before doing anything please read this do_action() and language_attributes()

Topic Closed

This topic has been closed to new replies.

About this Topic