Expired Badge Topic is solved
Moderator: General Support Moderators
Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
-
- Joomla! Intern
- Posts: 98
- Joined: Fri Oct 10, 2008 5:18 am
Expired Badge
I have a website updated from Joomla! 3 to Joomla! 4 and now all the articles have an expired badge showing unless I put an explicit Finish Publishing date in every article. I don't want my articles to expire unless I choose to later.
This appears to be an oversight on the part of the upgrade designers. At least I hope so.
Chris A
This appears to be an oversight on the part of the upgrade designers. At least I hope so.
Chris A
Chris A
Melbourne, Australia
Melbourne, Australia
- ceford
- Joomla! Hero
- Posts: 2673
- Joined: Mon Feb 24, 2014 10:38 pm
- Location: Edinburgh, Scotland
- Contact:
Re: Expired Badge
Could you show us a screen shot? I don't see any setting to show Unpublished articles in the front end. Is there anything in the Publishing / Finish Publishing field for an article showing this badge?
-
- Joomla! Intern
- Posts: 98
- Joined: Fri Oct 10, 2008 5:18 am
Re: Expired Badge
Here are a clip of the front end and the back end for one of the "expired" articles. On the front end the first article has had a "Finish Publishing" date added which has removed the expired badge.
You do not have the required permissions to view the files attached to this post.
Chris A
Melbourne, Australia
Melbourne, Australia
- ceford
- Joomla! Hero
- Posts: 2673
- Joined: Mon Feb 24, 2014 10:38 pm
- Location: Edinburgh, Scotland
- Contact:
Re: Expired Badge
Can you have a look at your database #__content table with phpMyAdmin and report what is in the publish_up and publish_down columns? The latter should be NULL.
-
- Joomla! Intern
- Posts: 98
- Joined: Fri Oct 10, 2008 5:18 am
Re: Expired Badge
Yes, they're all Null apart from the ones where I've added a finishing date
Last edited by cappleby on Thu Sep 29, 2022 5:46 am, edited 1 time in total.
Chris A
Melbourne, Australia
Melbourne, Australia
-
- Joomla! Intern
- Posts: 98
- Joined: Fri Oct 10, 2008 5:18 am
Re: Expired Badge
Here's a screen clip of the datatable
You do not have the required permissions to view the files attached to this post.
Chris A
Melbourne, Australia
Melbourne, Australia
- ceford
- Joomla! Hero
- Posts: 2673
- Joined: Mon Feb 24, 2014 10:38 pm
- Location: Edinburgh, Scotland
- Contact:
Re: Expired Badge
Looking through the code, there are two places where the Expired notice may be coming from:
siteroot/layout/joomla/content/blog_style_default_item_title.php line 48
siteroot/component/com_content/tmpl/featured/default_item.php line 62
depending on whether your home page is a category blog type or featured type.
If you have template overrides or third party extensions there may be more places to look.
Both of the above use current date to determine whether or not to show the label. So check your Time Zone in Global Configuration / Server / Location and check that you system time is correctly set.
siteroot/layout/joomla/content/blog_style_default_item_title.php line 48
siteroot/component/com_content/tmpl/featured/default_item.php line 62
depending on whether your home page is a category blog type or featured type.
If you have template overrides or third party extensions there may be more places to look.
Both of the above use current date to determine whether or not to show the label. So check your Time Zone in Global Configuration / Server / Location and check that you system time is correctly set.
-
- Joomla! Intern
- Posts: 98
- Joined: Fri Oct 10, 2008 5:18 am
Re: Expired Badge
Hi ceford,
I've tried commenting out the two pieces of code you suggested with no change.
The page is featured type. I don't think there are any 3rd party extensions that are affecting it. I've disabled any I wasn't sure about and no change.
Current date is set to Perth Australia. In anycase publish_down is set to null.
I also tried commenting out the is_Expired line at the top of default_item.php without success.
Chris A
I've tried commenting out the two pieces of code you suggested with no change.
The page is featured type. I don't think there are any 3rd party extensions that are affecting it. I've disabled any I wasn't sure about and no change.
Current date is set to Perth Australia. In anycase publish_down is set to null.
I also tried commenting out the is_Expired line at the top of default_item.php without success.
Chris A
Chris A
Melbourne, Australia
Melbourne, Australia
- ceford
- Joomla! Hero
- Posts: 2673
- Joined: Mon Feb 24, 2014 10:38 pm
- Location: Edinburgh, Scotland
- Contact:
Re: Expired Badge
I see you are using a third party template so you need to look for the problem in that template. Search the template code for JEXPIRED (but if it is not a translatable template you may need to search for Expired). You will have to figure out what is wrong yourself.
-
- Joomla! Intern
- Posts: 98
- Joined: Fri Oct 10, 2008 5:18 am
Re: Expired Badge
The problem is there irrespective of what template I use. Cassieopia is the same except expired is just characters not a badge.
Thanks for your help.
Thanks for your help.
Chris A
Melbourne, Australia
Melbourne, Australia
-
- Joomla! Intern
- Posts: 98
- Joined: Fri Oct 10, 2008 5:18 am
Re: Expired Badge solved?
I fixed it though I can't explain why this worked. I exported the datatable then reimported it and the badges have stopped popping up.
Thanks again for your help.
Chris A
Thanks again for your help.
Chris A
Chris A
Melbourne, Australia
Melbourne, Australia