Member
Member
vincent3569   2012-12-30, 22:53
#1

hi

with Zenphoto version 1.4.3.5 [11059], I have a lot of this warning in my debug log :
Backtrace: WARNING: Invalid argument supplied for foreach() in .../zenphoto/zp-core/zp-extensions/zenpage/zenpage-class-news.php on line 144 ZenpageNews->categoryIsVisible called from Zenpage->getArticles (zenpage-class.php [263]) from getNumNews (zenpage-template-functions.php [205]) from include (inc_header.php [285]) from include (pages.php [1]) from include (index.php [5]) from index.php [92]
do you have an idea about this message ?

Member
Member
sbillard   2012-12-30, 23:41
#2

It appears a bug if you call this function on an article which is in no categories.

Member
Member
vincent3569   2012-12-31, 12:38
#3

I have a look on articles of my website.
All of them have at least one categorie.

Member
Member
sbillard   2012-12-31, 18:15
#4

The problem will occur if any SQL error occurs on the query, so maybe some other thing was in error.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.