WordPress.org

Ready to get started?Download WordPress

Forums

[plugin: wordpress-file-monitor ] doesn't work on WP 2.8.6 ? (11 posts)

  1. talgalili
    Member
    Posted 4 years ago #

    Hi there,
    I was a happy user of wordpress-file-monitor , but for some reason it stopped working lately.
    I turned off the plugins I thought where in the way, but it didn't help.

    I upgraded WP so it might have something to do with it.
    Also, I changed the file permission throughout my blog, but can't recall what was different from when the plugin did work for me.

    Any advice ?

    Tal

    http://wordpress.org/extend/plugins/wordpress-file-monitor/

  2. mattwalters
    Member
    Posted 4 years ago #

    The plugin does seem to be working fine with 2.8.6 on my site and others. You mentioned that you did some permissions changes. Whatever user PHP runs as will need at least read permissions to any files you need the plugin to scan. Otherwise it will error out. I need to add some error checking in for this probably, but it should not be a compatibility issue between 2.8.6 and the plugin. You might need to work with your web host to make sure that the user PHP is running as has the correct permissions to the files.

  3. talgalili
    Member
    Posted 4 years ago #

    mmm...

    That is good to know, and it might be the case.

    Looking forward to your next release.

    Cheers,
    Tal

  4. talgalili
    Member
    Posted 4 years ago #

    Hi mattwalters,
    I used the shell command:
    ls -R -ali

    And found that (almost) all of my directories has read permissions.
    (especially the ones relevant to what I checked the plugin with).

    So I suspect the problem isn't there.

    Any more suggestions ?

    Thanks.
    Tal

  5. mattwalters
    Member
    Posted 4 years ago #

    The important part of my statement was, "Whatever user PHP runs as will need at least read permissions."

    You may have read permissions to it, but that doesn't mean the group the user PHP is running as has read permissions to all of the files. Without knowing more about your hosting setup.

    If I code in some error checking for this, it won't totally solve your problem. It will still only be able to monitor files with the correct permissions.

  6. talgalili
    Member
    Posted 4 years ago #

    Thanks Matt.

    Two things:
    1) I noticed in my logs many 404 calls from the plugin. I guess it confirms your statements.
    2) Could you phrase what you wrote in a question with more detail so I (and others in the future) could ask their hosting service about it?

    Best,
    Tal

  7. mattwalters
    Member
    Posted 4 years ago #

    That should be plenty of detail for any reasonable host.

    On various server configurations PHP runs under different user accounts. It could run as the user "nobody" or it might be running as the user that owns the file. It all depends on how they set up their server to determine what user PHP runs as for a given request.

    Also, the plugin should not be throwing 404 requests. It is not monitoring URL's, it is monitoring files in the file system. The only 404 that could possibly be getting thrown by the plugin is when it tries to include itself as a CSS file to perform the scan. Can you share what 404's you are seeing (at least in part)?

  8. talgalili
    Member
    Posted 4 years ago #

    Hi matt,
    I reinstalled the entire blog (because of fear of a security breach).

    I now have the files set as in the codex.
    But still the plugin doesn't seem to notice changes I do to the files.

    I think I might need to check conflicts with plugins... :(

  9. mborin
    Member
    Posted 4 years ago #

    Can anyone help me with this error:

    Warning: Invalid argument supplied for foreach() in /wp-content/plugins/wordpress-file-monitor/wordpress-file-monitor.php on line 151

    Everything worked fine until I moved my site to a new server.

  10. mattwalters
    Member
    Posted 3 years ago #

    Sorry for the late response, but if you're still paying attention, you can try the latest version that should be available in a few moments (v2.3.3). It should take care of this.

  11. Flector
    Member
    Posted 3 years ago #

    I just install version 2.3.3 of the plugin (wp 3.0.1) and it's dont work. In error.log I see strings:
    "[Fri Oct 22 12:25:42 2010] [error] [client 195.2.87.110] PHP Warning: array_diff_key() [function.array-diff-key]: Argument #2 is not an array in /var/www/flector/data/www/tsnmebel.ru/wp-content/plugins/wordpress-file-monitor/wordpress-file-monitor.php on line 378, referer: http://www.tsnmebel.ru/articles/vidy-shkafov-kupe.html
    [Fri Oct 22 12:25:42 2010] [error] [client 195.2.87.110] PHP Warning: array_diff_key() [function.array-diff-key]: Argument #1 is not an array in /var/www/flector/data/www/tsnmebel.ru/wp-content/plugins/wordpress-file-monitor/wordpress-file-monitor.php on line 379, referer: http://www.tsnmebel.ru/articles/vidy-shkafov-kupe.html
    [Fri Oct 22 12:25:42 2010] [error] [client 195.2.87.110] PHP Warning: array_diff() [function.array-diff]: Argument #2 is not an array in /var/www/flector/data/www/tsnmebel.ru/wp-content/plugins/wordpress-file-monitor/wordpress-file-monitor.php on line 385, referer: http://www.tsnmebel.ru/articles/vidy-shkafov-kupe.html
    [Fri Oct 22 12:25:42 2010] [error] [client 195.2.87.110] PHP Warning: Invalid argument supplied for foreach() in /var/www/flector/data/www/tsnmebel.ru/wp-content/plugins/wordpress-file-monitor/wordpress-file-monitor.php on line 387, referer: http://www.tsnmebel.ru/articles/vidy-shkafov-kupe.html
    [Fri Oct 22 12:25:42 2010] [error] [client 195.2.87.110] PHP Warning: Invalid argument supplied for foreach() in /var/www/flector/data/www/tsnmebel.ru/wp-content/plugins/wordpress-file-monitor/wordpress-file-monitor.php on line 390, referer: http://www.tsnmebel.ru/articles/vidy-shkafov-kupe.html"

    what's wrong?

Topic Closed

This topic has been closed to new replies.

About this Topic