WordPress.org

Ready to get started?Download WordPress

Forums

Visitor Maps Extended Referer Field
[resolved] canot read .htaccess (11 posts)

  1. ssiddiqi1
    Member
    Posted 1 year ago #

    After latest upgrade of the plugin, I am seeing error message in WP Admin Panel. Visitor Maps Extended Referer Field plugin complains that .htaccess file is missing. I checked, it is there. I had tried deactivating, then reactivating, uninstalling and re-installing the plugins. Nothing help. I downgraded to the previous version, which works. There seems to be a bug in the latest version, which was released 2 days ago.

    http://wordpress.org/extend/plugins/visitor-maps-extended-referer-field/

  2. ssiddiqi1
    Member
    Posted 1 year ago #

    This is the error
    /home5/bostonde/public_html/.htaccess could not be copied. IP and referer banning have been disabled. To enable those features, be sure /home5/bostonde/public_html/.htaccess exists, then reactivate the Visitor Maps Extended Referer Field plugin.

    And, yes path is correct so are permission set to 755 at .htaccess. The error occurs only with your latest version of 1.2.1

  3. President McCheese
    Member
    Plugin Author

    Posted 1 year ago #

    I wasn't able to reproduce this error, but that doesn't imply one doesn't exist. However, I made a couple of changes in version 1.2.2, which will hopefully resolve this issue.

    Thanks for reporting!

  4. ssiddiqi1
    Member
    Posted 1 year ago #

    In fact, I updated to version 1.2.2 and issue still exist on one server. On the other 1.2.2 works. What is the best way to clean up the plugin install?

  5. President McCheese
    Member
    Plugin Author

    Posted 1 year ago #

    For now, you would have to temporarily place a snippet of code in your theme header.

    <?php
        delete_option("vmerf_wp_version");
        delete_option("vmerf_banned_ips");
        delete_option("vmerf_banned_referers");
        delete_option("vmerf_htbackup");
        delete_option("vmerf_auto_update");
        delete_option("vmerf_auto_update_time");
    ?>

    Place that in your header.php file, run it once in a browser, and then delete the snippet. That will delete any saved data except the htaccess file.

    I am adding an option to the plugin to delete all of the saved data, including the htaccess data upon deactivation. This feature will be added to the next version.

  6. ssiddiqi1
    Member
    Posted 1 year ago #

    Thanks for help. I did a clean uninstall, then reinstall. Now it works. So apparently something went wrong during past upgrade.

  7. skylar180
    Member
    Posted 12 months ago #

    Thanks Jason for the solution. I've been having this problem for months.
    sky

  8. leosch
    Member
    Posted 11 months ago #

    I do have the same problem on a VPS, 3 wordpress installations, same error, I can do what I want. .htaccess is available and has 755

    Any idea? I use the latest version.

  9. President McCheese
    Member
    Plugin Author

    Posted 11 months ago #

    @leosch,

    Sounds like a server configuration issue, perhaps apache.

    If you have a test site on your server you can grant me temporary access to, I would be happy to troubleshoot it from there.

    Login credentials can be sent from http://websitedev.biz/contact/.

  10. mwhelan4
    Member
    Posted 10 months ago #

    Our site, rockchurchradio.com is experiencing the same error. I host with Wpengine.

    Plugin = Visitor Maps Extended Referer field (v 1.2.3)

    Visitor Maps Extended Notice

    /nas/wp/www/cluster-1673/mwhelan4/.htaccess could not be copied. IP and referer banning have been disabled. To enable those features, be sure /nas/wp/www/cluster-1673/mwhelan4/.htaccess exists, then reactivate the Visitor Maps Extended Referer Field plugin.

    Here's the reply from Wpengine after I sent them the error:

    Jason Stallings, Jun 06 02:28 pm (CDT):
    Hey Marc,

    I can confirm the .htaccess file is there, I'm not quite sure why the file can't be copied though. Unfortunately we can't change permissions, and usually that isn't needed.

    I'd contact the plugin developer, looks like the issue is found around line 347:

    if(!@copy(ABSPATH . ".htaccess", $htbackup)){
    return false;
    } else {
    return true;
    }
    Let me know how this works.

    Jason Stallings
    Twitter: @octalmage

    - - -- - - -

    Any help would be much appreciated,

    Thanks!
    Marc

  11. President McCheese
    Member
    Plugin Author

    Posted 10 months ago #

    Remove the @ symbol from the copy function to get the specific PHP error.

    if(!copy(ABSPATH . ".htaccess", $htbackup)){
    return false;
    } else {
    return true;
    }

    Copy the error to here, if you don't mind.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.