Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
Liferay 7.2 - Scheduled web contents are not being published
Hello,
I have a problem with my web contents. If I set a display date in the future for my web content, the web content is set to the status "Approved" and "Scheduled" as it should. The problem is, when this date is reached, the web content continues scheduled until we edit the web content and publish it manually.
First I thought it should be a problem with timezones or something similar. So I double-checked all my settings regarding timezones and it is all set correctly. But to be sure, e created a new web content with a display date for the next 3 days. I have already waited 5 days and the web content is still scheduled.
So I tried a new kind of tests: I scheduled a web content for the next 5 minutes. Waited the 5 minutes and the web content is still scheduled. But if I edit and publish it manually, the web content stops being scheduled.
It looks like the process to detect if the scheduled date has arrived is not being automatically triggered. Any leads of what is wrong here? Should I check some setting or some service wrapper could be broking the default Liferay behaviour?
I have a problem with my web contents. If I set a display date in the future for my web content, the web content is set to the status "Approved" and "Scheduled" as it should. The problem is, when this date is reached, the web content continues scheduled until we edit the web content and publish it manually.
First I thought it should be a problem with timezones or something similar. So I double-checked all my settings regarding timezones and it is all set correctly. But to be sure, e created a new web content with a display date for the next 3 days. I have already waited 5 days and the web content is still scheduled.
So I tried a new kind of tests: I scheduled a web content for the next 5 minutes. Waited the 5 minutes and the web content is still scheduled. But if I edit and publish it manually, the web content stops being scheduled.
It looks like the process to detect if the scheduled date has arrived is not being automatically triggered. Any leads of what is wrong here? Should I check some setting or some service wrapper could be broking the default Liferay behaviour?
The scheduler runs every 15 minutes, I think. So, waiting 5 minutes is not enough for a test.
Which Liferay version are you using?
Can you enable debug logging for "com.liferay.journal.service.impl.JournalArticleLocalServiceImpl", please?
You should see some debug output in the logfile when the scheduler is executed and calls the checkArticles() method.
https://github.com/liferay/liferay-portal/blob/master/modules/apps/journal/journal-service/src/main/java/com/liferay/journal/service/impl/JournalArticleLocalServiceImpl.java
Which Liferay version are you using?
Can you enable debug logging for "com.liferay.journal.service.impl.JournalArticleLocalServiceImpl", please?
You should see some debug output in the logfile when the scheduler is executed and calls the checkArticles() method.
https://github.com/liferay/liferay-portal/blob/master/modules/apps/journal/journal-service/src/main/java/com/liferay/journal/service/impl/JournalArticleLocalServiceImpl.java
Hi Christoph,
I understand that the 5 min test is not working because of the scheduler that runs every 15 minutes. But the web content that has a display date for 3 days ago should be published already.
I will enable debugging and update as soon as I know something else. Thank you for your answer.
I understand that the 5 min test is not working because of the scheduler that runs every 15 minutes. But the web content that has a display date for 3 days ago should be published already.
I will enable debugging and update as soon as I know something else. Thank you for your answer.
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™