• Resolved TStone

    (@tstone)


    Hello,

    Since a week back, no images have been shown on the site. Have taken forever to find the bug – which turned out to be the following code in a .htaccess file in the uploads directory:

    # MC4WP Start
    <Files mc4wp-debug-log.php>
    deny from all
    </Files>
    # MC4WP End

    If I delete that code, the site works again… for a short time, then the offending code is back again.

    Please, fix this!

Viewing 11 replies - 16 through 26 (of 26 total)
  • I’ve got the same problem on 4.8.1 – what was the resolution here?

    I am having the same problem. When I delete the content inside .htaccess (located in wp-content/uploads) or the file itself it solves the problem. But after a few hours it comes back. How can I fix this? All of my plugins and theme are up to date. I am using Apache 2.4.25 and this is what is inside the .htaccess file:
    # MC4WP Start
    # Apache 2.2
    <IfModule !authz_core_module>
    <Files mc4wp-debug-log.php>
    deny from all
    </Files>
    </IfModule>
    # Apache 2.4+
    <IfModule authz_core_module>
    <Files mc4wp-debug-log.php>
    Require all denied
    </Files>
    </IfModule>
    # MC4WP End

    Plugin Contributor Lap

    (@lapzor)

    What version of MC4WP plugin are you using?

    Thanks for letting me know.

    I am using 4.8.1

    Plugin Contributor Lap

    (@lapzor)

    We’ve fixed this in our plugin, an update will be released next week to solve this issue. Thanks for reporting the issue to us.

    This seems still not to be fixed, I just had a similar issue. In my error.log I can see the message
    uploads/.htaccess: Require not allowed here

    The .htaccess looks like this:

    # MC4WP Start
    # Apache 2.2
    <IfModule !authz_core_module>
    <Files mc4wp-debug-log.php>
    deny from all
    </Files>
    </IfModule>
    # Apache 2.4+
    <IfModule authz_core_module>
    <Files mc4wp-debug-log.php>
    Require all denied
    </Files>
    </IfModule>
    # MC4WP End

    using Apache/2.4.25 (Debian)

    Plugin Contributor Lap

    (@lapzor)

    What version of Mailchimp for WP are you using?

    The newest one 4.8.1. I just installed it a couple days ago

    Since this file only has something to do with the debug logging, is there a way to just turn off the re-generation of the .htaccess-File under uploads? I don’t care too much about the log to be honst, I just want my page to keep displaying it’s content properly

    Plugin Contributor Lap

    (@lapzor)

    You can try this code snippet to disable logging but im not sure if that also disables the htaccess line: https://github.com/ibericode/mc4wp-snippets/blob/master/misc/disable-log-debugging.php

    I just commented out all lines in the .htaccess-file since deletion of the file didn’t help, it gets recreated. So far it doesn’t look like the file gets overwritten, but I’m not a 100% sure when this would happen if it happened.

Viewing 11 replies - 16 through 26 (of 26 total)
  • The topic ‘All images blocked by MC4WP’ is closed to new replies.