• I get the below error text when trying to install a theme.
    I was using an older version of WP and got the same error, and thought maybe my hacking of functions.php had caused a problem, so I upgraded to the latest WP, thinking that probably reloads a clean functions.php on? but still get same error.
    It says “Theme installed successfully.” but it is not visible in the themes area, not visible/working on the site, and theme has to be manually deleted from the directory to attempt a reinstall.

    Error text (with personal ident values changed):

    Unpacking the package…
    
    Installing the theme…
    
    Theme installed successfully.
    
    Warning: fopen(/home/swit/public_html/(mysite).com/wp-content/themes/PolishedTheme/style.css) [function.fopen]: failed to open stream: No such file or directory in /home/swit/public_html/(mysite).com/wp-includes/functions.php on line 4165
    
    Warning: fread(): supplied argument is not a valid stream resource in /home/swit/public_html/(mysite).com/wp-includes/functions.php on line 4168
    
    Warning: fclose(): supplied argument is not a valid stream resource in /home/swit/public_html/(mysite).com/wp-includes/functions.php on line 4171
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter stagedinburgh

    (@stagedinburgh)

    Ah I did just find some additional information at the bottom of the themes page:

    Broken Themes
    
    The following themes are installed but incomplete. Themes must have a stylesheet and a template.
    Name 	Description
    
    PolishedTheme 	Stylesheet is missing.

    Not sure if this is a relevant error though, as nothing was mentioned about css in install error, and there IS a style.css in the theme dir

    Thread Starter stagedinburgh

    (@stagedinburgh)

    Problem solved. If anyone else has similar issues, the solution is that the theme files were too deep in the file structure of the theme zip, had to make a new seperate zip without the extra folders it comes with by default.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘functions error on theme install’ is closed to new replies.