• I can`t install a theme and i keep finding this error in the php log:

    PHP Warning: fclose(): supplied argument is not a valid stream resource in /home/sites/………../public_html/wp-includes/functions.php on line 4290

    fread(): supplied argument is not a valid stream resource in /home/sites/……………/public_html/wp-includes/functions.php on line 4287

    PLEASE help….

Viewing 4 replies - 1 through 4 (of 4 total)
  • Can you install any other theme? Perhaps that theme is doing something weird.

    Otherwise, you could also try re-installing WordPress.

    You might also want to check this thread and see if it helps.

    What Theme are you attempting to install?

    I would be extremely wary of any Theme using fclose(), and if you’re on a shared-hosting environment, your PHP setup may be configured not even to allow fopen() and fclose().

    @christine:

    Note that I recommend against the recommendation in that linked thread. Enabling allow_url_fopen and allow_url_include introduce potential security exploit vectors.

    Thanks for the clarification Chip. I should have pointed out that in that thread, the mention of having the zip file was the culprit. I agree with you about editing the php.ini

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘PHP Warning: fclose():’ is closed to new replies.