Problems burning bootloader to 1284P

Hi all. I'm pretty new to the entire AVR and Arduino programming thing. I've got a couple of fresh 1284P chips and I've been trying to burn the bootloader to them as described here: Arduino on ATmega1284P | maniacbug

Despite following the instructions to the letter and triple checking the wiring, I keep getting the following error output:

avrdude: Version 6.0.1, compiled on Apr 15 2015 at 19:59:58
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2009 Joerg Wunsch

         System wide configuration file is "C:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf"

         Using Port                    : COM3
         Using Programmer              : stk500v1
         Overriding Baud Rate          : 19200
         AVR Part                      : ATmega1284P
         Chip Erase delay              : 55000 us
         PAGEL                         : PD7
         BS2                           : PA0
         RESET disposition             : dedicated
         RETRY pulse                   : SCK
         serial program mode           : yes
         parallel program mode         : yes
         Timeout                       : 200
         StabDelay                     : 100
         CmdexeDelay                   : 25
         SyncLoops                     : 32
         ByteDelay                     : 0
         PollIndex                     : 3
         PollValue                     : 0x53
         Memory Detail                 :

                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           eeprom        65    10   128    0 no       4096    8      0  9000  9000 0xff 0xff
           flash         65    10   256    0 yes    131072  256    512  4500  4500 0xff 0xff
           lock           0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           lfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           hfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           efuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00
           calibration    0     0     0    0 no          1    0      0     0     0 0x00 0x00

         Programmer Type : STK500
         Description     : Atmel STK500 Version 1.x firmware
         Hardware Version: 2
         Firmware Version: 1.18
         Topcard         : Unknown
         Vtarget         : 0.0 V
         Varef           : 0.0 V
         Oscillator      : Off
         SCK period      : 0.1 us

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.05s

avrdude: Device signature = 0x000000 (retrying)

Reading | ################################################## | 100% 0.05s

avrdude: Device signature = 0x000000 (retrying)

Error while burning bootloader.
Reading | ################################################## | 100% 0.05s

avrdude: Device signature = 0x000000
avrdude: Yikes!  Invalid device signature.
         Double check connections and try again, or use -F to override
         this check.


avrdude done.  Thank you.

I've also tried following Nick Gammon's tutorial here using the same wiring: Gammon Forum : Electronics : Microprocessors : How to make an Arduino-compatible minimal board
... but when I run his programmer it complains about not being able to enter programming mode.

Here's a picture of my wiring:

Can someone please help a noobie out? I'm tearing my hair out here! Any help would be MUCH appreciated!

Very hard to see the connections in the image.
What is written on the oscillator capacitors and the crystal?

Some of proto boards have the center of the power rails split.
Check the power supply voltage on the pins of the controller to see if you do have 5 volts there.

LarryD:
Very hard to see the connections in the image.
What is written on the oscillator capacitors and the crystal?

Thanks for replying Larry, sorry about the potato image quality. The crystal is 16MHz and the capacitors are 22pf. I've also tried 15pf capacitors (I have no 18pf caps at hand) in their place but it doesn't seem to make a difference.

I'll check the power rails when I get home.

LarryD:
Some of proto boards have the center of the power rails split.
Check the power supply voltage on the pins of the controller to see if you do have 5 volts there.

So it turns out it WAS the power rails. D'oh!
Is there a facepalm emote on this forum? I think now would be a good time to use one.

Thanks Larry!