Title: Cannot enter dashboard
Last modified: December 24, 2022

---

# Cannot enter dashboard

 *  Resolved [eugene212](https://wordpress.org/support/users/eugene212/)
 * (@eugene212)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/cannot-enter-dashboard-2/)
 * Thanks for providing such a good plugin as Hummingbird !
 * I have used it for a while on one of my WP sites without any issues and started
   to use it on another site, but at some stage entering Hummingbird’s dashboard,
   etc. became impossible – critical error is shown.
 * Deactivating all other plugins did not help, so please advise !
 * Please see below WP emailed details:
 * >  When seeking help with this issue, you may be asked for some of the following
   > information: WordPress version 6.1.1 Active theme: Colibri WP (version 1.0.89)
   > Current plugin: Hummingbird (version 3.4.0) PHP version 8.0.26 
   > Error Details
   > ============= An error of type E_ERROR was caused in line 130 of the file /
   > var/www/html/wp-content/plugins/hummingbird-performance/core/class-module-server.
   > php. Error message: Uncaught TypeError: strtolower(): Argument #1 ($string)
   > must be of type string, array given in /var/www/html/wp-content/plugins/hummingbird-
   > performance/core/class-module-server.php:130 Stack trace: #0 /var/www/html/
   > wp-content/plugins/hummingbird-performance/core/class-module-server.php(130):
   > strtolower(Array) #1 /var/www/html/wp-content/plugins/hummingbird-performance/
   > core/class-utils.php(282): Hummingbird\Core\Module_Server::get_server_type()#
   > 2 /var/www/html/wp-content/plugins/hummingbird-performance/core/class-utils.
   > php(254): Hummingbird\Core\Utils::get_tracking_data() #3 /var/www/html/wp-content/
   > plugins/hummingbird-performance/admin/class-page.php(280): Hummingbird\Core\
   > Utils::enqueue_admin_scripts(‘3.4.0’) #4 /var/www/html/wp-includes/class-wp-
   > hook.php(308): Hummingbird\Admin\Page->enqueue_scripts(‘toplevel_page_w…’) #
   > 5 /var/www/html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(
   > NULL, Array) #6 /var/www/html/wp-includes/plugin.php(517): WP_Hook->do_action(
   > Array) #7 /var/www/html/wp-admin/admin-header.php(118): do_action(‘admin_enqueue_s…’,‘
   > toplevel_page_w…’) #8 /var/www/html/wp-admin/admin.php(239): require_once(‘/
   > var/www/html/w…’) #9 {main} thrown
    -  This topic was modified 3 years, 4 months ago by [eugene212](https://wordpress.org/support/users/eugene212/).

Viewing 15 replies - 1 through 15 (of 18 total)

1 [2](https://wordpress.org/support/topic/cannot-enter-dashboard-2/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/cannot-enter-dashboard-2/page/2/?output_format=md)

 *  Thread Starter [eugene212](https://wordpress.org/support/users/eugene212/)
 * (@eugene212)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/cannot-enter-dashboard-2/#post-16318616)
 * Also tried to delete/install Hummingbird plugin afresh – still the same issue.
 *  Plugin Support [Amin – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support2/)
 * (@wpmudev-support2)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/cannot-enter-dashboard-2/#post-16319471)
 * Hello [@eugene212](https://wordpress.org/support/users/eugene212/) ,
 * I’m sorry you are experiencing this issue. Can you tell me what type of server
   you have? Do you have a reverse proxy on your server? Like Nginx or Caddy?
 * kind regards,
    Kasia
 *  Thread Starter [eugene212](https://wordpress.org/support/users/eugene212/)
 * (@eugene212)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/cannot-enter-dashboard-2/#post-16319651)
 * Hi Kasia,
 * Yes, the site is behind Caddy reverse proxy – for some time Hummingbird was working
   fine and I could configure it, etc., but at some stage the error appeared and
   I am not sure what was the trigger.
 * My other site without reverse proxy has Hummingbird for a couple of years without
   issues.
 *  Thread Starter [eugene212](https://wordpress.org/support/users/eugene212/)
 * (@eugene212)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/cannot-enter-dashboard-2/#post-16319653)
 * Yesterday the same error appeared on the different test/stage site (also behind
   Caddy) – this time I think it happened after disabling and the enabling again
   Hummingbird, but I am not 100% sure.
 *  Plugin Support [Nithin – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport11/)
 * (@wpmudevsupport11)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/cannot-enter-dashboard-2/#post-16319950)
 * Hi [@eugene212](https://wordpress.org/support/users/eugene212/),
 * Thanks for the information. I have passed these to our developer’s attention 
   to check if there are any known instances and any workarounds that could be shared
   regarding this or not.
 * Will keep you posted once we get further feedback.
 * Kind Regards,
 * Nithin
 *  Thread Starter [eugene212](https://wordpress.org/support/users/eugene212/)
 * (@eugene212)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/cannot-enter-dashboard-2/#post-16319999)
 * Not sure if it’s relevant, but I run WP as a docker container behind Caddy reverse
   proxy.
 *  Plugin Support [Nithin – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport11/)
 * (@wpmudevsupport11)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/cannot-enter-dashboard-2/#post-16320324)
 * Hi [@eugene212](https://wordpress.org/support/users/eugene212/),
 * I’m afraid this is more specific to the server side. However, could you please
   try this snippet and see whether it prevents such issues from occuring?
 *     ```wp-block-code
       <?php
       add_filter( 'http_response', function( $response, $parsed_args, $url ){
       	if( $parsed_args['method'] === 'GET' && $url === home_url() && ! empty( $response['headers']['server'] ) && is_array( $response['headers']['server'] ) ){
       		$servers = $response['headers']['server'];
       		$servers = array_intersect( array('Apache','NGINX','IIS','Cloudflare'), $servers );
       		if( $servers ){
       			$response['headers']['server'] = $servers[0];
       		}else{
       			$response['headers']['server'] = end( $response['headers']['server'] );
       		}
       	}
       	return $response;
       }, 10, 3 );
       ```
   
 * You can apply the above code as a mu-plugins. Please check this link on how to
   implement the above code as a mu-plugins:
   [https://wpmudev.com/docs/using-wordpress/installing-wordpress-plugins/#installing-mu-plugins](https://wpmudev.com/docs/using-wordpress/installing-wordpress-plugins/#installing-mu-plugins)
 * Best Regards,
 * Nithin
 *  Thread Starter [eugene212](https://wordpress.org/support/users/eugene212/)
 * (@eugene212)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/cannot-enter-dashboard-2/#post-16321417)
 * Hi [@wpmudevsupport11](https://wordpress.org/support/users/wpmudevsupport11/),
 * The plugin was operational initially, so my impression is that the plugin code
   itself needs fixing to deal with the error, but for now your snippet indeed helped
   to get Hummingbird pages back (thank you!) except that the Cache/Integrations
   still produce the critical error:
 * >  When seeking help with this issue, you may be asked for some of the following
   > information: WordPress version 6.1.1 Active theme: Colibri WP (version 1.0.89)
   > Current plugin: Hummingbird (version 3.4.0) PHP version 8.0.26 
   > Error Details
   > ============= An error of type E_ERROR was caused in line 113 of the file /
   > var/www/html/wp-content/plugins/hummingbird-performance/core/modules/class-
   > cloudflare.php. Error message: Uncaught TypeError: strpos(): Argument #1 ($
   > haystack) must be of type string, array given in /var/www/html/wp-content/plugins/
   > hummingbird-performance/core/modules/class-cloudflare.php:113 Stack trace: #
   > 0 /var/www/html/wp-content/plugins/hummingbird-performance/core/modules/class-
   > cloudflare.php(113): strpos(Array, ‘cloudflare’) #1 /var/www/html/wp-content/
   > plugins/hummingbird-performance/admin/pages/class-dashboard.php(666): Hummingbird\
   > Core\Modules\Cloudflare->has_cloudflare() #2 /var/www/html/wp-content/plugins/
   > hummingbird-performance/admin/views/meta-box.php(62): Hummingbird\Admin\Pages\
   > Dashboard->dashboard_browser_caching_module_metabox() #3 /var/www/html/wp-content/
   > plugins/hummingbird-performance/admin/class-page.php(169): include(‘/var/www/
   > html/w…’) #4 /var/www/html/wp-content/plugins/hummingbird-performance/admin/
   > class-page.php(374): Hummingbird\Admin\Page->view(‘meta-box’, Array) #5 /var/
   > www/html/wp-content/plugins/hummingbird-performance/admin/views/wphb-page.php(
   > 22): Hummingbird\Admin\Page->do_meta_boxes(‘box-dashboard-l…’) #6 /var/www/
   > html/wp-content/plugins/hummingbird-performance/admin/class-page.php(169): 
   > include(‘/var/www/html/w…’) #7 /var/www/html/wp-content/plugins/hummingbird-
   > performance/admin/class-page.php(455): Hummingbird\Admin\Page->view(‘wphb-page’)#
   > 8 /var/www/html/wp-content/plugins/hummingbird-performance/admin/class-page.
   > php(443): Hummingbird\Admin\Page->render_inner_content() #9 /var/www/html/wp-
   > includes/class-wp-hook.php(308): Hummingbird\Admin\Page->render(”) #10 /var/
   > www/html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(”, Array)#
   > 11 /var/www/html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #12/
   > var/www/html/wp-admin/admin.php(259): do_action(‘toplevel_page_w…’) #13 {main}
   > thrown
 *  Plugin Support [Nithin – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport11/)
 * (@wpmudevsupport11)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/cannot-enter-dashboard-2/#post-16327812)
 * Hi [@eugene212](https://wordpress.org/support/users/eugene212/),
 * I’m bringing the errors noticed to our developers attention to see what might
   have caused it.
 * Will keep you posted once we get further feedback asap.
 * Best Regards,
 * Nithin
 *  Plugin Support [Nithin – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport11/)
 * (@wpmudevsupport11)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/cannot-enter-dashboard-2/#post-16327857)
 * Hi [@eugene212](https://wordpress.org/support/users/eugene212/),
 * We’ll need additional information in order to troubleshoot this further. Could
   you please add the following snippet:
 *     ```wp-block-code
       <?php
   
       add_action('init', function() {
       	if ( isset( $_GET['test'] ) ) {
       		$url = home_url();
       		$url  = add_query_arg( 'wphb-check-cf', 'true', $url );
       		$head = wp_remote_head(
       			$url,
       			array(
       				'sslverify' => false,
       			)
       		);
   
       		$headers = wp_remote_retrieve_headers( $head );
   
       		print_r( $headers['server'] );
       		exit;
       	}
       });
       ```
   
 * Once the snippet is added, please go to the following URL on your website:
   `https://
   your-site.com/?test`
 * You’ll have to replace the **your-site.com** URL in the above with your domain
   URL and share the information that you get when you load the “?test” in the next
   reply, so that we could check further and advise what might be causing it.
 * Looking forward to your response.
 * Kind Regards,
   Nithin
 *  Thread Starter [eugene212](https://wordpress.org/support/users/eugene212/)
 * (@eugene212)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/cannot-enter-dashboard-2/#post-16328970)
 * Hi [@wpmudevsupport11](https://wordpress.org/support/users/wpmudevsupport11/),
 * After adding the snippet, I get the following response to …/?test request:
 * >  Array ( [0] => Caddy [1] => Apache/2.4.54 (Debian) )
 *  Plugin Support [Nithin – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport11/)
 * (@wpmudevsupport11)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/cannot-enter-dashboard-2/#post-16330256)
 * Hi [@eugene212](https://wordpress.org/support/users/eugene212/),
 * Thanks for sharing the info. Could you please try this new snippet and see how
   it goes:
 *     ```wp-block-code
       <?php
   
       add_filter( 'http_response', function( $response, $parsed_args, $url ){
       	if( $parsed_args['method'] === 'GET' && $url === home_url() && ! empty( $response['headers']['server'] ) && is_array( $response['headers']['server'] ) ){
       		$response['headers']['server'] = 'Caddy';
       	}
       	return $response;
       }, 10, 3 );
       ```
   
 * Looking forward to your response.
 * Best Regards,
 * Nithin
 *  Thread Starter [eugene212](https://wordpress.org/support/users/eugene212/)
 * (@eugene212)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/cannot-enter-dashboard-2/#post-16331460)
 * Hi [@wpmudevsupport11](https://wordpress.org/support/users/wpmudevsupport11/),
 * I have replaced originally suggested snippet with the latest one (using Code 
   Snippets plugin), but the error is still there when trying to enter Hummingbird/
   Caching/Integrations page – other Hummingbird pages are fine.
 *  Thread Starter [eugene212](https://wordpress.org/support/users/eugene212/)
 * (@eugene212)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/cannot-enter-dashboard-2/#post-16331824)
 * Consider if line class-cloudflare.php:113 should use ‘implode’ function to convert
   an array to string:
 * >  if ( isset( $headers[‘server’] ) && strpos( implode($headers[‘server’]), ‘
   > cloudflare’ ) > -1 ) {
 * After making this change, I can enter Hummingbird/Caching/Integration page.
 *  Plugin Support [Nebu John – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport14/)
 * (@wpmudevsupport14)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/cannot-enter-dashboard-2/#post-16334208)
 * Hi [@eugene212](https://wordpress.org/support/users/eugene212/),
 * Sorry to know the the workaround suggested didn’t helped.
 * However, we do not recommend editing the core files. I have brought your observation
   to the notice of our developers and will update you here once we have more insights
   on this as soon as possible.
 * Kind Regards,
   Nebu John

Viewing 15 replies - 1 through 15 (of 18 total)

1 [2](https://wordpress.org/support/topic/cannot-enter-dashboard-2/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/cannot-enter-dashboard-2/page/2/?output_format=md)

The topic ‘Cannot enter dashboard’ is closed to new replies.

 * ![](https://ps.w.org/hummingbird-performance/assets/icon-256x256.gif?rev=2633221)
 * [Hummingbird Performance - Cache & Page Speed Optimization for Core Web Vitals | Critical CSS | Minify CSS | Defer CSS Javascript | CDN](https://wordpress.org/plugins/hummingbird-performance/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/hummingbird-performance/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/hummingbird-performance/)
 * [Active Topics](https://wordpress.org/support/plugin/hummingbird-performance/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/hummingbird-performance/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/hummingbird-performance/reviews/)

## Tags

 * [dashboard](https://wordpress.org/support/topic-tag/dashboard/)

 * 18 replies
 * 5 participants
 * Last reply from: [Jair – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport15/)
 * Last activity: [3 years, 4 months ago](https://wordpress.org/support/topic/cannot-enter-dashboard-2/page/2/#post-16341281)
 * Status: resolved