Support » Plugins » [plugin: wordpress-file-monitor ] doesn’t work on WP 2.8.6 ?

  • 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/

Viewing 10 replies - 1 through 10 (of 10 total)
  • 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.

    Thread Starter talgalili

    (@talgalili)

    mmm…

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

    Looking forward to your next release.

    Cheers,
    Tal

    Thread Starter talgalili

    (@talgalili)

    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

    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.

    Thread Starter talgalili

    (@talgalili)

    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

    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)?

    Thread Starter talgalili

    (@talgalili)

    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… 🙁

    mborin

    (@mborin)

    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.

    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.

    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?

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘[plugin: wordpress-file-monitor ] doesn’t work on WP 2.8.6 ?’ is closed to new replies.