By Alex on Wednesday, 20 December 2017
Posted in Technical Issues
Replies 7
Likes 0
Views 635
Votes 0
Hi,
today morning I have recognized that all posts are suddenly autolocked.
I checked the settings - autolock feature after a certain time period is not enabled.

I manually un-locked most of the posts.
Now, an hour later I am looking again into the forum, and again, all posts are locked???


FYI: today morning, I added a cronjob for letting the emails & notifications to be sent every 2 mins. But I donĀ“t think this is related to that.


THANKS FOR HELP!!
Hi Alex,

The cronjob will auto lock posts when autolock is enabled.

It looks like the autolock is enabled because this is not disabled(set to 0). http://take.ms/4Qe50

I have helped you set the value to 0.

Can you try unlock some posts, then run the cron again and see how it goes?
·
Wednesday, 20 December 2017 18:47
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks Raymond, it seems that all is fine now. I unlocked the posts and ran the CRON again, posts are not locked now.

Actually I thought that autolock WAS disabled. So did you change something in the background? (Just want to make sure that it doesnt happen again, when there are many posts in the forum).

Thanks
·
Wednesday, 20 December 2017 19:33
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Alex,

All I did earlier was changed the 'Days to lock after last replied' from 180 to 0 as this disables the setting.

When both of those 'days to lock' settings are set to 0, posts should no longer autolock during cron execution.
·
Wednesday, 20 December 2017 19:35
·
0 Likes
·
0 Votes
·
0 Comments
·
OK thanks Raymond. FYI: the forum is not older than appr. 20 days, so it still might be a bug, if it was set to 180 days and CRON triggered it to autolock all posts, which are at max 20 days old...

BR, Alex
·
Wednesday, 20 December 2017 19:42
·
0 Likes
·
0 Votes
·
0 Comments
·
Hmm. You're right Alex as there is a bug here.

By right, when the cronjob runs, it will check the autolock setting and then set the lockdate for posts(eg. if setting is set to 180, it will set a lockdate 180 days from the post creation).

Then when the lock date arrives and the cronjob is executed, then only will the post be locked.

I will log this in our tracker so we can address this.

Regards.
·
Thursday, 21 December 2017 13:31
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post