Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 17 Aug 2007, 16:44
Our House Our House is offline
 
Join Date: Apr 2007
New Cron/Scheduled Task Problem

Hi guys,

I have set up a custom scheduled task that works properly when clicking the "Run Now" button. However, it doesn't trigger automatically like the other scheduled tasks do.

It's set to run every minute, and when the forum is refreshed, "Next Time" is properly updating to reflect the correct time...but it's not running or logging.

A coder friend of mine created a different customized script for my board and the same thing is happening on his as well.

Everything about these two cronjobs is working except for the actual automated execution of them. Other cronjobs work across the board.

Any idea why this is happening?
Reply With Quote
  #2  
Old 17 Aug 2007, 18:16
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
I would check to make sure the owner/group of the file and the permissions are the same as the cron scripts that are working.
__________________
Former vBulletin.org Staff Member

Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
  #3  
Old 17 Aug 2007, 18:35
EnIgMa1234 EnIgMa1234 is offline
 
Join Date: Mar 2006
Real name: David
Can I see the code?
Reply With Quote
  #4  
Old 17 Aug 2007, 20:09
Our House Our House is offline
 
Join Date: Apr 2007
Originally Posted by Lynne View Post
I would check to make sure the owner/group of the file and the permissions are the same as the cron scripts that are working.
We just checked and they're all the same.

Originally Posted by EnIgMa1234 View Post
Can I see the code?
They're pretty big files. Is there any part in particular you'd like to know about?

Last edited by Our House; 17 Aug 2007 at 20:10. Reason: Automerged Doublepost
Reply With Quote
  #5  
Old 18 Aug 2007, 02:14
Antivirus's Avatar
Antivirus Antivirus is offline
 
Join Date: Sep 2004
Best to post the whole code the issue which might be causing the problem could be anywhere...

The issue might also be related to your site's traffic. The way vbulletin runs scheduled tasks is by displaying the image cronimage.gif within the footer template whenever a page in your forums loads (or is refreshed). If the forum doesn't have enough traffic to exec all scheduled tasks, then it could simply be a, issue of the scheduled task hasn't yet been tole to run.

Check your scheduled tasks log within Admincp and see if the scheduled tasks are all caught up
__________________
Please feel free to PM me about custom work, installations, and upgrades!

Eclipse Records - Streetcult Street Team
Reply With Quote
  #6  
Old 18 Aug 2007, 11:44
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Real name: Paul M
Running a cron job from the ACP and running one in reality are not quite the same - you are running the code in a different environment. Something that runs from the ACP may not work when triggered by the actual cron system.

No one is going to be able to help you unless you post (or attach) the actual code.
__________________
Former vBulletin.org Staff Member


Cable Forum
Please do not PM me about custom work - I no longer undertake any.
Note: I will not answer support questions via e-mail or PM - please use the relevant thread or forum.
Reply With Quote
  #7  
Old 20 Aug 2007, 02:41
Our House Our House is offline
 
Join Date: Apr 2007
Hi Guys,

Sorry about the code length. I'm attaching the file here.

Any help is appreciated.

Thanks,
OH
Attached Files
File Type: php werewolf.php (35.6 KB, 8 views)
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 02:02.

Layout Options | Width: Wide Color: