?
avatar kofaysi
kofaysi
12 Mar 2019

Steps to reproduce the issue

Request a content of any link on the page or on the site after the cache has been expired.

Expected result

The message "Please login first" will be a different color than green.

Actual result

The message is green, a positive and successful action.

System information (as much as possible)

J3.9.4
code to be changed

$this->enqueueMessage(\JText::_('JGLOBAL_YOU_MUST_LOGIN_FIRST'));

Additional comments

avatar kofaysi kofaysi - open - 12 Mar 2019
avatar joomla-cms-bot joomla-cms-bot - change - 12 Mar 2019
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 12 Mar 2019
avatar kofaysi kofaysi - change - 12 Mar 2019
Title
…
Message reporting to log in (after cache is expired) should be type waring
Message reporting to log in (after cache is expired) should be warning type
avatar kofaysi kofaysi - edited - 12 Mar 2019
avatar hardik-codes
hardik-codes - comment - 13 Mar 2019

Working on it
@kofaysi what should be the color according to you.

avatar kofaysi
kofaysi - comment - 13 Mar 2019

Yellow is my choice :) And it fits to the warning definition, too.

avatar franz-wohlkoenig franz-wohlkoenig - change - 13 Mar 2019
Status New ⇒ Discussion
avatar hardik-codes
hardik-codes - comment - 13 Mar 2019

@kofaysi how can I reduce the cachetimeout for testing purposes?

avatar kofaysi
kofaysi - comment - 15 Mar 2019

I believe it is in Global configuration > System > Cache settings > Cache time

avatar hardik-codes
hardik-codes - comment - 15 Mar 2019

@kofaysi I not able to reproduce the issue correctly could you please elaborate

avatar kofaysi
kofaysi - comment - 15 Mar 2019

Activate "Logged-in Users" module for the Administrator interface and logout the user there.

I don't think that the reconstruction of the effect is so important. The message is of type message (green) by default, because no type is defined https://docs.joomla.org/Display_error_messages_and_notices. So, I argue that "a message requiring a user to log in first" should by of type notice or warning (preferred), wherever it occurs.

avatar hardik-codes
hardik-codes - comment - 15 Mar 2019

Could you do screenshot please.

avatar kofaysi
kofaysi - comment - 15 Mar 2019

image

avatar hardik-codes
hardik-codes - comment - 15 Mar 2019

Screenshot for How do I

Activate "Logged-in Users" module for the Administrator interface and logout the user there.

avatar kofaysi
kofaysi - comment - 15 Mar 2019

publishing the module to the cpanel
image
logging out a user in the cpanel (home of the administrator)
image

avatar franz-wohlkoenig franz-wohlkoenig - change - 16 Mar 2019
Status Discussion ⇒ Closed
Closed_Date 0000-00-00 00:00:00 ⇒ 2019-03-16 05:27:53
Closed_By ⇒ franz-wohlkoenig
avatar joomla-cms-bot joomla-cms-bot - change - 16 Mar 2019
Closed_By franz-wohlkoenig ⇒ joomla-cms-bot
avatar joomla-cms-bot joomla-cms-bot - close - 16 Mar 2019
avatar joomla-cms-bot
joomla-cms-bot - comment - 16 Mar 2019
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 16 Mar 2019

closed as having Pull Request #24200

Add a Comment

Login with GitHub to post a comment