The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
My Cron Isn't Posted A Thread!?
I have a cron setup that runs once per day, that basically moves threads, and after its done it's supposed to post to an existing thread with some log information.
Theres more to the code, but this is the jist of what I'm doing. The move code..and below that, the posting code. The threads move fine..when the cron runs, however the POST IS NEVER made. I cannot figure out for the life of me why it never posts. If I run the cron manually, the move works and the post happens perfectly. Why would manually running it work, but not the actual scheduled cron timer? PHP Code:
|
#2
|
||||
|
||||
I have had that sort of problem where it works when run manually, but not as a cron job. I had to include some variables as global - ie. global $vbulletin, $whatever - and then it worked fine. You may want to look for something like that.
|
#3
|
||||
|
||||
Thanks Lynne,
I tried all of these: still no luck. Sux. I'll keep at it... PHP Code:
|
#4
|
||||
|
||||
I am pretty sure you do not want to include global.php. You'll probably get errors if you do. (Have you looked in your error_logs?)
|
#5
|
||||
|
||||
Yah I got errors, I had to that out. Which error logs? The scheduled tasks logs just say it completed.. so its useless. Do you mean "Log Manager" ? If so, I dont have that defined in the vboptions so its not working no. Maybe I should turn it on? hmm
|
#6
|
||||
|
||||
I'm talking about your apache error_logs. If you don't know where they are, you should ask your host.
|
#7
|
||||
|
||||
Ok whats weird is if I make another cron job with a seperate php file and put this in it:
PHP Code:
|
#8
|
||||
|
||||
Where were you putting the code? I figured you had that in a separate file (how else would you do it?).
|
#9
|
||||
|
||||
n/m I finally figured this stupid thing out.. thank you!
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|