Client deletes form from dashboard that was on profile page, and then.....

Permalink
this is what you get when accesing the profile

Fatal error: Call to a member function getBlockTypeHandle() on a non-object in

Now I know what caused it, I just dont know how to make it right.

Can I use php to change it so that seeking that block isn't an absoloute ? Do I need to restore the block somehow by fetching it from trash ? As a second thought can I just remove profile page, and remake it ?

Any help would be appreciated. Code included form block view template,

<?php 
defined('C5_EXECUTE') or die("Access Denied.");
/**
 * @package Blocks
 * @category Concrete
 * @author Andrew Embler <andrew@concrete5.org>
 * @copyright  Copyright (c) 2003-2008 Concrete5. (http://www.concrete5.org)
 * @license   http://www.concrete5.org/license/...     MIT License
 *
 */
/**
 * An object that represents a block's template, whether it's built-in, or custom.
 *
 * @package Blocks
 * @category Concrete

Ekko
 
Ekko replied on at Permalink Reply
Ekko
It was scary doing it but all I did was to remove all page versions of the profile page back to first instance. Just got to build it again. I was sweating hard for a minute there.

I also found out the exact cause. I used clipboard to paste in the form to profile page. The site owner wanted to add a field so they decided to remove the form, and make a new one. After they were done the clipboard instance of the block on profile of course remained, but because the original was deleted they were given the option to remove it from the forms and survey area of dashboard, and then it went boom.

An easy work around to the clipboard thing is when pasting in from clipboard quickly put the pasted block into edit, making it its own instance. This only works for the majority of blocks though.