Strange errors when uploading new template to WP

3 replies
  • WEB DESIGN
  • |
I am attempting to upload my template to WP. It uploads just fine, then gives me these errors. After I click "Activate" it tells me the theme is broken.

I am using GoDaddy to host. I am new to Wordpress, but familiar with web design and hosting.

I dont think I did anything to my CSS, but getting these errors when trying to upload my template:

Warning: fopen(D:\Hosting\5911503\html/wp-content/themes/site/style.css) [function.fopen]: failed to open stream: No such file or directory in D:\Hosting\5911503\html\wp-includes\functions.php on line 4165

Warning: fread(): supplied argument is not a valid stream resource in D:\Hosting\5911503\html\wp-includes\functions.php on line 4168

Warning: fclose(): supplied argument is not a valid stream resource in D:\Hosting\5911503\html\wp-includes\functions.php on line 4171


Thoughts? Suggestions?

Thanks:confused:
#errors #strange #template #uploading
  • Profile picture of the author phpbbxpert
    Every WP theme requires a style.css in it's containing folder.
    And in that
    style.css the first few lines must be a comment formatted like this
    /*
    Theme Name: Twenty Ten
    Theme URI: WordPress › Blog Tool and Publishing Platform
    Description: The 2010 default theme for WordPress.
    Author: the WordPress team
    Version: 1.0
    Tags: black, blue, white, two-columns, fixed-width, custom-header, custom-background, threaded-comments, sticky-post, translation-ready, microformats, rtl-language-support, editor-style, custom-menu (optional)

    General comments and license statement (optional).
    */

    Theme Development « WordPress Codex
    {{ DiscussionBoard.errors[2878305].message }}
  • Profile picture of the author mywebwork
    Originally Posted by maxmyer View Post

    [I]Warning: fopen(D:Hosting5911503html/wp-content/themes/site/style.css) [function.fopen]: failed to open stream: No such file or directory in D:Hosting5911503htmlwp-includesfunctions.php on line 4165
    I'm confused - you say you are hosting with GoDaddy (WordPress on GoDaddy, you have my deepest sympathies!) but the error message looks like it is looking for your CSS file on your local hard disk! In the "D:Hosting" folder.

    Were you running this locally, or did you edit it locally? Seems to me the path is the problem

    Bill
    {{ DiscussionBoard.errors[2878441].message }}
    • Profile picture of the author IsGabeW
      I'm confused - you say you are hosting with GoDaddy (WordPress on GoDaddy, you have my deepest sympathies!) but the error message looks like it is looking for your CSS file on your local hard disk! In the "D:Hosting" folder.

      Were you running this locally, or did you edit it locally? Seems to me the path is the problem
      Bill, yes, I was editing the template locally. I thought the path might have been a problem, but not sure where it is reading this path from?

      So basically, the error messages are telling me that something cant find the CSS style sheet because its currently trying to read from my D drive...which is obviously not correct.

      Do you know what this "something" might be so I can correct the path?

      When I uploaded the .zip file, it also contained the CSS folder with style, layout & reset CSS in it.

      Thanks for your help
      {{ DiscussionBoard.errors[2878760].message }}

Trending Topics