19 posts
  • Has been part of the Envato Community for over 4 years
  • Has collected 1+ items on Envato Market
  • Sells items exclusively on Envato Market
  • Located in United States
schmackLab says

Hey everybody,

I just a finished a new theme for a personal site and while the theme has uploaded and appears to function I got these errors on the upload.

Warning: fopen(/home1/schmackl/public_html/wp-content/themes/schmackLab-v1.0/style.css) [function.fopen]: failed to open stream: No such file or directory in /home1/schmackl/public_html/wp-includes/functions.php on line 3598

Warning: fread(): supplied argument is not a valid stream resource in /home1/schmackl/public_html/wp-includes/functions.php on line 3601

Warning: fclose(): supplied argument is not a valid stream resource in /home1/schmackl/public_html/wp-includes/functions.php on line 3604

Even though the theme works I am worried about these errors since I installed last week put up a ton of content and then had an explicable data base crash (possibly due to plugins, not really sure).

I had to delete the database and start over and would like avoid another catastrophe down the line.

Thanks for you help I’ve gad no luck finding a solution on the Wordpress forums.

155 posts
  • Has been part of the Envato Community for over 5 years
  • Located in Canada
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
Warll says

functions.php is trying to open a file that does not exist. It shouldln’t harm the DB but it will likely break some of the theme’s functionality.

19 posts
  • Has been part of the Envato Community for over 4 years
  • Has collected 1+ items on Envato Market
  • Sells items exclusively on Envato Market
  • Located in United States
schmackLab says

Any idea how to fix it?

19 posts
  • Has been part of the Envato Community for over 4 years
  • Has collected 1+ items on Envato Market
  • Sells items exclusively on Envato Market
  • Located in United States
schmackLab says

I found this plugin authors comments regarding the same error under different circumstances.

A lot of you have commented and e-mailed me regarding an fopen PHP error that occurs during the usage of one of my plugins. The reason for this is because of your PHP configurations, editted by your web host. Your web host must have disabled URL file-access, which is the method I use to retrieve the plugin support link which is displayed on my plugins, which you have an option to enable/disable.

It took a while, but I’ve released an update to every plugin I’ve released. In this update, I no longer use the fopen command. I use cURL instead, which should solve the problem for the users which have this issue.

If this is a problem with my host (bluehost) do I need to worry about it? Thanks for any help.

155 posts
  • Has been part of the Envato Community for over 5 years
  • Located in Canada
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
Warll says

It sounds like you only need to update the plugin.

19 posts
  • Has been part of the Envato Community for over 4 years
  • Has collected 1+ items on Envato Market
  • Sells items exclusively on Envato Market
  • Located in United States
schmackLab says

It’s not the plugin. i don’t have that plugin installed they just had a similar experience and is the only place I have found anything resembling a solution.

155 posts
  • Has been part of the Envato Community for over 5 years
  • Located in Canada
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
Warll says

Then fix functions.php to not use ‘fopen’.

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by