• Resolved rickybuchanan

    (@rickybuchanan)


    I came across this plugin from the wptavern post – it looks awesome but unfortunately I have had some problems generating and installing favicons for atmac.org using this plugin.

    Following the process as described I was walked through the generation and it appeared to complete correctly, saying “Favicon installed!” at the end. When I visit the Appearance > Favicon page it says “The favicon is up and ready.” and displays a correct-looking preview. Checking the HEAD section of the html page shows me a bunch of correctly formatted links. But there are no favicons visible on my site, and pointing my browser at atmac.org/favicon.ico gives me a 404 error.

    Some poking around determines that my uploads directory has a subdirectory called ‘fbrgf’ which contains 21 images, plus browserconfig.xml plus the preview. The images appear to contain the correct contents.

    There are no relevant rewrite rules in the .htaccess file though, and I was not prompted to add anything in, so I see why the actual files (hidden in contents/uploads/fbrgf) are not being seen. I suspect that the iThemes Security plugin may be preventing your plugin from writing to .htaccess, but if it is iThemes Security I had no luck trying to deactivate the relevant rules.

    Does the plugin check that the rewrite rules have been successfully added to the htaccess file? I’ve seen other plugins give messages asking me to manually add things when they failed at writing directly – that’s a good way to get around problems like this.

    Thanks for what looks like a wonderfully useful plugin – much appreciated.

    https://wordpress.org/plugins/favicon-by-realfavicongenerator/

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

    (@phbernard)

    Thank you very much for this comprehensive feedback!

    The plugin tries to rely on .htaccess only when it is available. To do this, it checks the permalinks setting. Since permalinks use the .htaccess to get the job done, if they are activated, the plugin should be able to use .htaccess. I was looking for something more sophisticated, but I didn’t find anything interesting (in particular: http://wordpress.stackexchange.com/questions/142273/checking-that-the-rewrite-api-is-available).

    The first thing I’m going to do now is to play with iThemes Security to reproduce the issue. I’ll keep you posted.

    Plugin Author phbernard

    (@phbernard)

    I didn’t have time to investigate this issue. However, v1.0.4 of the plugin was just released. It allows you to not use the rewrite API. Although this is not the ultimate solution, it might be a descent workaround.

    Plugin Author phbernard

    (@phbernard)

    I tested iTheme Security and I confirm the issue, just as you suggested: iTheme Security can secure .htaccess. When this happens, the FbRFG plugin is unable to updated .htaccess, but unfortunately it is not aware of the failure.

    To fix the issue, the plugin should check the access rights of the .htaccess file, when available (after all, WP can be hosted in non-Apache environments).

    Plugin Author phbernard

    (@phbernard)

    The plugin v1.0.5 was just released. It should fix the issue. You will need to re-generate the favicon (ie. go to Appearance > Favicon, etc.).

    Don’t hesitate to re-open the ticket if there is something wrong.

    Thread Starter rickybuchanan

    (@rickybuchanan)

    Thanks so much for your awesome checkings of this, I really appreciate the timely support 🙂

    Plugin Author phbernard

    (@phbernard)

    You’re welcome! Thank you again for the feedback. I didn’t knew .htaccess can sometimes be protected against writing.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘FBRFG not updating htaccess rewrite rules’ is closed to new replies.