minifrontpage error "Invalid argument supplied for foreach()"
- Posted by giancarlo (3) Offline
Dear sir,
Since the upgrade to joomla ver. 2.5.18 the minifrontpage modules doesn't work anymore.
in the page where the 2 minifrontpage modules should be there are only these errors:
I've tried to download and reinstall the module , but this doesn't fix the problem.
I've also tried to create an hidden menu voice ( blog type) and publish the category, but it doesn't work.
I don't think this issue could be related to hosting, because the module with the previous version of joomla works very well.
do you have any suggestion to help me to solve this problem?
Thank you very much.
11 years 2 months ago #1
by giancarlo
Since the upgrade to joomla ver. 2.5.18 the minifrontpage modules doesn't work anymore.
in the page where the 2 minifrontpage modules should be there are only these errors:
Warning: Invalid argument supplied for foreach() in /web/htdocs/test.ricaricadiprecisione.com/home/components/com_content/models/articles.php on line 495 Warning: Invalid argument supplied for foreach() in /web/htdocs/test.ricaricadiprecisione.com/home/modules/mod_minifrontpage/helper.php on line 118 Warning: Invalid argument supplied for foreach() in /web/htdocs/test.ricaricadiprecisione.com/home/modules/mod_minifrontpage/mod_minifrontpage.php on line 109
I've tried to download and reinstall the module , but this doesn't fix the problem.
I've also tried to create an hidden menu voice ( blog type) and publish the category, but it doesn't work.
I don't think this issue could be related to hosting, because the module with the previous version of joomla works very well.
do you have any suggestion to help me to solve this problem?
Thank you very much.
Please Log in or Create an account to join the conversation.
- Posted by giancarlo (3) Offline
please excuse me , I forgot to tell that this issue only shows when a user is logged in.
if I log out from my account the module works correctly.
11 years 2 months ago #2
by giancarlo
if I log out from my account the module works correctly.
Please Log in or Create an account to join the conversation.
- Posted by giancarlo (3) Offline
ok , Iv'e applied the workaround for joomla 3.2 and now seems to work.
for those who have the same issue I will copy down the workaround from yur other post :
open the flie : modules/mod_minifrontpage/helper.php
at lines (115) find this code :
$model->setState('filter.date_filtering', 'relative');
change to
$model->setState('filter.date_filtering', 'off');
it worked for me.
thank you anyway.
11 years 2 months ago #3
by giancarlo
for those who have the same issue I will copy down the workaround from yur other post :
open the flie : modules/mod_minifrontpage/helper.php
at lines (115) find this code :
$model->setState('filter.date_filtering', 'relative');
change to
$model->setState('filter.date_filtering', 'off');
it worked for me.
thank you anyway.
Please Log in or Create an account to join the conversation.
- Posted by TemplatePlazza (5310) Offline
Hi, g-1, This is a known bug for Joomla 3.2.2 and 2.5.18 so I'd suggest you to modify the articles.php instead of editing modules/mod_minifrontpage/helper.php. Changing the date-filtering to off will disable period of novelty setting
11 years 2 months ago #4
by TemplatePlazza
Please Log in or Create an account to join the conversation.