I am getting an error message When uploading some themes .
Warning: fopen(/home/..../public_html/...../wp-content/themes/creativeart/style.css) [function.fopen]: failed to open stream: No such file or directory in /home/...../public_html/...../wp-includes/functions.php on line 4165
Warning: fread(): supplied argument is not a valid stream resource in /home/...../public_html/...../wp-includes/functions.php on line 4168
Warning: fclose(): supplied argument is not a valid stream resource in /home/...../public_html/...../wp-includes/functions.php on line 4171
What does it mean ?I don’t understand if the problem in themes or Am I missing some thing in my WordPress Installation? I have tried the same themes in two wordpress installations and got the same error .
I am listing some of themes here .
Does any one have idea on such error?
From the looks of things, it’s a server issue. The WordPress theme uploader uses
fopen()
to transfer files from one location to the server. It looks like there’s a timeout or access error because a)fopen
can’t find the file that it’s supposed to be transferring and b) thefread
andfclose
functions can’t find the data stream to read the file and close it.I would recommend manually uploading the themes instead to bypass this error. Instead of uploading the
.zip
file via WordPress, do the following:/wp-content/themes/
This will entirely bypass any kind of
fopen
/fread
/fclose
errors you’re getting. If there’s still a problem, then it’s an issue with either your server, your WordPress installation itself, or the actual theme and will require some more in-depth troubleshooting.