WordPress MultiSite & sunrise.php

Are you getting the above error message as well?

After doing a fresh install and enabling multi-sites I couldn’t see the Domain Mapping and Domains sub-menu options under Network Admin / Settings.

I loaded up my trusty editor and confirmed

define('SUNRISE', 'on' );

was in fact in the file. It was slightly higher than where it said, it’s not important, but I moved it anyway, and I still got the error.

I checked and sunrise.php was in fact in the correct location under /home/public_html/wp-content/sunrise.php

So how did I fix it?

The problem was, it was the incorrect (read:old??) sunrise.php file!

Copy the correct one from:

/home/public_html/wp-content/plugins/wordpress-mu-domain-mapping/sunrise.php

and replace the previous one, and reload your admin page. You will now see the welcoming domains page :D

If you want to find out more as to why it happened, and how it is that my sunrise.php got “moved” or “re-moved”, it was due to a conflict by domain mapping plugins. I’ll be blogged about it in the near future and it will appear here (currently in draft and not published).

Chrome 45 attacks WordPress admin menu

wordpress-chrome-broken-mergedChrome has taken a turn towards the dark side and has attacked the WordPress admin menu. Luckily there’s a simple workaround and a bug report has been filed which will hopefully lead to a fix soon!

The bug is specifically Chrome related (you can read more here) and they are currently working on a fix that should see it’s way into version 46 stable.

There are several fixes for this bug, rated in (my) order of best solutions:

  1. visit: chrome://flags/#disable-slimming-paint (<< unclickable, you’ll have to enter it yourself :) ) in your browser and select ENABLE (from comment #42). The quickest and easiest solution.
    Screenshot 2015-09-10 08.09.28
  2. Add the following action to the WordPress’ functions.php file (from comment #37):
    function admin_menu_fix() {
      echo '<style>
        #adminmenu { transform: translateZ(0); }
      </style>';
    }
    add_action('admin_head', 'admin_menu_fix');
  3. Collapse and re-Expand the Admin menu is a temporary fix, as is refreshing the screen, but that’s a PITA.
  4. There is also a chrome extension that also deals with this issue: more can be found out here
  5. There is also WordPress plugin, and it will ALSO do the trick. I don’t mean to detract from the developer, but I am very anti installing unnecessary plugins if you really don’t need to. But the fact I haven’t provided you a link only means you’ll spend longer looking for it than you would have spent if you just go and change the option in Chrome settings.
  6. Wait for a fix, which SHOULD be in appearing in an update near you soon :)

#3, and #6 really aren’t options. #4 and #5 are workarounds that will only help users who experience the problem with WordPress and no other sites that are also affected (although this does appear to be somewhat limited), leaving #2 (which is also only a WordPress fix) and is way too much overkill.

And the winner is?

The best solution is #1 and this will take you all of about 5 seconds. It is the BEST solution because this fixes other areas the bug affects (which for me) is my gMail menu where things haven’t been right for a while but a refresh fixed it. In fact, refreshing the page in WordPress also fixes it, as does collapsing and expanding the admin menu.

Anyway, you AND I have spent far too long on this post! So go ahead, open the above in your browser and fix the menu :)

 

Bluetooth connecting to Phone Audio only, not Media Audio

beats-studio-wireless-headphones-xlHas this ever happened to you??

It was annoying me today. I was going for a long walk and I wanted to enjoy my favourite game (Ingress—come join the resistance!), but the audio wouldn’t come to my headphones. I had to sit down and work this out.

I’d realised recently that my car was only playing Phone Audio through the bluetooth which left the phone’s media on the phone. I remember thinking at the time, “I don’t remember doing that”, but since it suited me (I don’t play phone media through my car stereo), I didn’t pursue it. In fact, I’d seen the setting before and just assumed that at one time, I must have actually changed it.

But when I check the Beats headset, it was also set to Phone Audio only.

No problem, I tapped the Media Audio checkbox and waited… and waited… and it times out, unchecking the box.

Strange, I “forgot” the headset and repaired the two.

Still no media audio.

I then turned off the headphones and turned them back on, reconnected them and STILL no media audio.

I had initially thought it was a problem with the headset, so I’m googling Beats Wireless problems, then I thought about the phone, Samsung S5, but I was drawing a blank. Then just googling bluetooth problems generally with phone and media audio I find that I am certainly not alone!

tldr;

Fix: Reboot the phone! 

Sure enough, I reboot the phone, reconnect the headphones and Media Audio has returned.

I then went about fixing the amount of green that had begun to pollute my area. :D

