Page 1 of 1

smarty error {0.12b1}

Posted: Fri Feb 03, 2006 6:37 pm
by kermit
is there something special to do in order to insert a blob into a content item, such as a content page or a news article? whenever i do, i get this:

Warning: Smarty::_include() [function.include]: Failed opening '' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/client/bracband/cmsms2/lib/smarty/Smarty.class.php on line 1923

it seems to only happen when the page is pulled from cache. if i make a change to something or clear the cache; requiring it to generate a new page, it doesn't error. but the very next page view it will.

this is on my breezy box, running:
Apache/2.0.54 (Ubuntu) PHP/5.0.5-2ubuntu1.1 mod_perl/2.0.1 Perl/v5.8.7 with MySQL 4.0.24
0.12b1 was a fresh shell install without the extra sample content and templates.

i have: tried removing a space that was present in the blob name. i have tried an extremely minimal template (with only menu and content.. not even a css attached). i have tried ' ' and " " for quotes around the blob name. i've tried both {html_blob name="somename"} and {global_content name="somename"} and i have gone so far as to give apache ownership of *every* file and directory in the siteroot (i.e. chown -R www-data * in the cmsms install directory).

note there also is a typo in the global_content tag help:
{globa_content name='myblob'}

Re: smarty error {0.12b1}

Posted: Sat Feb 04, 2006 9:14 am
by kermit
well, i'm not using nt-based permissions on my windows sandbox.. eliminates those pesky permission problems.. just unzip and go. :)

so far so good on breezy (have moved the beta bashing over to there for the time being).. i'll have to add some content pages like you mentioned and see what happens. i'll set up another instance of uniformserver on windows too when i get a chance (i kinda got mad at it and tossed it).

Re: smarty error {0.12b1}

Posted: Sun Feb 05, 2006 8:33 pm
by kermit
i added another install to breezy and it *was* working. but it errors out again now that i've added some pages as patricia mentioned. it also has html_blob in content on pages and in news article (summaries also on pages). first view ok, cached views error.

Re: smarty error {0.12b1}

Posted: Sun Feb 05, 2006 8:46 pm
by Ted
Ok, I've confirmed that it's related to having a html_blob in a news article.  Not sure where the disconnect is, but I've added some error handling to smarty.  It seems to have solved the problem, though I really hate modifing Smarty directly.

Re: smarty error {0.12b1}

Posted: Sun Feb 05, 2006 8:50 pm
by Ted
Scratch that.  I've added it to my subclass of smarty, so I didn't have to touch the original file.  OO programming rocks.

Anyway, I think revision 2554 fixed it.  Please test when possible.  Thanks.