Scott Cariss
Forum Replies Created
-
quotes now added and new version created.
Thanks for spotting this.
Kind Regards
Scott
In normal circumstances a web host shouldn’t allow access to ‘.’ files publicly hence why I chose to store the data in a ‘.’ file.
Next version I will include a htaccess file to block access to the ‘.’ files. But also I will put in FAQ to CHMOD the data files so that they are not publicly viewable but editable by PHP.
As for contacting me privately you can get my email from any of the source files of my plugin.
Kind Regards
Scott Cariss
Hello all,
I have forked the plugin and you can get it over at: https://www.ads-software.com/extend/plugins/wordpress-file-monitor-plus/
Its a complete re-write of WordPress File Monitor.
It doesnt use a stylesheet to trigger scans but uses the cron built into wordpress, or if you prefer you can run it via an external cron.
Hello Tom,
I’d recommend that you set your scan root back one directory. The idea of this plugin is to scan wordpress system files also to tell you if any core files have changed without your knowing.
I have just tagged a new version of the plugin so you should see version 1.1 soon. This version allows you to save the scan data to file instead of the database. So in theory you shouldn’t run into any limit on the amount of scanned files.
If you feel this fixes the problem then please mark this post as resolved ??
Scott
Saving to multiple records I don’t think is a good idea. Already I’m using 3 options in the DB and the idea is to try and keep that to a minimum.
Plus I wouldn’t know where to split the data? Web hosts can have
max_allowed_packet
set to any limit. I have even found posts of people saying they have it set as low as 1MB.I think I will introduce a method to save to a file as well just in-case others have the same issue.
Anyway, thank you Tom for taking the time to debug and post on the forum
I think what is happening here Tom is that you are scanning a lot of files and the data is becoming so big that your reaching the insert limit set on MySQL by your webhost.
Are you using all three scan methods at once?
If you are try just using the md5 hash or modified time. This will cut down on the data size to save on scan.
Its not ideal but I’ll look into finding another way to save the scan data.
To get around this I might have to look at a solution of saving to a file instead.
Hello Tom
Your setup should work so I wont say its that.
However you mention
wpfm_listing
in you options table but that is from the pluginWordPress File Monitor
and not mine.The three options that you should have for my plugin is
sc_wpfmp_settings
on install,sc_wpfmp_scan_data
on a successful scan andsc_wpfmp_admin_alert_content
if file changes have been found.Firstly do you have
sc_wpfmp_scan_data
with any data in it?Scott
Can you please give more information of what system your running on?
How have you got the cron setup?
What WordPress version are you running?
Are you using PHP4 or PHP5?
Whats you current file check path?