- Posts: 3
COMMUNITY FORUM
K2 Stats (admin) error
- Claes Lampi
- Topic Author
- Offline
- New Member
Error message is:
Warning: Invalid argument supplied for foreach() in ...default.php on line 37
Line 37 is: <?php foreach($latestItems as $latest): ?>
Whats wrong?
Please Log in or Create an account to join the conversation.
- andrea
- Offline
- New Member
- Posts: 4
Claes Lampi wrote: Just updated K2 to 2.5.2 (joomla is 1.7.3). In the main page in the back end, the K2 Stats (admin) wont show.
Error message is:
Warning: Invalid argument supplied for foreach() in ...default.php on line 37
Line 37 is: <?php foreach($latestItems as $latest): ?>
Whats wrong?
Hallo,
I have the same problem after upgrade K2 from 2.5.1 to 2.5.2 on joomla 1.7.3. The same problem is on Joomla 1.7.3 with a new installiation og k2 2.5.3.
Warning: Invalid argument supplied for foreach() in /administrator/modules/mod_k2_stats/tmpl/default.php on line 37
Please Log in or Create an account to join the conversation.
- SDKiller
- Offline
- Junior Member
- Posts: 35
What has changed in 2.5.3? Here's a list of the most important ones:
* First and foremost, we have fixed any PHP notices, warning or errors
Not everything was fixed really )))
You have such warning because some of the arrays, prepared for admin tabs is empty and there is no check for empty values in module.
You have no items - that's the reason for this message.
Russian K2 support on joomlaforum.ru
Please Log in or Create an account to join the conversation.
- Claes Lampi
- Topic Author
- Offline
- New Member
- Posts: 3
Please Log in or Create an account to join the conversation.
- andrea
- Offline
- New Member
- Posts: 4
On my site there isn't Akeeba Backup, for this reason i think don't is this the problem. I have installed only Joomla 1.7.3 and K2 2.5.3 and many article in K2.
On Joomla 1.7.3+K2 2.5.1 and the same article in K2 there isn't a problem. ..
Please Log in or Create an account to join the conversation.
- Jonathan Oliveira
- Offline
- New Member
- Posts: 1
Then after installing v2.5.3 K2, K2 Stats module (admin) presented the following issues:
Notice: Undefined variable: latestItems in C:\wamp\www\evolucao\administrator\modules\mod_k2_stats\tmpl\default.php on line 37
Warning: Invalid argument supplied for foreach() in C:\wamp\www\evolucao\administrator\modules\mod_k2_stats\tmpl\default.php on line 37
Notice: Undefined variable: popularItems in C:\wamp\www\evolucao\administrator\modules\mod_k2_stats\tmpl\default.php on line 64
Warning: Invalid argument supplied for foreach() in C:\wamp\www\evolucao\administrator\modules\mod_k2_stats\tmpl\default.php on line 64
Notice: Undefined variable: mostCommentedItems in C:\wamp\www\evolucao\administrator\modules\mod_k2_stats\tmpl\default.php on line 92
Warning: Invalid argument supplied for foreach() in C:\wamp\www\evolucao\administrator\modules\mod_k2_stats\tmpl\default.php on line 92
Notice: Undefined variable: latestComments in C:\wamp\www\evolucao\administrator\modules\mod_k2_stats\tmpl\default.php on line 119
Warning: Invalid argument supplied for foreach() in C:\wamp\www\evolucao\administrator\modules\mod_k2_stats\tmpl\default.php on line 119
Items
Notice: Undefined variable: statistics in C:\wamp\www\evolucao\administrator\modules\mod_k2_stats\tmpl\default.php on line 146
Notice: Trying to get property of non-object in C:\wamp\www\evolucao\administrator\modules\mod_k2_stats\tmpl\default.php on line 146
(
Notice: Undefined variable: statistics in C:\wamp\www\evolucao\administrator\modules\mod_k2_stats\tmpl\default.php on line 146
Notice: Trying to get property of non-object in C:\wamp\www\evolucao\administrator\modules\mod_k2_stats\tmpl\default.php on line 146
Notice: Undefined variable: statistics in C:\wamp\www\evolucao\administrator\modules\mod_k2_stats\tmpl\default.php on line 146
Notice: Trying to get property of non-object in C:\wamp\www\evolucao\administrator\modules\mod_k2_stats\tmpl\default.php on line 146
featured - trashed)
Categories
Notice: Undefined variable: statistics in C:\wamp\www\evolucao\administrator\modules\mod_k2_stats\tmpl\default.php on line 150
Notice: Trying to get property of non-object in C:\wamp\www\evolucao\administrator\modules\mod_k2_stats\tmpl\default.php on line 150
(
Notice: Undefined variable: statistics in C:\wamp\www\evolucao\administrator\modules\mod_k2_stats\tmpl\default.php on line 150
Notice: Trying to get property of non-object in C:\wamp\www\evolucao\administrator\modules\mod_k2_stats\tmpl\default.php on line 150
trashed)
Tags
Notice: Undefined variable: statistics in C:\wamp\www\evolucao\administrator\modules\mod_k2_stats\tmpl\default.php on line 154
Notice: Trying to get property of non-object in C:\wamp\www\evolucao\administrator\modules\mod_k2_stats\tmpl\default.php on line 154
Comments
Notice: Undefined variable: statistics in C:\wamp\www\evolucao\administrator\modules\mod_k2_stats\tmpl\default.php on line 158
Notice: Trying to get property of non-object in C:\wamp\www\evolucao\administrator\modules\mod_k2_stats\tmpl\default.php on line 158
Users
Notice: Undefined variable: statistics in C:\wamp\www\evolucao\administrator\modules\mod_k2_stats\tmpl\default.php on line 162
Notice: Trying to get property of non-object in C:\wamp\www\evolucao\administrator\modules\mod_k2_stats\tmpl\default.php on line 162
User groups
Notice: Undefined variable: statistics in C:\wamp\www\evolucao\administrator\modules\mod_k2_stats\tmpl\default.php on line 166
Notice: Trying to get property of non-object in C:\wamp\www\evolucao\administrator\modules\mod_k2_stats\tmpl\default.php on line 166
How can you help me in the concert of these incompatibilities?
Embrace.
Please Log in or Create an account to join the conversation.
- digitaleit
- Offline
- New Member
- Posts: 1
After updating to 2.5.3 on joomla 1.7.3
Anyway K2 works correctly but this error on the backend is annoying!
Ste
Please Log in or Create an account to join the conversation.
- andrea
- Offline
- New Member
- Posts: 4
Do you have same idea about this error?
We are worried...
Bye
Please Log in or Create an account to join the conversation.
- Dragan Todorovic
- Offline
- New Member
- Posts: 14
Please Log in or Create an account to join the conversation.
- Joseph
- Offline
- New Member
- Posts: 18
That solves my problem, and don't see any more error display there.
Try yours, good luck!
Please Log in or Create an account to join the conversation.