?
avatar C-Lodder
C-Lodder
29 Jul 2017

Steps to reproduce the issue

  • Open the frontend of the site
  • Click "Popular Tags" in the "All modules" section on the left of the homepage
  • Click one of the tags in the article

Result

Warning: Invalid argument supplied for foreach() in \components\com_tags\View\Tag\Html.php on line 320

Can be fixed by adding an if statement before the foreach loop

if ($this->item !== null)

but not sure that's the best approach

avatar C-Lodder C-Lodder - open - 29 Jul 2017
avatar joomla-cms-bot joomla-cms-bot - change - 29 Jul 2017
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 29 Jul 2017
avatar C-Lodder C-Lodder - change - 29 Jul 2017
The description was changed
avatar C-Lodder C-Lodder - edited - 29 Jul 2017
avatar zero-24
zero-24 - comment - 29 Jul 2017

hmm the exact same code is used in staging. Can you reproduce that on staging too? Maybe it is just because of missing sample data for that module?

avatar C-Lodder
C-Lodder - comment - 29 Jul 2017

@zero-24 seems to work fine on staging

avatar zero-24
zero-24 - comment - 29 Jul 2017

Also without any tags in the sample data?

avatar C-Lodder
C-Lodder - comment - 29 Jul 2017

Even without sample data, still works fine

avatar zero-24
zero-24 - comment - 29 Jul 2017

hmm i can no reproduce this on a clean install 4.0 ?

avatar franz-wohlkoenig franz-wohlkoenig - change - 29 Jul 2017
Category com_tags
avatar franz-wohlkoenig franz-wohlkoenig - change - 29 Jul 2017
Status New Discussion
avatar C-Lodder
C-Lodder - comment - 29 Jul 2017

Hmm, ok let me install a fresh copy of J4 as I haven't done so in a while. Will report back later on

avatar C-Lodder
C-Lodder - comment - 29 Jul 2017

Reinstalling J4 worked

avatar C-Lodder C-Lodder - change - 29 Jul 2017
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2017-07-29 12:09:41
Closed_By C-Lodder
avatar C-Lodder C-Lodder - close - 29 Jul 2017

Add a Comment

Login with GitHub to post a comment