Warning: Invalid argument supplied for foreach

StatusIDPriorityType
Closed24741HighAnivia Theme WP
Profile Reply
paroladimamma Client

I have a problem with the footer of Anivia theme.
Appear this phrase: Warning: Invalid argument supplied for foreach() in …  on line 18

Replies

User Description Posted On
Shindiri Support team Administrator

Hi,

Here is the fix for your issue, try to find and change footer.php file:

in line 18 in this code:

foreach ( $anivia_data['footer_counts']['enabled'] as $n => $t ) :

above it add the following:

if(isset($anivia_data['footer_counts']['enabled'])){

and in line 68, make it look like this:

<?php endforeach; }?>

Best regards,
Shindiri Studio | http://www.shindiristudio.com/

× This ticket is closed.