The Joomla! Forum ™



Forum rules


Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.



Post new topic Reply to topic  [ 13 posts ] 
Author Message
PostPosted: Sat Jan 28, 2012 9:30 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sat Jan 28, 2012 9:23 pm
Posts: 8
I have some articles which are expired (because the article expiry date has passed) but the tooltip still shows "Published and is current"".
Also the Category List counts these articles but they are not shown anymore to the users (and this is correct). But this also confusing because it counts 15 articles but only shows 10.

Why does the Article Managers doesn't show a status that these articles are Expired ??
I looks like this is something which is forgotten with 1.7. (or am I doing something wrong).


Top
 Profile  
 
PostPosted: Sun Feb 19, 2012 7:20 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Mon Sep 06, 2010 5:41 am
Posts: 12
I have the same issue:
Joomla 1.5 had a good way of indicating Published, Expired, Unpublished articles.

Joomla 2.5 does not display an Expired icon - it shows that the article is Published. This is confusing since the article is still technically "published" it is expired and will not display on searches or menus.

If anyone has a suggestion please let us know. Hopefully, something this simple will be corrected in the next update to Joomla 2.5.

Any feedback?

Erik


Top
 Profile  
 
PostPosted: Wed Feb 22, 2012 5:42 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sat May 22, 2010 11:27 am
Posts: 10
I have noticed the same thing, is this a documented bug in 2.5.1 ?


Top
 Profile  
 
PostPosted: Thu Mar 22, 2012 1:58 am 
Joomla! Fledgling
Joomla! Fledgling

Joined: Thu Mar 22, 2012 1:44 am
Posts: 4
Hello,

I was having the same issue on my hosting server while it was working fine locally.

I guess it is due to the PHP version.

I finally fixed it myself like this:

In file libraries\joomla\html\html\jgrid.php, around the line #144

Replace :

Code:
         $publish_up      = ($publish_up       != $nullDate) ? JFactory::getDate($publish_up, 'UTC')->setTimeZone($tz)    : false;
         $publish_down    = ($publish_down    != $nullDate) ? JFactory::getDate($publish_down, 'UTC')->setTimeZone($tz)     : false;
         
         // Create tip text, only we have publish up or down settings
         $tips = array();
         if ($publish_up) {
            $tips[] = JText::sprintf('JLIB_HTML_PUBLISHED_START', $publish_up->format(JDate::$format, true));
         }
         if ($publish_down) {
            $tips[] = JText::sprintf('JLIB_HTML_PUBLISHED_FINISHED', $publish_down->format(JDate::$format, true));
         }


By this code :

Code:
         //$publish_up      = ($publish_up       != $nullDate) ? JFactory::getDate($publish_up, 'UTC')->setTimeZone($tz)    : false;
         $publish_up      = ($publish_up       != $nullDate) ? JFactory::getDate($publish_up, 'UTC')    : false; // zyphir fix
         //$publish_down    = ($publish_down    != $nullDate) ? JFactory::getDate($publish_down, 'UTC')->setTimeZone($tz)     : false;
         $publish_down    = ($publish_down    != $nullDate) ? JFactory::getDate($publish_down, 'UTC')     : false; // zyphir fix

         // Create tip text, only we have publish up or down settings
         $tips = array();
         if ($publish_up) {
            $publish_up->setTimezone($tz); // zyphir fix
            $tips[] = JText::sprintf('JLIB_HTML_PUBLISHED_START', $publish_up->format(JDate::$format, true));
         }
         if ($publish_down) {
            $publish_down->setTimezone($tz); // zyphir fix
            $tips[] = JText::sprintf('JLIB_HTML_PUBLISHED_FINISHED', $publish_down->format(JDate::$format, true));
         }


Enjoy ;)


Top
 Profile  
 
PostPosted: Thu Mar 22, 2012 5:15 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Mon Sep 06, 2010 5:41 am
Posts: 12
Is that a core hack? I'm not sure that's the best way to go about fixing this issue. If it is a core hack, won't it get replaced every time we update Joomla?


Top
 Profile  
 
PostPosted: Thu Mar 22, 2012 10:21 am 
Joomla! Fledgling
Joomla! Fledgling

Joined: Thu Mar 22, 2012 1:44 am
Posts: 4
Indeed, if you upgrade Joomla, the fix will probably disappear.

