Hi,
starting with Slimstat v4.5, we replaced the old browscap-db.php file with a new optimized library, which comes as a separate ZIP file. It looks like you are still running an older version of Slimstat, and I would encourage you to upgrade to the latest version, also because it patches an XSS vulnerability discovered in v4.5 (as per our changelog). I’m sure everything will work as expected once you upgrade.
Best,
Jason
My slimstat’s version is 4.6.1
I’ve even tried uninstalling and reinstalling completely
I follow closely the wpwulndb every single day, and don’t usually run older version of software. This thing with me trying to upload the php file to the said folders, was merely because I couldn’t find any actual answer on wp forums or on your site, to this specific issue.
What can you recommend that I try ?
Actually I just found what the error stemmed from.
It looks like in order to install the Browscap DB, the FS_METHOD has to be on “direct” in wp-config.php, otherwise there will be an error like this:
“There was an error uncompressing the Browscap data file on your server. Please check your folder permissions and PHP configuration”.
The thing is, the folder permissions were ok, but slimstat doesn’t take into consideration WHAT filesystem access method it should use, upon uncompressing the new browscap DB, and tries to use “direct”, and that conflicts with wordpress if one has “ftpsockets” – as I had.
So in order to install the browscap DB, you have to set
define(‘FS_METHOD’,’direct’);
in wp-config.php, install browscap, and then you can set it back to “ftpsockets”.
Maybe this info will help you make the plugin a bit better.
Hi,
Thank you for looking into this. Your feedback is indeed quite helpful. We rely on WordPress’ internal functions to complete that task to unzip the file. It turns out ftpsocket doesn’t support this feature. We will make sure to check the access method, and if ftpsocket is detected, then we’ll display a more informative error message.
Thanks again for helping us improve our plugin!
Best,
Jason
My wp-config.php file did not have any line about ‘FS_METHOD‘
So I just added one line on it.
define(‘FS_METHOD’,’direct’);
Then solved and installed.
—
There was an error saving the Browscap data file on your server. Please check your folder permissions.
Hi @kengen,
this is going to be fixed in version 4.6.3.
if ( defined( 'FS_METHOD' ) && FS_METHOD != 'direct' ) {
return array( 3, __( 'Please set your <code>FS_METHOD</code> variable to "direct" in your wp-config.php file, or contact our support to obtain a copy of our Browscap Library.', 'wp-slimstat' ) );
}
This way there will be no confusion about the problem anymore.
Best,
Jason