• Resolved Iltherion

    (@iltherion)


    I’m trying to install some themes for my website, that I host on my localhost using XAMPP. I wanted to use glossy stylo, but everytime I try to load a file, I get the error: Fatal error: Call to undefined function get_header() in C:\Users\*****\Desktop\xampp\htdocs\wordpress\wp-content\themes\glossy-stylo\index.php on line 2. This is automatticly for my index.php file. I tried to use other themes aswell, but that gave me the same error. I have tried to paste the code from the header.php file into the index.php file, but then another error appeared: Fatal error: Call to undefined function language_attributes() in C:\Users\*****\Desktop\xampp\htdocs\wordpress\wp-content\themes\glossy-stylo\index.php on line 2. Because of this I think that all my functions are not working. I tried looking for other posts but I was not able to find any information that helped me. Help would be really much appreciated. (Btw, the ***** are just the name of the user.)

Viewing 3 replies - 1 through 3 (of 3 total)
  • Dan Russell

    (@danrussell)

    Hello Iltherion,

    Please confirm if you have tried installing the theme from Dashboard or not.

    It appears the issue with the theme. Remove all the files of the theme glossy-stylo from “themes” folder, and upload the fresh theme folder.

    Thread Starter Iltherion

    (@iltherion)

    Hey Dan,
    I haven’t done it through the dashboard, I downloaded the zip file, and extracted the folder to my desktop. After that i moved it into the Desktop/xampp/htdocs/wordpress/wp-content/themes file, and tried to open it, that’s where it went wrong. I do not think it is only the glossy-stylo theme, because the pre-made wordpress themes twentyfoureen twentythirteen and twentytwelve are aslo not working.
    Thank you for your reply ??

    Thread Starter Iltherion

    (@iltherion)

    I fixed it, but thanks anyways ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Fatal error: Call to undefined function get_header()’ is closed to new replies.