The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Hi all!
I'm new to Vbulletin, but have programming experience. I'm trying to create a cron to automatically open and close forums. I have the script fully setup, but it fails on the cron (works when I open the script in a browser). I've hunted and line in init.php 414 ----> $vbulletin->session =& new vB_Session($vbulletin, $sessionhash, $vbulletin->GPC[COOKIE_PREFIX . 'userid'], $vbulletin->GPC[COOKIE_PREFIX . 'password'] , $styleid, $languageid); is the show stopper. Its creating a session, which obviously isn't happening when the script runs from the command line. Does anyone have any suggestions here? Thanks in advance Lyndon |
#2
|
|||
|
|||
![]()
Is there a reason why you're creating a session for your cron script?
I define the following for my crons: Code:
define('SKIP_SESSIONCREATE', 1); define('NOCOOKIES', 1); define('DIE_QUIETLY', 1); |
#3
|
|||
|
|||
![]()
Are you setting up an Operating System cronjob, or a vBulletin Scheduled Task?
|
#4
|
|||
|
|||
![]()
I haven't defined:
define('NOCOOKIES', 1); define('DIE_QUIETLY', 1); It's using the systems crotab. I'm not creating a session on purpose, I'm trying to open / close the forums using VBulletin's system function. I didn't know about the NOCOOKIES macro, which I think, judging from the name, will solve my issue. I'll try defining the macro's on monday. Thanks for the help and I'll post with the result. L |
#5
|
|||
|
|||
![]()
This worked thanks.
Lyndon |
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|