Fatal Block Error

Permalink
I could really use some help with this, I made some modifications to the slideshow block that comes with Concrete5, but when I enable Caching I get this error.


Fatal error: View::render() [<a href='view.render'>view.render</a>]: The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition &quot;TnSlideshowBlockController&quot; of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide a __autoload() function to load the class definition in /***/****/public_html/concrete/libraries/view.php on line 734




Here's my code:
<?php 
defined('C5_EXECUTE') or die("Access Denied.");
class TnSlideshowBlockController extends BlockController {
   var $pobj;
   protected $btTable = 'btTnSlideshow';
   protected $btInterfaceWidth = "550";
   protected $btInterfaceHeight = "400";
   protected $btCacheBlockOutput = true;
   protected $btCacheBlockOutputOnPost = true;
   protected $btCacheBlockOutputForRegisteredUsers = true;
   public $defaultDuration = 5;   
   public $defaultFadeDuration = 2;   
   public $playback = "ORDER";   
   /** 
    * Used for localization. If we want to localize the name/description we have to include this