Page 1 of 1

smarty error with Adsense entry block

Posted: Thu May 28, 2009 7:19 pm
by ed587
I had Google Adsense working yesterday for awhile on my site at http://www.neterm.net but now after unintalling and reinstalling the serendipity_event_includeentry I get this error in place of where the Adsense ads should be between entries:
Warning: Smarty error: unable to read resource: "file:/home/u6/kingfish/html/serendipity/templates/bulletproof/" in /home/u6/kingfish/html/serendipity/bundled-libs/Smarty/libs/Smarty.class.php on line 1092

the php around line 1092 is:

/**
* trigger Smarty error
*
* @param string $error_msg
* @param integer $error_type
*/
function trigger_error($error_msg, $error_type = E_USER_WARNING)
{
trigger_error("Smarty error: $error_msg", $error_type);
}

I have no clue as to what might be wrong. Need a clue!


~Ed587

Re: smarty error with Adsense entry block

Posted: Fri May 29, 2009 9:19 am
by garvinhicking
Hi!

How exactly did you embed the google adsense code? Which other event plugins are you using? If you're using the caching plugins, you might need to purge the cache.

The error is a generic one, the underlying problem would be that somewhere within your code you might be calling smarty or other special functions that reference things that are no longer available.

Regards,
Garvin