• airmikec

    (@airmikec)


    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

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

    (@t-p)

    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

    Thread Starter airmikec

    (@airmikec)

    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

    WPyogi

    (@wpyogi)

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

    Yes.

    Have you read this?

    https://codex.www.ads-software.com/New_To_WordPress_-_Where_to_Start#Step_Three_-_Install_WordPress

    manavkumar

    (@manavkumar)

    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()

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘WordPress Template’ is closed to new replies.