WordPress Always check the Log Files

Recently I built a new PC and I ran into an issue where for some reason I couldn’t login to WordPress on my blog from the new PC. I could still login on my laptop, but not on my PC.

Every time I tried to login I got hit with the following error:

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

This appears to be quite a common error but none of the solutions I found for it seemed to work.

My browser was accepting cookies, they were definitely not disabled, I’d noticed that WordPress had recently auto updated to 3.8.1 so I assumed that was the problem and it would hopefully fix it’s self in the next update. Anyway it was working on my laptop so I could still login.

Then all of a sudden a couple of days ago my laptop stopped being able to login to WordPress with the same error…

I searched and searched for a solution, I edited themes, manually removed plugins, deleted themes, created my own plugins to explicitly set the cookie, tried to ensure the that domain was correct.

NOTHING WAS WORKING!

I’d seen some people say that a reinstall helped so I reinstalled WordPress, after taking a backup, and then copied back my wp-config.php because it had the login details for the database in it.

NOPE

Hunting for a solution for a couple of hours I decided to check the error log…

I wish I’d done this earlier… The log was full of errors most of them had something along the lines of:

PHP Warning:  Cannot modify header information – headers already sent by (output started at /home/ohmznet/public_html/wp-config.php:34)

Ok Lets look at wp-config.php… Lo and behold:

image

What’s that after the end tag of PHP script? Two new lines…

It turns out that the second you write anything to the actual page, the header gets written, which means that you can’t set cookies. That includes whitespace.

Those two blank lines broke my WordPress site so bad that I couldn’t login.

So yeah, I’ve learnt a lesson I should already know:

ALWAYS LOOK AT THE LOG FILES!

In The Game of Cookies You Munch or You Die

Game of Thrones Cookie Cutters

If I made cookies more often and wasn’t perpetually on a diet trying to shift my immense man-belly, I’d seriously consider buying these 3D printed game of Thrones Cookie Cutters by artist Athey Moravets. His Etsy shop “Warpzone” specializes in custom cookie cutters and as well as the above house sigils you can also get the face of Tyrion Lannister in cookie form:

Game of Thrones Cookie Cutters

Game of Thrones Cookie Cutters

As well as a myriad of Dr Who:

Dr Who Tardis Cookie CutterDr Who Tardis Cookie Cutter

Super Mario Bros:

Mario Bros Starman Cookie Cutter

And so much more…

Via Laughing Squid

The f/60 Lens Kitchen Timer

Do you like both photography an cooking? Do you like to have items lying about your house that looks like photography kit but isn’t really then maybe you should buy the The f/60 Lens Kitchen Timer at the Photojojo Store! It’s pretty much what it says on the tin, a kitchen timer that presumably goes up to sixty minutes that looks like an SLR lens.

Unlike the SLR Lens Mugs you can get this one doesn’t seem to be shaped like any particular manufacturer’s lens it just looks like a lens. Still quite cool, I’d consider it if  it went to f/120 I think f/60 is a little limiting.

via PhotoJoJo

Animated Gif of it and some cookies after the break… Continue reading “The f/60 Lens Kitchen Timer”

Coraline Button Cookies

IMG_4846

It wouldn’t take much to convince me that these chocolate covered peanut butter cookies were awesome, I’m a huge fan of peanut butter cookies and who doesn’t like chocolate. The fact that they are made in the shape of button in tribute to Neil Gaiman’s novel Coraline is just a bonus.

IMG_4873

Via Bakerella

The Angels Ate the TARDIS (Cookies) + Bonus TARDIS Apron

Darla from Bakingdom made these cookies for a Dr. Who party she was hosting, but she also makes custom TARDIS Aprons like the one below. She has two on her Etsy shop which are reserved for people, I assume you have to commission one from her in order to get one.

Do Not Buy Unless You are Levi - Reserve for Levi - Original TARDIS Apron

Via Bakingdom

Shortbread Scrabble Cookies

Okay so they are technically Shortbread Valentine Cookies but I refuse to acknowledge the fact that something so cool could be limited to such a rubbish Hallmark Holiday. All you need to do is get someone to bake 98 of these and you could play and actual game of Scrabble. It might work better if you made them bite size rather than full size cookies….

In fact if you also had a set of scrabble letters you could then replace the cookies with real Scrabble letters on the board and eat the cookies you made a word with…

Actually I’m thinking scrabble shot glasses with a number of shots equal to the point value of the letter. Make a word and you have to drink it! I’m not sure how double/triple scores would work  though but it would certainly even the playing field…

via Can You Stay For Dinner?.