-
AuthorPosts
-
September 15, 2015 at 11:39 pm #684160
Hi,
I am trying to deploy a responsive grid for K2 into Uber template but it seems there is a problem when it tries to list items and category. It happens when I’m trying to run over all items through a foreach method returning me:
Warning: Invalid argument supplied for foreach() in ….default.php line X
My question is, can I integrate K2 properly with Uber/T3 framework?
Thanks a lot!
Adam M Moderator
Adam M
- Join date:
- May 2014
- Posts:
- 5159
- Downloads:
- 33
- Uploads:
- 66
- Thanks:
- 95
- Thanked:
- 1271 times in 1235 posts
Adam M Moderator
Adam M
- Join date:
- May 2014
- Posts:
- 5159
- Downloads:
- 33
- Uploads:
- 66
- Thanks:
- 95
- Thanked:
- 1271 times in 1235 posts
September 18, 2015 at 12:47 am #686073Hi Adam,
It is currently working into another templated based on Expose framework. And what I’m doing is:
foreach($items as $key=>$item)
It’s weird…it should be working properly and this is why I’m asking if K2 works.
September 18, 2015 at 12:47 am #748929Hi Adam,
It is currently working into another templated based on Expose framework. And what I’m doing is:
foreach($items as $key=>$item)
It’s weird…it should be working properly and this is why I’m asking if K2 works.
jooservices Friend
jooservices
- Join date:
- October 2014
- Posts:
- 8556
- Downloads:
- 0
- Uploads:
- 130
- Thanked:
- 1245 times in 1121 posts
September 18, 2015 at 12:54 am #686074<em>@gmerino 492449 wrote:</em><blockquote>Hi,
I am trying to deploy a responsive grid for K2 into Uber template but it seems there is a problem when it tries to list items and category. It happens when I’m trying to run over all items through a foreach method returning me:
Warning: Invalid argument supplied for foreach() in ….default.php line X
My question is, can I integrate K2 properly with Uber/T3 framework?
Thanks a lot!</blockquote>
About your error code please check variable before foreach
if (is_array($items)) { do your code }jooservices Friend
jooservices
- Join date:
- October 2014
- Posts:
- 8556
- Downloads:
- 0
- Uploads:
- 130
- Thanked:
- 1245 times in 1121 posts
September 18, 2015 at 12:54 am #748930<em>@gmerino 492449 wrote:</em><blockquote>Hi,
I am trying to deploy a responsive grid for K2 into Uber template but it seems there is a problem when it tries to list items and category. It happens when I’m trying to run over all items through a foreach method returning me:
Warning: Invalid argument supplied for foreach() in ….default.php line X
My question is, can I integrate K2 properly with Uber/T3 framework?
Thanks a lot!</blockquote>
About your error code please check variable before foreach
if (is_array($items)) { do your code } -
AuthorPosts
This topic contains 7 replies, has 3 voices, and was last updated by jooservices 9 years, 4 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum