• Resolved computershowtopro

    (@computershowtopro)


    I have a wp installation with browscap-db.php present in /wp-content/plugins/wp-slimstat/browscap.
    But the dashboard still says in several places, that I should install it.
    However, trying to install it by clicking on the Install button, results in an error, stating that folder permissions might be wrong. All other plugins can read/write to their respective folders, and I’ve also even tried uploading the browscap-db.php manually to /wp-content/uploads/wp-slimstat/ to no avail. Where should this browscap-db.php file reside ?
    I’m an advanced user, I can easily put it whereever it needs to reside.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Jason Crouse

    (@coolmann)

    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

    Thread Starter computershowtopro

    (@computershowtopro)

    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 ?

    Thread Starter computershowtopro

    (@computershowtopro)

    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.

    Plugin Author Jason Crouse

    (@coolmann)

    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.

    Plugin Author Jason Crouse

    (@coolmann)

    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

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Browscap-dp.php is present, but NOT SEEN by slimstat’ is closed to new replies.