• Resolved Scott Fennell

    (@scofennellgmailcom)


    Hi! Thank you for the excellent plugin.

    After udpating WordPress core and your plugin, we get this php warning:

    fopen(/nas/content/live/lexblogms/wp-content/blogs.dir/1321/files/wpcf7_uploads/.htaccess): failed to open stream: Permission denied

    Some unique things about our setup:
    – It’s a blogs.dir multisite network.
    – It’s on WP Engine.
    – It’s on php 7.4
    – It uses nginx rules instead of htaccess rules
    – There are hundreds of blogs on this install, so creating an htaccess file in every folder is not a scalable solution.

    Full stack trace from new relic:

    in fopen called at /nas/content/live/lexblogms/wp-content/plugins/contact-form-7/includes/file.php (247)
     in wpcf7_init_uploads called at /nas/content/live/lexblogms/wp-includes/class-wp-hook.php (290)
     in WP_Hook::apply_filters called at /nas/content/live/lexblogms/wp-includes/class-wp-hook.php (316)
     in WP_Hook::do_action called at /nas/content/live/lexblogms/wp-includes/plugin.php (484)
     in do_action called at /nas/content/live/lexblogms/wp-content/plugins/contact-form-7/load.php (118)
     in wpcf7_init called at /nas/content/live/lexblogms/wp-includes/class-wp-hook.php (290)
     in WP_Hook::apply_filters called at /nas/content/live/lexblogms/wp-includes/class-wp-hook.php (316)
     in WP_Hook::do_action called at /nas/content/live/lexblogms/wp-includes/plugin.php (484)
     in do_action called at /nas/content/live/lexblogms/wp-settings.php (560)
     in require_once called at /nas/content/live/lexblogms/wp-config.php (164)
     in require_once called at /nas/content/live/lexblogms/wp-load.php (37)
     in require_once called at /nas/content/live/lexblogms/wp-blog-header.php (13)
     in require called at /nas/content/live/lexblogms/index.php (17)
Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter Scott Fennell

    (@scofennellgmailcom)

    I understand this is a free and excellent plugin. To whom it may concern, the lack of response makes it hard for me to recommend using this plugin.

    Thread Starter Scott Fennell

    (@scofennellgmailcom)

    Hi, I was wondering if there were plans to address this.

    Thread Starter Scott Fennell

    (@scofennellgmailcom)

    Hi, it seems like it would be easy, helpful, and harmless to first check if this file exists before referencing it. Any plans to address this?

    Thread Starter Scott Fennell

    (@scofennellgmailcom)

    Actually maybe it’s a permissions thing rather than a file_exists thing. In any event, it seems like there could be some defensive coding here.

    Thread Starter Scott Fennell

    (@scofennellgmailcom)

    Hi mods, I am trying to report this ticket as a security violation because it was stupid of me to disclose my server path publicly here. Can this ticket be deleted?

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Your server path creates no risk. The path to my site is /var/www/www.sterndata.com. What can you do with that?

    Unless it is an extreme case, posts and replies are not edited here.

    Forum topics will only be edited or deleted if they represent a valid legal, security, or safety concern.

    See https://wordpress.org/support/guidelines/#deleting-editing-posts and https://wordpress.org/about/privacy/

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘php warning: fopen(/nas/content/live/lexblogms/wp-content/blogs.dir/1321/files/’ is closed to new replies.