user-pic

Action Streams 2.0 Trying to Publish my Template Backups?

Vote 0 Votes

OK, I did some upgrades recently and I'm getting errors from Action Streams. I moved from MT 4.21 to 4.23, from Action Streams 1.0 to 2.0, from MT-Notifier 4.0.5 to 4.2.0 and I added a few AS plugins: Amazon, Facebook, MT.org and blip.fm.

So, now I'm getting repeated errors in the activity log like this:

Error rebuilding file /home/****/public_html/sandbox/index.php: Template 'Index (Backup from 2008-11-12 18:22:12)' does not have an Output File.

I get a whole string of the, it looks like one per template backup, at the same time. I'm also getting emails about cron errors with a couple of dozen lines like this:
Use of uninitialized value in join or string at (eval 461) line 2.

I get those every 30 or 45 minutes, even though run periodic tasks is set to go every 15.

It would appear as if my run-periodic-tasks is attempting to publish my template backups. I filed a call with support and they checked the database to see if the backup templates were filed correctly (I believe they were). I then disabled AS 2.0 and the errors stopped. I enabled AS 2.0 and disabled the AS add ons I had installed, and the errors returned.

Support said it seemed AS related, and thus not their problem, and pointed me here. Any idea what's happening?

Reported on Movable Type 4.2

3 Replies

| Add a Reply
  • AS 2.0 uses the job queue to update streams, so it also makes use of the job queue for rebuilding, whether or not those blogs are set to use asynchronous publishing. In order to make the publishing jobs, AS resorts to looking for fileinfo records (the records MT makes at publishing time so it can know later what it's published) that represent index templates in the blogs you've selected.

    In this case, there must be fileinfo records that reference these template backups. Because you mention a "sandbox/index.php" fileinfo, I would guess you switched template sets to one that uses .html extensions instead, so the fileinfo for the template backup is still the latest one that ever published to index.php.

    I must have assumed the fileinfos for such templates would be removed. I still don't know a better way to do the publishing than looking at fileinfos, but AS should at least skip these records for not having Output Files set. I opened case 99181 about it.

    For now, if you can, you could manually remove the fileinfos named in the errors. They're records in the mt_fileinfo table; the fileinfo's path is in the fileinfo_file_path column.

    • For those who're wondering, here's the query:

      First, confirm the match condition you use with a SELECT statement before actually deleting the records:

      mysql> SELECT fileinfo_file_path FROM mt_fileinfo WHERE fileinfo_file_path LIKE '%YOUR MISSING OUTPUTFILES%'

      Once you've confirmed, delete the records:

      mysql> DELETE FROM mt_fileinfo WHERE fileinfo_file_path like '%YOUR MISSING OUTPUTFILES%';

      In my case it was trying to publish things in the "public_html" directory that no longer existed (I had restored from a backup with duplicate, erroneous paths). So mine was:

      mysql> Delete from mt_fileinfo WHERE fileinfo_file_path like '%public_html%';

      Hope that helps!

  • Thanks Mark, I'll look into those DB mods.

Add a Reply

If you need to share template code, replace all the "<" signs with "&lt;" or use this utility.

Forum Groups

1773 6162

Last Topic: Excluding categories from blog by kholechek on Feb 9, 2012

86 302

Last Topic: website entries by masoud on Oct 26, 2011

1429 5077

Last Topic: What apocalypse hit this community in the middle of 2011? by 75th on Feb 10, 2012

695 2910

Last Topic: Insert Image / File Fails by Russ Miller on Feb 10, 2012

84 291

Last Topic: How to have some other characters in entry basename automatically written by Afshin Haghighatnia on Dec 22, 2011

173 737

Last Topic: About the MT version stated in HTML source by Alex E. Schneider on Feb 7, 2012

190 567

Last Topic: Analytics Reporting by michael webster on Feb 5, 2012

48 210

Last Topic: An idea and also a request by Afshin Haghighatnia on Jun 29, 2011

64 246

Last Topic: jQuery in MT 5.1 still at 1.4 - why? by perlmonkey on May 25, 2011

code.sixapart.com

137 478

Last Topic: Getting a thumbnail with xpath by Peter on Mar 13, 2011

222 720

Last Topic: Custom Field for Asset Not Appearing by android on Feb 9, 2012