Support » Fixing WordPress » WordPress 2.8.4 Theme install error

  • Resolved graeme80

    (@graeme80)


    Hello,

    I am new to wordpress and have been trying to learn to build my own Theme.

    I have installed WP locally using XAMPP.

    I am creating a new folder here xampp/htdocs/wordpress/wp-content/themes
    And making an index.php and style.css file in that folder.

    In style.css I am entering the theme details in the format described on wordpress.org ( I am inputting my own info)

    /* Theme Name: Rose Theme URI: the-theme’s-homepage
    Description: a-brief-description
    Author: your-name
    Author URI: your-URI Template: use-this-to-define-a-parent-theme
    –optional Version: a-number–optional . General comments/License Statement if any.
    .
    */
    The instructions I am following say that WP should recognise this new theme and display it as an option under appearance.

    I have also tried to upload the style.css and index.php as a .zip and I ghet the following error

    Warning: file(C:\xampplite\htdocs\wordpress/wp-content/themes/Wrath/style.css) [function.file]: failed to open stream: No such file or directory in C:\xampplite\htdocs\wordpress\wp-includes\theme.php on line 180

    Warning: implode() [function.implode]: Invalid arguments passed in C:\xampplite\htdocs\wordpress\wp-includes\theme.php on line 180

    Any help would be appreciated

    Thanks
    Graeme

Viewing 7 replies - 1 through 7 (of 7 total)
  • I think it doesn’t like the colon in your Author URI line. I changed what you had to the following:

    /*
    Theme Name: Rose Theme URI: the-theme's-homepage
    Description: a-brief-description
    Author: your-name
    Author URI: your-URI Template use-this-to-define-a-parent-theme
    Version: a-number--optional . General comments/License Statement if any.
    */

    After that it worked fine. Your best bet is probably to copy the style.css from another theme, edit the author and theme name etc at the top, and wipe all the actual stlye infomation out

    [signature moderated Please read the Forum Rules]

    Hi,

    It seems that your theme is not compatible with wordpress 2.8.4. First make sure it is updated to support latest version of the wordpress.

    Thanks,

    Shane G.

    Thread Starter graeme80

    (@graeme80)

    Hi,

    Thanks to both of you or getting back to me.

    The theme is importing now but not showing under the appearance section so i can’t use it on my blog.

    Any ideas?

    This is what have have on style.css

    /*
    Theme Name: WordPress Test
    Theme URI: http://localhost/wordpress/
    Description: My trial run
    Version: 1.1
    Author: Graeme Smyth
    Author URI: http://www.test.com
    Tags: black, fixed-width, custom-header, photoblogging, dark, left-sidebar
    
    */

    Many Thanks
    Graeme

    I copied that excerpt into a style.css file in a theme folder and it shows just fine in the appearance section of my wp-admin. How did you upload the file? Is it possible the permissions are not correct for php to read the file?

    [signature moderated Please read the Forum Rules]

    I’m having the same problem with the starkers theme.

    I’m trying to install the starkers theme by just copying the whole starkers theme folder and pasting it inside file:///C:/wamp/www/website/wp-content/themes

    When i paste it in there, i get the error:

    Warning: file(C:\wamp\www\paperbusiness/wp-content/themes/paperbusiness/style.css) [function.file]: failed to open stream: Permission denied in C:\wamp\www\website\wp-includes\theme.php on line 180

    Warning: implode() [function.implode]: Invalid arguments passed in C:\wamp\www\website\wp-includes\theme.php on line 180

    There is another way to install a theme within the dashboard itself. I realised that when i install the starkers theme from the dashboard itself, i don’t get that error.

    Does this mean that WordPress 2.8.4 doesnt allow you to just paste the theme folder in the themes folder anymore?

    Any solutions?

    Thanking you in advance

    I get the file not found error when uploading some themes in zip format, but not others.

    On the ones that have the problem, I notice that the folders are not created, but rather the files are named with the folder name in it.

    so the file name in the root theme folder is actually

    folder\sytle.css

    somehow the back slash got incorporated into the file name.

    weird…will look more closely at zips that upload properly vs ones that don’t tonight.

    @rob6188

    try compressing your themes folder using the default tool in your OS and not a third party utility.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘WordPress 2.8.4 Theme install error’ is closed to new replies.