define('SMARTY_PANTS_DIR', dirname(__FILE__) . '/'); // insert in line 22
require_once(SMARTY_PANTS_DIR . "smartypants.php");
Comments
Get the extension directory:
define('SMARTY_PANTS_DIR', dirname(__FILE__) . '/'); // insert in line 22
And use it to require (rather than include to ensure it's really working!):
require_once(SMARTY_PANTS_DIR . "smartypants.php");
However, now it works like a charm