• My site has been throwing some errors related to the Popup Maker plugin. I posted this error to plugin developer directly, and it seems to be a problem with wordpress, not the plugin. See that thread here: https://www.ads-software.com/support/topic/errors-on-site-from-popup-maker?replies=6#post-8479330

    The plugin still works, but these are the errors showing up in my log:

    PHP Warning: fopen(/nas/content/live/outbounddev/wp-content/plugins/popup-maker/popup-maker.php): failed to open stream: Permission denied in /nas/content/staging/outboundengine/wp-includes/functions.php on line 4463

    PHP Warning: fread() expects parameter 1 to be resource, boolean given in /nas/content/staging/outboundengine/wp-includes/functions.php on line 4466

    PHP Warning: fclose() expects parameter 1 to be resource, boolean given in /nas/content/staging/outboundengine/wp-includes/functions.php on line 4469

    It creates issues for me on my staging site because it’s in debug mode.

    I already tried to change the folder permissions for the plugin, but they are set to the maximum that my hosting company allows.

    Does anyone know what’s causing this?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    here’s the key:

    failed to open stream: Permission denied

    The permissions and/or ownwership of /nas/content/live/outbounddev/wp-content/plugins/popup-maker/popup-maker.php and/or the directory in which it lives are incorrect.

    Check the permissions/ownership for the other plugin directories and set this one to match.

    @erinwilder: It looks to me as though WordPress is trying to read the plugin’s main file (popup-maker.php) in order to obtain the information from its headers (i.e., all the stuff at the top of the file such as the Plugin Name, URI, Description, etc); but is unable to do so due to a permissions issue, which would originate on the server itself.

    So, I think your best bet here would be to contact your host, and ask them about why WordPress wouldn’t be allowed to open that file on your server.

    You mentioned in the other thread that the host wouldn’t allow you to give the folders more permissions, but you’d also want them to look into other things like the permissions of the files themselves, “which user owns these files and which user is running the WordPress scripts” (sometimes these are not the same user), is the fopen function itself being blocked, etc.

    @girlieworks – Agreed, they should be able to set them properly. Some hosts such as WP Engine which use SFTP and non root accounts for file transfers. They have a button to reset file permissions for that exact reason. When I upload using my credentials the files get an incorrect server user that doesn’t match the “webserver” user account.

    That reset it likely what is needed here. If you had more access we could give you commands to run, but in this case the host likely is the best source to fix it.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘PHP Warning: fopen failed to open stream’ is closed to new replies.