Best practice forum (Archived)

Question about meaning of error? icon

 
Liz Katz
Question about meaning of error? icon
by Liz Katz - Saturday, 28 December 2013, 11:43 AM
 

Hello,

I'm have assigned programs and certifications by organization, and I see alerts like in the picture on all my users My Learning pages. With the big red "X" the icon seems to indicate that there is an error, or that something has been deleted, but the message is just a notification. Is this intended? How can I change it or get rid of these alerts? 

Thank you.

Liz

 

Ciaran Irvine (Core Developer)
Re: Question about meaning of error? icon
by Ciaran Irvine (Core Developer) - Sunday, 29 December 2013, 1:38 PM
 

Hi Liz,

That's not the usual icon for programs. That icon is normally seen only when a user is informed that one of their learning plans has been deleted. Do you have a heavily-customised theme? Your theme may be over-riding the standard icons from totara_core/msgicons.

 

Liz Katz
Re: Question about meaning of error? icon
by Liz Katz - Sunday, 29 December 2013, 2:03 PM
 

I have created a child theme based on Totara Standard. However, I haven't modified any icons or any references to icons. I also haven't created any styles related to alerts. How can I troubleshoot this? 

Liz

Ciaran Irvine (Core Developer)
Re: Question about meaning of error? icon
by Ciaran Irvine (Core Developer) - Sunday, 29 December 2013, 2:23 PM
 

First thing would be to switch the theme back to Totara Standard, assign a user to a program, log in as the user and see if they then get the right icon - if so then something has gone awry in your child theme. At least then we'll know for sure if it's some odd theme issue in the child theme which will be a start in narrowing it down.

Liz Katz
Re: Question about meaning of error? icon
by Liz Katz - Sunday, 29 December 2013, 5:54 PM
 

So very oddly... I changed the theme to Standard Totara. Icons normal. I changed the theme back. Now the icons are normal in the child theme. 

I'm going to simply hope this doesn't happen again. 

Thanks, Ciaran.

 

Ciaran Irvine (Core Developer)
Re: Question about meaning of error? icon
by Ciaran Irvine (Core Developer) - Sunday, 29 December 2013, 6:20 PM
 

Possibly some sort of strange image caching issue maybe?

 

Glad it works now though :-)

Liz Katz
Re: Question about meaning of error? icon
by Liz Katz - Sunday, 29 December 2013, 6:58 PM
 

Spoke too soon. 

Apparently it has something to do with where they are displayed. 

This is Standard Totara. The Alerts haven't moved to the sidebar and are displaying the same as the child theme. 

Liz

Ciaran Irvine (Core Developer)
Re: Question about meaning of error? icon
by Ciaran Irvine (Core Developer) - Sunday, 29 December 2013, 7:25 PM
 

Very strange.

 

Could you run the following query to see what icon is being specified in the alerts table:

 

select m.id, m.icon from mdl_message_metadata m
LEFT JOIN mdl_message_processors p ON
m.processorid=p.id and p.name='totara_alert'

It normally should be 'default' but what appears to be displayed on your system is 'learningplan-remove'

Liz Katz
Re: Question about meaning of error? icon
by Liz Katz - Sunday, 29 December 2013, 7:43 PM
 

This is what came up. 

Ciaran Irvine (Core Developer)
Re: Question about meaning of error? icon
by Ciaran Irvine (Core Developer) - Sunday, 29 December 2013, 8:12 PM
 

OK so there are a bunch of alerts in there that have the icon set to learningplan-remove. And then other alerts that have the proper default icon.

I've no idea how that could possibly have happened though!

Liz Katz
Re: Question about meaning of error? icon
by Liz Katz - Sunday, 29 December 2013, 8:43 PM
 

So it isn't a stylesheet issue.

If I want to diagnose the problem...

  1. I'll delete all alerts as you described in another thread. 
  2. I enable system messaging (since I've turned it off.)
  3. This table should now be empty - right?
  4. Then as I assign the new certifications and learning plans I'll keep checking this table to see that they all default. 

Otherwise I delete the alerts and leave system messaging off for now--and trust that when I launch the site, this won't happen again.