‘ERROR: Cookies are blocked or not supported by your browser. You must enable cookies to use WordPress.’

I recently struggled when I tried to add a new website to my WordPress multi-site installation. When I was using a subdomain (newsite.parentsite.com) everything was working fine, but as soon as I moved the new site to its own domain (owndomain.com) I couldn’t log in and I was stuck in a loop with the following error appearing: ” ‘ERROR: Cookies are blocked or not supported by your browser. You must enable cookies to use WordPress.’”
This was quite frustrating and I wasted way too much time trying to solve it. Luckily I came across the following forum post that details a solution: https://wordpress.org/support/topic/changes-domain-and-now-i-get-cookie-error/ .

In essence you do the following:

  1. Under your /wp-content/ folder create a /mu-plugins/ folder if one doesn’t exist already. This stands for “must use” and contains plugins that WordPress must load for all sites.
  2. Create a new file (fix_cookies.php) in the mu-plugins directory.
  3. Paste the following code in the fix_cookies.php file:
<?php
add_action( 'muplugins_loaded', function(){
	global $current_blog, $current_site;
	if ( false === stripos( $current_blog->domain, $current_site->cookie_domain ) ) {
		$current_site->cookie_domain = $current_blog->domain;
	}
});

That’s it. After a refresh you should be able to login to your dashboard.

Removing the Supervisor Password on an Lenovo X131e Laptop

According to the Lenovo Hardware Maintenance Manual a X131e with an unknown Supervisor password, the following applies:

“Attention: If the supervisor password has been forgotten and cannot be made available to the service technician, there is no service procedure to reset the password. The system board must be replaced for a scheduled fee.”

This however is not the case.

Firstly I used this tutorial to get access to the innards of the laptop. [YouTube]

The Supervisor Password locks down the BIOS and prevented me from being able to boot from a USB disk so I had to find a workaround.

Luckily I was able to find a helpful guide on David Zou’s site.

The links detail the process of identifying the BIOS EEPROM storage chip and then shorting out the communication lines at the right time to allow you to change the password without knowing the old one. I love this hack since it is so ingenious and according to the official documentation no solution exists.

So while I cannot claim to have disovered this workaround I can confirm that it works beautifully and I just wanted to thank David for sharing the details.

 

TS-BTDF01 Bluetooth Transmitter Pairing Instructions

Screen Shot 2016-06-20 at 5.57.59 pmI recently bought a TS-BTDF01 Bluetooth Transmitter to use with a pair of Bluedio headphones. At first I thought the unit was DOA, based on the included instructions. Here is how you can troubleshoot any pairing problems you might have.

  1. Connect all the cables (Audio in and power)
  2. Press and hold the white button on the back until you get an alternating flashing blue and red light on the front. This is a loooong press.
  3. The unit is now in pairing mode.
  4. If you get a slow flashing blue light, the unit is on but not in pairing mode. Power cycle and try again
  5. Once the unit is paired it can just be turned on with a long press of the white button.