mkdir() latest version of Hummingbird

Hi there,

The latest version of hummingbird appears to try to make a logging directory.

Since my site is on a host (Pantheon) where the file system, outside of the WP uploads folder, is locked down, this fails and I get the following warning.

Warning: mkdir(): Permission denied in /srv/bindings/391c23d8a01649b98aef6fd482ce72f1/code/wp-content/plugins/wp-hummingbird/core/class-logger.php on line 132

I understand this is just a warning, and warnings are already hidden on my production environment. However, I don’t want to disable warnings on my dev and test environments.

It would be great if this log could be created in a similar location to where minified code it placed, of if it can be disabled.

  • Predrag Dubajic
    • Support

    Hi James,

    Well, the devs got back to me sooner than I thought :slight_smile:

    Could you provide us FTP access to your dev environment so they could have a closer look at this?

    You can send us your details using our contact form https://wpmudev.com/contact/#i-have-a-different-question and the template below:

    Subject: “Attn: Predrag Dubajic

    – Site login url

    – WordPress admin username

    – WordPress admin password

    – FTP credentials (host/username/password)

    – cPanel credentials (host/username/password)

    – Link back to this thread for reference

    – Any other relevant urls/info

    Best regards,

    Predrag

  • Predrag Dubajic
    • Support

    Hi James,

    Thanks for the screenshot, I’ve forwarded this to our developers, they are looking into it for future versions.

    At the moment you should be able to hide the warning by editing /wp-content/plugins/wp-hummingbird/core/class-logger.php and on line 132 change this line:

    mkdir( $this->log_dir );

    To this:

    @mkdir( $this->log_dir );

    Also, can you tell me if you have any issues with activating Page Caching because of this error?

    Hummingbird should be showing a warning notification if this fails, instead of showing warnings on frontend or adding them in debug log.

    Best regards,

    Predrag

  • Brian Healy
    • New Recruit

    Jumping on this thread as I’m having the same problem. Is there a fix that doesn’t involve hacking core files? I’m using composer (on platform.sh rather than Pantheon, but they are both similar setups that don’t allow mkdir usage on their servers) so cannot modify the core files (and long term wouldn’t as updates to the module would overwrite and break the site)

    Cheers

    Harry

  • Predrag Dubajic
    • Support

    Hi Harry,

    Our developers are looking into a workaround for this issue, the current RC version is already in QA testing faze so I’m not sure if it will be included in next release due to that, but it will get into the release after that.

    At the moment I’m afraid that only workaround is to edit plugin files as explained in my above response.

    Best regards,

    Predrag