Log in

View Full Version : scheduled tasks not running.


Jenkins
08-29-2006, 01:00 PM
I'm trying to figure out why my scheduled tasks are not running. I've posted on Vbulletin.com about the issue but of course they just keep telling me it's becasue I have products and hacks installed, they won't get anymore specific than that.

have any of you experienced this problem? Hacks/Products I have installed are

Right column code
ibproarcade
miserable users
glowing names
event attendance
extended sig limits
marquee system

Ntfu2
08-29-2006, 05:20 PM
post up your footer template, or make sure that this


$cronimage


Is still in the footer some place

Jenkins
08-30-2006, 12:55 AM
thanks for the help.. here's my footer

<!-- Right Column Code -->
</td>
<td width="160" valign="top" align="left">$rightcolumn</td>
</tr>
</table>
</td></tr>
</table>
<!-- End Right Column Code -->

<br />
<div class="smallfont" align="center">$vbphrase[all_times_are_gmt_x_time_now_is_y]</div>
<br />

$spacer_close
<!-- /content area table -->

<form action="$vboptions[forumhome].php" method="get">

<table cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="$stylevar[outertablewidth]" class="page" align="center">
<tr>
<if condition="$show['quickchooser']">
<td class="tfoot">
<select name="styleid" onchange="switch_id(this, 'style')">
<optgroup label="$vbphrase[quick_style_chooser]">
$quickchooserbits
</optgroup>
</select>
</td>
</if>
<if condition="$show['languagechooser']">
<td class="tfoot">
<select name="langid" onchange="switch_id(this, 'lang')">
<optgroup label="$vbphrase[quick_language_chooser]">
$languagechooserbits
</optgroup>
</select>
</td>
</if>
<td class="tfoot" align="$stylevar[right]" width="100%">
<div class="smallfont">
<strong>
<if condition="$show['contactus']"><a href="$vboptions[contactuslink]" rel="nofollow">$vbphrase[contact_us]</a> -</if>
<if condition="$vboptions['hometitle']"><a href="$vboptions[homeurl]">$vboptions[hometitle]</a> -</if>
<if condition="$show['admincplink']"><a href="$admincpdir/index.php$session[sessionurl_q]">$vbphrase[admin]</a> -</if>
<if condition="$show['modcplink']"><a href="$modcpdir/index.php$session[sessionurl_q]">$vbphrase[mod]</a> -</if>
<if condition="$vboptions['archiveenabled']"><a href="archive/index.php">$vbphrase[archive]</a> -</if>
<if condition="$vboptions[privacyurl]"><a href="$vboptions[privacyurl]">$vbphrase[privacy_statement]</a> -</if>
<a href="#top" onclick="self.scrollTo(0, 0); return false;">$vbphrase[top]</a>
</strong>
</div>
</td>
</tr>
</table>

<br />

<div align="center">
<div class="smallfont" align="center">
<!-- Do not remove this copyright notice -->
$vbphrase[powered_by_vbulletin]
<!-- Do not remove this copyright notice -->
</div>

<div class="smallfont" align="center">
<!-- Do not remove $cronimage or your scheduled tasks will cease to function -->
$cronimage
<!-- Do not remove $cronimage or your scheduled tasks will cease to function -->

$vboptions[copyrighttext]
</div>
</div>

</form>

<if condition="$show['dst_correction']">
<!-- auto DST correction code -->
<form action="profile.php?do=dst" method="post" name="dstform">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="do" value="dst" />
</form>
<script type="text/javascript">
<!--
var tzOffset = $bbuserinfo[timezoneoffset] + $bbuserinfo[dstonoff];
var utcOffset = new Date().getTimezoneOffset() / 60;
if (Math.abs(tzOffset + utcOffset) == 1)
{ // Dst offset is 1 so its changed
document.forms.dstform.submit();
}
//-->
</script>
<!-- / auto DST correction code -->

</if>
<script type="text/javascript">
<!--
// Main vBulletin Javascript Initialization
vBulletin_init();
//-->
</script>

agsguar
09-01-2006, 03:24 PM
try this!

I have the answer..

Check in your forum permission, in CRON.PHP file.. CHANGE the CHMOD to this

http://img118.imageshack.us/img118/4236/1tl7.jpg

Originaly this appears whitout permission, after this the task work fine and automatic.

Regards!!

Code Monkey
09-02-2006, 04:15 AM
Installing this mod has been known to fix non running crons. Give it a try.

https://vborg.vbsupport.ru/showthread.php?t=123719

If you are running 3.5x follow the link there to the 3.5x version.

Jenkins
09-05-2006, 04:51 PM
nope neither of those worked. the thing that is weird is that all the dates for "Next time to run" are in the past. what's up with that?

photongbic
10-03-2006, 02:37 PM
I am having a similair problem... My scheduled tasks are running but not when they should be! Tasks that are scheduled to run at 1am are running between 9 and 10am. The system is reporting the correct time.

Thoughts?

Paul M
10-03-2006, 02:48 PM
Scheduled tasks can only run if enough people visit the site to trigger them (not spiders, etc).

photongbic
10-03-2006, 04:42 PM
Scheduled tasks can only run if enough people visit the site to trigger them (not spiders, etc).

Pardon my ignorance but why does it matter if real people or spiders hit the forum? Doesn't cron get run by hits to footer.php which calls $cronimage? Doesn't that run if it is a spider or not?

Just trying to get a better understanding of the cron system in vBulletin.

Thanks!

photongbic
10-05-2006, 09:01 AM
Any one?

Thanks!

Paul M
10-05-2006, 09:12 AM
Pardon my ignorance but why does it matter if real people or spiders hit the forum? Doesn't cron get run by hits to footer.php which calls $cronimage? Doesn't that run if it is a spider or not?
Yes it matters, spiders will not normally attempt to load the $cronimage, therefore they will not trigger the running of crons. It will only happen when the page is loaded by a browser.

photongbic
10-05-2006, 10:55 AM
Yes it matters, spiders will not normally attempt to load the $cronimage, therefore they will not trigger the running of crons. It will only happen when the page is loaded by a browser.

Thanks! I have alot to learn about spiders.