I wrote a simple cron php that updates specific thread (the thread is closed with only the starting post in it) with information from an external source. It works on vB 3.6.8 but crashes on 3.6.7. Here is what I'm doing -
$threadId = 125356 (or whatever)
$outputHTML = the information I need to push into this post
$outputTitle = the updated thread title
PHP Code:
//** get the thread and post info
$threadInfo = fetch_threadinfo($threadId);
$postInfo = fetch_postinfo($threadInfo['firstpostid']);
$dataman =& datamanager_init('Post', $vbulletin, ERRTYPE_ARRAY, 'threadpost');
$dataman->set_existing(fetch_postinfo($threadInfo['firstpostid']));
$dataman->setr('title', $outputTitle);
$dataman->setr('pagetext', $outputHTML);
I went line by line in the file till I found out where it stops. It is stopping on this line =
PHP Code:
$dataman->set_existing(fetch_postinfo($threadInfo['firstpostid']));
Any idea why this is happening? What am I doing wrong?
Thanks,
Tim