← Back to team overview

mahara-contributors team mailing list archive

[Bug 1745042] [NEW] Social profile icon causing warning in Elasticsearch display

 

Public bug reported:

Mahara: 17:10.2  (2017092611)
OS: Linux 16.04
DB: Postgres
Browser: any

An warning is displayed (and debug is on) when using Elastisearch when
searching on data. Please refer to attached image of warning.

We are using the raw_old theme but it's also present in raw.

I haven't been able to track down the data itself but I can see that it
stems from a social profile not having a relevant icon. And, I can track
it down to:

/htdocs/search/elasticsearch/type/ElasticsearchType_artefact.php::getRecordDataById
- lines 353-356


If the array $icons is empty, the properties: link and icon

do not get set.

Which leads to this warning in the template:

/htdocs/theme/raw_old/plugintype/search/elasticsearch/templates/artefact.tpl

on line 15.

** Affects: mahara
     Importance: Undecided
     Assignee: Ghada El-Zoghbi (ghada-z)
         Status: New

** Attachment added: "dwoo_error.png"
   https://bugs.launchpad.net/bugs/1745042/+attachment/5041997/+files/dwoo_error.png

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1745042

Title:
  Social profile icon causing warning in Elasticsearch display

Status in Mahara:
  New

Bug description:
  Mahara: 17:10.2  (2017092611)
  OS: Linux 16.04
  DB: Postgres
  Browser: any

  An warning is displayed (and debug is on) when using Elastisearch when
  searching on data. Please refer to attached image of warning.

  We are using the raw_old theme but it's also present in raw.

  I haven't been able to track down the data itself but I can see that
  it stems from a social profile not having a relevant icon. And, I can
  track it down to:

  /htdocs/search/elasticsearch/type/ElasticsearchType_artefact.php::getRecordDataById
  - lines 353-356

  
  If the array $icons is empty, the properties: link and icon

  do not get set.

  Which leads to this warning in the template:

  /htdocs/theme/raw_old/plugintype/search/elasticsearch/templates/artefact.tpl

  on line 15.

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1745042/+subscriptions


Follow ups