Help - Search - Members - Calendar
Full Version: Scheduled Entries Not Working In Mt4, Cron Job Is Set
Movable Type Community Forum > Other Product Discussion > Bugs and Odd Behavior
Tux Kapono
I did scheduled daily entries set with cron jobs on MT3, but since I 'upgraded' to MT4 they don't work. I really don't know what the issue is, unless it's related to the fact that I manually set my basename (archive mapping) because it's a known issue that MT4's 'Preview' feature won't work if that's the case.
CowPi
Under Preferences > Blog Settings > Publishing, do you have the "Use Publishing Queue" box checked? This is required for background publishing for static pages and employs our cron job.
Tux Kapono
Wow, thanks CowPi, I would have never known I had to check that given that I never had to with other updates. I'm glad it's now in this forum database. I haven't tested it yet, but I'm sure it'll work now.
Su-
QUOTE (CowPi @ Jan 7 2008, 11:42 PM) *
Under Preferences > Blog Settings > Publishing, do you have the "Use Publishing Queue" box checked? This is required for background publishing for static pages and employs our cron job.


This doesn't immediately appear to have anything to do with the original question. The Publishing Queue is separate from scheduled posting, and is not required for it at all.
Tux Kapono
Yep, I realized that, and noticed the topic CowPi started. I have a feeling it has something to do with the fact that those who change their basename can't see their entry in Preview. I guess I'll just have to wait until 4.1.
Tux Kapono
OK, I upgraded to MT 4.1 (B3) and it's still not publishing as scheduled. I even have two cron jobs set, the first one being for every hour, the other for everyday at 3 am. What to do?! Help!
danwolfgang
Are you sure that run-periodic-tasks is actually running? Is the path correct? Can you run run-periodic-tasks from the command line? Are permissions on run-periodic-tasks correct?
Tux Kapono
Excuse the inexperience, but how do I check this? The path in cron is: /public_html/mt/; ./tools/run-periodic-tasks, though the literal path is: /public_html/mt/tools/run-periodic-tasks. Not sure what the "; ." means, but it's worked before as such. The permissions are 644.
danwolfgang
QUOTE (Tux Kapono @ Jan 19 2008, 10:10 AM) *
Excuse the inexperience, but how do I check this? The path in cron is: /public_html/mt/; ./tools/run-periodic-tasks, though the literal path is: /public_html/mt/tools/run-periodic-tasks. Not sure what the "; ." means, but it's worked before as such. The permissions are 644.

I wouldn't expect that to work unless public_html really is at the root of your server--doubtful. The path is probably something like /var/www/vhosts/domain.com/public_html/mt/tools/run-periodic-taks or something. Compare to the Site Root of your blog (in Blog Settings|Publishing) to find the real path.

You might also refer to the bottom of this page about how to set up the cron job.
Tux Kapono
The full path is actually: cd /home/myusername/public_html/mt/; ./tools/run-periodic-tasks and was working for years until I installed 4.0. I'm not changing the base name either - the blog happens to be www.cooltownstudios.com if that provides any insight. I'm just wondering if '; .' is still necessary. I got the path info instructions here.

Use Publishing Queue is discussed above and isn't what I'm looking to do.

Does anyone even have the Scheduled feature working in 4.0?
Su-
Hold on:
QUOTE (Tux Kapono @ Jan 19 2008, 09:10 AM) *
The permissions are 644.

The permissions on what are 644? That doesn't allow execution, which would explain why your script isn't, well...executing. Have you tried setting that to 755?
Tux Kapono
Thanks Su-.

Solution: Set permissions on run-periodic-tasks to 755.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.