Alexandria Book Library > Errori (Bugs)

Warning: Invalid argument supplied for foreach() - view.html.php on line 161


I am very excited about this software, it is very good, however I am getting an error message:

--- Quote ---Warning: Invalid argument supplied for foreach() in /home/aecc/www/components/com_abook/views/category/view.html.php on line 161
--- End quote ---

--- Code: ---         $this->params->set('page_subheading', $this->category->title);
$category = $this->category->getParent();
line 161 -->    foreach ($this->path as $item){
                                        $pathway->addItem($item['title'], $item['link']);

--- End code ---

This happened after I created the "ebooks" category.
Can someone help me? I am not a php programmer.
I am using Joomla 3.9.15 and PHP 7.3.
Thank you in advance!  :)

Hello all.

I have already solved the problem by adding the code below in bold.

if( is_array($this) )   {      
         foreach ($this->path as $item){
                                        $pathway->addItem($item['title'], $item['link']);

Thanks!   :D


[0] Message Index

Go to full version