How to STOP the Incessantly Annoying Picasa Web Album Notifications!

GalleryIf you’ve wound up here, then I gather you too can’t stand the annoying Picasa Web Albums notifications on your Android device.

I thought I’d tried EVERYTHING but inevitably they return, and I have several Google accounts and as such, I get one notification for each of them. I have long since turned off all syncing options for photos, and numerous done a FORCE STOPs, yet these notifications persist, time after time after time.

If you’re anything like me, you’ve searched high and low on the Interwebs and tried everything you’ve ever read in every forum post, blog and comments… But theykeep coming back :(

Short of rooting your device and removing the Gallery app, or in some other way mod them from not appearing, here’s how I got rid of them. Continue reading “How to STOP the Incessantly Annoying Picasa Web Album Notifications!”

Custom Sort order for a field in MySQL

MySQL fields are made to order alphabetically or numerically on fields, but what happens if you have a custom sort order?

You might ask, but when would you have a custom sort order?

The two situations that come to mind are when a field contains data NOT in the expected format. Imagine a field with days of the week entered alphabetically! Or numbers entered numerically? Such that you have a table: Continue reading “Custom Sort order for a field in MySQL”

Ingress, Consecutive Days Hacked and Recruiting

2015-01-15Don’t like the the new recruiter badge? Have your say!

This stat appeared very briefly in Ingress this morning. But as quickly as it came (and a new badge along with it), it vanished again. The badge (recruiter) has managed to stay (for the moment), but the consecutive hacks has gone. Or has it?

Continue reading “Ingress, Consecutive Days Hacked and Recruiting”

Tom T Hall—I Love

I love little baby ducks, old pick-up trucks
Slow movin’ trains and rain
I love little country streams, sleep without dreams
Sunday school in May and hay

And I love you too

I love leaves in the wind, pictures of my friends
Birds of the world and squirrels
I love coffee in a cup, little fuzzy pups
(old TV shows, and snow)
(Bourbon in a glass, and grass)

And I love you too

I love honest open smiles, kisses from a child
Tomatoes on the vine and onions
I love winners when they cry, losers when they try
Music when it’s good, and life

And I love you too

Removing “Powered by WordPress” from the default Twenty Fifteen Theme

With this short tutorial, I’ll show you how to install the Simple Custom CSS plugin and enter CSS to make the “Powered by WordPress” blurb at the bottom of the page vanish!

Continue reading “Removing “Powered by WordPress” from the default Twenty Fifteen Theme”

Daylight – Maroon 5

Here I am waiting
I’ll have to leave soon
Why am I holding on?
We knew this day would come
We knew it all along
How did it come so fast?

This is our last night but it’s late
And I’m trying not to sleep
Cause I know, when I wake, I will have to slip away

And when the daylight comes I’ll have to go
But tonight I’m gonna hold you so close
Cause in the daylight we’ll be on our own
But tonight I need to hold you so close

Oh-whoa, oh-whoa, oh-whoa-oh-oh-oh-oh-oh-oh
Oh-whoa, oh-whoa, oh-whoa-oh-oh-oh-oh-oh-oh

Here I am staring at your perfection
In my arms, so beautiful
The sky is getting bright, the stars are burning out
Somebody slow it down

This is way too hard, cause I know
When the sun comes up, I will leave
This is my last glance that will soon be memory

And when the daylight comes I’ll have to go
But tonight I’m gonna hold you so close
Cause in the daylight we’ll be on our own
But tonight I need to hold you so close

Oh-whoa, oh-whoa, oh-whoa-oh-oh-oh-oh-oh-oh
Oh-whoa, oh-whoa, oh-whoa-oh-oh-oh-oh-oh-oh

I never want it to stop
Because I don’t wanna start all over
Start all over
I was afraid of the dark
But now it’s all that I want
All that I want, all that I want

And when the daylight comes I’ll have to go
But tonight I’m gonna hold you so close
Cause in the daylight we’ll be on our own
But tonight I need to hold you so close

And when the daylight comes I’ll have to go
But tonight I’m gonna hold you so close
Cause in the daylight we’ll be on our own
But tonight I need to hold you so close

Oh-whoa, oh-whoa, oh-whoa-oh-oh-oh-oh-oh-oh
Oh-whoa, oh-whoa, oh-whoa-oh-oh-oh-oh-oh-oh
Oh-whoa (yeah), oh-whoa (yeah), oh-whoa (yeah), oh-oh-oh-oh-oh-oh (yeah)
Oh-whoa (yeah), oh-whoa (yeah), oh-whoa-oh-oh-oh-oh-oh-oh