Expired Badge Topic is solved

Need help with the Administration of your Joomla! 4.x site? This is the spot for you.

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
Locked
cappleby
Joomla! Intern
Joomla! Intern
Posts: 98
Joined: Fri Oct 10, 2008 5:18 am

Expired Badge

Post by cappleby » Wed Sep 28, 2022 6:00 am

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
Chris A
Melbourne, Australia

User avatar
ceford
Joomla! Hero
Joomla! Hero
Posts: 2673
Joined: Mon Feb 24, 2014 10:38 pm
Location: Edinburgh, Scotland
Contact:

Re: Expired Badge

Post by ceford » Wed Sep 28, 2022 7:16 am

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?

cappleby
Joomla! Intern
Joomla! Intern
Posts: 98
Joined: Fri Oct 10, 2008 5:18 am

Re: Expired Badge

Post by cappleby » Thu Sep 29, 2022 1:13 am

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.
ExpiredClip2.png
ExpiredClip1.png
You do not have the required permissions to view the files attached to this post.
Chris A
Melbourne, Australia

User avatar
ceford
Joomla! Hero
Joomla! Hero
Posts: 2673
Joined: Mon Feb 24, 2014 10:38 pm
Location: Edinburgh, Scotland
Contact:

Re: Expired Badge

Post by ceford » Thu Sep 29, 2022 5:02 am

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.

cappleby
Joomla! Intern
Joomla! Intern
Posts: 98
Joined: Fri Oct 10, 2008 5:18 am

Re: Expired Badge

Post by cappleby » Thu Sep 29, 2022 5:42 am

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

cappleby
Joomla! Intern
Joomla! Intern
Posts: 98
Joined: Fri Oct 10, 2008 5:18 am

Re: Expired Badge

Post by cappleby » Thu Sep 29, 2022 5:46 am

Here's a screen clip of the datatable
ExpiredClip3.png
You do not have the required permissions to view the files attached to this post.
Chris A
Melbourne, Australia

User avatar
ceford
Joomla! Hero
Joomla! Hero
Posts: 2673
Joined: Mon Feb 24, 2014 10:38 pm
Location: Edinburgh, Scotland
Contact:

Re: Expired Badge

Post by ceford » Thu Sep 29, 2022 10:00 am

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.

cappleby
Joomla! Intern
Joomla! Intern
Posts: 98
Joined: Fri Oct 10, 2008 5:18 am

Re: Expired Badge

Post by cappleby » Thu Sep 29, 2022 11:23 am

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
Chris A
Melbourne, Australia

User avatar
ceford
Joomla! Hero
Joomla! Hero
Posts: 2673
Joined: Mon Feb 24, 2014 10:38 pm
Location: Edinburgh, Scotland
Contact:

Re: Expired Badge

Post by ceford » Thu Sep 29, 2022 12:00 pm

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.

cappleby
Joomla! Intern
Joomla! Intern
Posts: 98
Joined: Fri Oct 10, 2008 5:18 am

Re: Expired Badge

Post by cappleby » Fri Sep 30, 2022 12:54 am

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.
Chris A
Melbourne, Australia

cappleby
Joomla! Intern
Joomla! Intern
Posts: 98
Joined: Fri Oct 10, 2008 5:18 am

Re: Expired Badge solved?

Post by cappleby » Sat Oct 01, 2022 5:13 am

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
Chris A
Melbourne, Australia


Locked

Return to “Administration Joomla! 4.x”