Otherwise you can try updating your PHP version.

Btw, what is your current PHP version?

For my part, this issue appears on PHP 5.2.6 while it works fine locally on PHP 5.3.8.

If I have time, maybe I will post this issue on the Joomla bug tracker (http://joomlacode.org/gf/project/joomla ... er_id=8103).


Top
 Profile  
 
PostPosted: Thu Mar 22, 2012 5:02 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Mon Sep 06, 2010 5:41 am
Posts: 12
It is generally ill-advised to hack the Joomla core, especially since the hack disappears with any upgrade and always has the potential to effect the entire system or other plug-ins.

I'm interested to see if this works better on PHP 5.3.8 when that is updated on my server.

Thank you for the tip and yes, please post the issue in Joomla bug tracker.

Thanks,
E


Top
 Profile  
 
PostPosted: Thu Mar 22, 2012 6:13 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Thu Mar 22, 2012 1:44 am
Posts: 4
SwingShoes wrote:
It is generally ill-advised to hack the Joomla core, especially since the hack disappears with any upgrade and always has the potential to effect the entire system or other plug-ins.


It depends mainly on how you are using Joomla.

I think a lot of users don't upgrade Joomla regularly for many reasons (modified core, modified extensions, extensions not available for the new Joomla version or simply because they do not see any major benefit).

Btw, if you look better at the code above, you will see that it is only another way to write exactly the same thing.
Moreover it will only affect the backend so there is no major risk for the website frontend.

You can also simply consider this as a temporary fix ;)

Please let us know if your PHP update solves the problem. It will be interesting to know it when reporting the bug.


Top
 Profile  
 
PostPosted: Thu Mar 22, 2012 6:30 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Mon Sep 06, 2010 5:41 am
Posts: 12
I can't stress enough that hacking the core Joomla files is not a good idea....it is a worse idea to not update Joomla.

I'll see if anything can be done about the PHP and post any updates here.

Thanks,
E


Top
 Profile  
 
PostPosted: Mon May 14, 2012 5:06 pm 
User avatar
Joomla! Apprentice
Joomla! Apprentice

Joined: Sat Sep 17, 2011 8:21 pm
Posts: 8
Location: Germany
I still had the same problem in Joomla 2.5.4
On a clean install everything worked as it should work, expired articles were clearly recognizable. I thought 'Whooohooo the problem has been fixed'.
But after working on my site for some weeks, the expired articles showed up as published again :( .

After disabling JoomlaCK the problem was fixed: expired articles show up as expired now - as they should do.

Edit: never mind, JoomlaCK turned out not to be the problem.


Top
 Profile  
 
PostPosted: Sun Jul 08, 2012 5:38 pm 
Joomla! Enthusiast
Joomla! Enthusiast

Joined: Wed Nov 18, 2009 9:05 pm
Posts: 108
I'm having the same problem in J2.5.6. I'm looking for an extension that will mark expired articles correctly. Has anyone found one? I agree -- it's dangerous to both edit Joomla core code and to not upgrade Joomla. It's the responsibility of those who are creating Joomla upgrades to not break things that are already working... Does anybody regression test anything before they release it?


Top
 Profile  
 
PostPosted: Thu Jul 12, 2012 8:11 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Mon Sep 06, 2010 5:41 am
Posts: 12
This is the simplest solution. I have found it documented (can't remember where) and it solved the issue: Make sure that your Joomla site is hosted on a server using PHP 5.3 or higher.

If your host changes updates the server, great. If they have to move your site to a server using PHP 5.3, then you might have to update your DNS address to reflect the server address change.

Let me know if that works or if any other solution is discovered.


Top
 Profile  
 
PostPosted: Sat Aug 25, 2012 7:25 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sat Feb 09, 2008 5:45 am
Posts: 42
I thought I tried everything, but I will back up the advice of upgrading PHP. I just did so today and I am no longer having this problem! I wish there was a thread somewhere that spelled this out... I went as far as to report a bug on this subject before trying the PHP version...

If you are using PHP v5.2.x... you HAVE TO upgrade!

It was that simple!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 13 posts ] 



Who is online

Users browsing this forum: Bleemster, ilias_italy, jodofin, shryart and 69 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group