Hi,
I have a problem with publish queue and run-periodic-tasks script. When i publish page within edit template - everything ok. But when page is rebuiled by run-periodic-tasks script i see this messege in the logs:
Error rebuilding file /var/www/mov/anekdot/widgets/novinki.html: Publish error in template 'widget novinki': Error in tag: error in module anekdoty list 8: Publish error in template 'anekdoty list 8': Error in tag: Error in tag: error in module mainblock inner: Publish error in template 'mainblock inner': Unknown tag found: AjaxRater
How it is possible and why?
Reported on Movable Type 4.3

Hi Valera.
Which plugin are you using? this one?
http://mt-hacks.com/20070906-ajax-rating-v11-full-support-for-mt4.html
Anyway, one way that is possible is that the plugin author made this tag application specific by mistake, and not global.
For being sure, I will need to see the config.yaml file of that plugin.
Shmuel.
Thanks, Shmuel
It has only one config.yaml in folder "default_templates"
template_sets:
ajax_rating_templates:
index:
ajax_rating_javascript:
label: Ajax Rating Javascript
outfile: ajaxrating.js
rebuild_me: 0
ajax_rating_styles:
label: Ajax Rating Styles
outfile: ajaxrating.css
rebuild_me: 0
widget:
ajax_rating:
label: Ajax Rating
But i found in AjaxRating.pl file :
MT->add_plugin($plugin);
if (MT->version_number require MT::Template::Context;
MT::Template::Context->add_tag(AjaxRating => \&AjaxRating::ajax_rating);
MT::Template::Context->add_tag(AjaxRatingAverageScore => \&AjaxRating::ajax_rating_avg_score);
MT::Template::Context->add_tag(AjaxRatingAvgScore => \&AjaxRating::ajax_rating_avg_score);
MT::Template::Context->add_tag(AjaxRatingTotalScore => \&AjaxRating::ajax_rating_total_score);
MT::Template::Context->add_tag(AjaxRatingVoteCount => \&AjaxRating::ajax_rating_vote_count);
MT::Template::Context->add_tag(AjaxRater => \&AjaxRating::rater);
MT::Template::Context->add_tag(AjaxStarRater => \&AjaxRating::star_rater);
MT::Template::Context->add_tag(AjaxThumbRater => \&AjaxRating::thumb_rater);
MT::Template::Context->add_tag(AjaxRaterOnclickJS => \&AjaxRating::rater_onclick_js);
MT::Template::Context->add_tag(AjaxRatingEntryMax => \&AjaxRating::entry_max);
MT::Template::Context->add_tag(AjaxStarRaterWidth => \&AjaxRating::star_rater_width);
MT::Template::Context->add_tag(AjaxStarRaterAverageScoreWidth => \&AjaxRating::star_rater_avg_score_width);
MT::Template::Context->add_tag(AjaxStarUnitWidth => \&AjaxRating::star_unit_width);
# Callbacks that remove VoteSummary records when objects get deleted
MT::Entry->add_callback('pre_remove', 5, $plugin, \&AjaxRating::entry_delete_handler);
MT::Blog->add_callback('pre_remove', 5, $plugin, \&AjaxRating::blog_delete_handler);
# Callbacks that change the obj_type column when objects are published or unpublished
MT::Entry->add_callback('post_save', 5, $plugin, \&AjaxRating::entry_post_save);
}
well, the whole code block that you gave here works only for MT3.
Can you paste the whole AjaxRating.pl file?
(maybe using some code pasting site, like http://paste.bradleygill.com/, or use the utility offered above the comment box)
ok. this is the whole code
I'm sorry, but I don't see any obvious cause.
Shmuel.
maybe try sending an email to the plugin writer?
Thanks, Shmuel
i'll try
Have you tried restarting your run-periodic-tasks daemon? It looks like the daemon doesn't recognize the plugin as installed so it can't use any of the tags it adds.
Often this is caused by a long-running run-periodic-tasks daemon that was started before the plugin was even installed.
If this is not the issue, check if the user running run-periodic-tasks (i.e. the user in whose crontab it is called) can actually read everything in the plugins folder. It also doesn't hurt cd'ing to the mt folder before starting run-periodic-tasks, just to make sure it can find all the folders etc. it needs.
Many thanks, Maarten!!!
I'v restarted run-periodic-tasks daemon and then republished index page - and.... it works!!!
You are welcome, and thanks for the inspiration: I just wrote up a longer version of this solution with some more info on my blog at http://www.movabletips.com/2012/08/dealing-with-error-rebuilding-file-publish-error-in-template-unknown-tag-found.html