Support » Plugin: Maintenance » PHP Warnings with Hummingbird optimization after toggle

  • Resolved hongpong

    (@hongpong)


    Whenever the toggle is set from on to off (taking site back online)

    tons of PHP warnings spill out (possibly thousands)

    readdir() expects parameter 1 to be resource, boolean given in /wp-content/plugins/wp-hummingbird/core/class-filesystem.php on line 201
    it finally ends with

    readdir() expects parameter 1 to be resource, boolean given in /var/www/html/wp-content/plugins/wp-hummingbird/core/class-filesystem.php on line 201

    This is probably some kind of permissions issue involving directories but it’s interesting doing the toggle sets off tons of these warnings.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter hongpong

    (@hongpong)

    removing the file wp-content/advanced-cache.php may have cleared this up – best regards

    Plugin Author WebFactory

    (@webfactory)

    When on/off is toggled we clear cache in all known plugins.
    Hummingbird is a solid plugin. We never had any problems with it.

    Will look more closely into this but could be a permission thing too. If old cache files couldn’t have been deleted.

    Thread Starter hongpong

    (@hongpong)

    Thank you very much. Can you say what the cache clearing function is? Appreciate your quick response.

    @hongpong on maintenance.php file, line 148 we do this:

    if (is_callable(array('Hummingbird\WP_Hummingbird', 'flush_cache'))) {
          Hummingbird\WP_Hummingbird::flush_cache(true, false);
        }

    Fix the wp solution folder and file permissions… All folders need to be at 755 and files 644. If there is an issue with the file permissions this kind of issue could happen.

    Thread Starter hongpong

    (@hongpong)

    Thanks so much! I appreciate your help today.

    Plugin Author WebFactory

    (@webfactory)

    You’re welcome!

    If you have a minute, please leave a review. It’s what keeps the plugin free. Thank you 🙏 https://wordpress.org/support/plugin/maintenance/reviews/#new-post

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘PHP Warnings with Hummingbird optimization after toggle’ is closed to new replies.