paulprema

does run-periodic-tasks need any setup?

Vote 0 Votes

i've been running cron jobs before, but have never felt the need to use it on MT. now, though, i thought about using the Publising Queue, and for the first time ever i'm trying to use the run-periodic-tasks script.

running run-periodic-tasks via cron, i get this error message:


Can't locate DBI.pm in @INC (@INC contains: lib ../lib extlib ../extlib /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at ../extlib/Data/ObjectDriver/Driver/DBI.pm line 9.
BEGIN failed--compilation aborted at ../extlib/Data/ObjectDriver/Driver/DBI.pm line 9.
Compilation failed in require at ../extlib/TheSchwartz.pm line 11.
BEGIN failed--compilation aborted at ../extlib/TheSchwartz.pm line 11.
Compilation failed in require at (eval 2) line 3.
	...propagated at /usr/share/perl/5.10/base.pm line 93.
BEGIN failed--compilation aborted at ../lib/MT/TheSchwartz.pm line 10.
Compilation failed in require at run-periodic-tasks line 32.

i thought this might just be a permissions error, but all permissions are ok. also, cron runs smoothly. i haven't changed the run-periodic-tasks script at all, and DBI is installed and working (version 1.605).

so, dear fellow MT users, what could be wrong here? the run-periodic-tasks documentation doesn't mention any need to change this script before running it. i hope someonr can help me out!

Reported on Movable Type 5

1 Reply

| Add a Reply
  • Your issue is that the "run-periodic-tasks" script doesn't recognize the path to the lib and extlib folders.

    A work around for this is to edit the "run-periodic-tasks" script and to replace "../lib" and "../extlib" with the full server path to those two folders.

    Kind Regards,
    Mihai Bocsaru

    ----------------------------------
    Daily Movable Type Consultant

    Web Development
    Movable Type Consulting
    Six Apart Partner

    http://www.pro-it-service.com/
    ----------------------------------

    Movable Type Demo
    http://www.movabletypedemo.org/
    ----------------------------------

    Open Melody Demo
    http://www.openmelodydemo.org/

Add a Reply

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

Forum Groups

1774 6167

Last Topic: Template modules by Zielun on Feb 16, 2012

86 302

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

1434 5088

Last Topic: Maintenance announcement by Nick on Feb 17, 2012

695 2912

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

174 740

Last Topic: Captcha images rendering slowly by ScottM on Feb 12, 2012

190 568

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