Loading...
 
Skip to main content

Articles, Unified-index; Indexing errors when a Tiki article has a url source

Status
Open
Subject
Articles, Unified-index; Indexing errors when a Tiki article has a url source
Version
24.x
Category
  • Regression
Feature
Article
Search
Resolution status
New
Submitted by
Bernard Sfez / Tiki Specialist
Lastmod by
Bernard Sfez / Tiki Specialist
Rating
(0)
Description

On a quite big and several time upgraded Tiki all unified-index errors were running without errors.
Since a few month I see an error for each article that has the field source filled with an URL.

2022-11-14T07:55:37+00:00 INFO (6): addDocument article 470 {"memoryUsage":"38.5 MiB"}
2022-11-14T07:55:37+00:00 ERR (3): NOTICE: Trying to access array offset on value of type bool {"code":null,"file":"/var/www/vhosts/xxxx/xxxx/lib/core/Search/ContentSource/ArticleSource.php","line":53}
2022-11-14T07:55:37+00:00 ERR (3): NOTICE: Trying to access array offset on value of type bool {"code":null,"file":"/var/www/vhosts/xxxx/xxxx/lib/core/Search/ContentSource/ArticleSource.php","line":56}

lib/core/Search/ContentSource/ArticleSource.php, lines 47:59
Copy to clipboard
$rss_relations = TikiLib::lib('relation')->get_object_ids_with_relations_from('article', $objectId, 'tiki.rss.source'); $sitetitle = ''; $siteurl = ''; if ($rss_relations) { $rssId = reset($rss_relations); $rssModule = TikiLib::lib('rss')->get_rss_module($rssId); if ($rssModule['sitetitle']) { $sitetitle = $rssModule['sitetitle']; } if ($rssModule['siteurl']) { $siteurl = $rssModule['siteurl']; } }
Importance
5
Easy to solve?
5
Priority
25
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
8232
Created
Monday 14 November, 2022 08:19:00 UTC
by Bernard Sfez / Tiki Specialist
LastModif
Monday 14 November, 2022 08:20:46 UTC


Show PHP error messages