Issue information
-
#035791
-
Cannot Reproduce
-
3.3.0 Beta 1
-
-
-
0 - None Assigned
Issue Confirmations
-
Yes (0)No (0)
Warning: Invalid argument supplied for foreach()
Posted by simplyme5280 on 09 February 2012 - 06:37 AM
When i click "Likes" tab on a member´s profile i get
Quote
Warning: Invalid argument supplied for foreach() in /home/itechfac/domains/testdrive02/forum/cache/skin_cache/cacheid_1/skin_profile.php on line 1825
Warning: Cannot modify header information - headers already sent by (output started at /home/itechfac/domains/testdrive02/forum/cache/skin_cache/cacheid_1/skin_profile.php:1825) in /home/itechfac/domains/testdrive02/forum/ips_kernel/classAjax.php on line 322
Warning: Cannot modify header information - headers already sent by (output started at /home/itechfac/domains/testdrive02/forum/cache/skin_cache/cacheid_1/skin_profile.php:1825) in /home/itechfac/domains/testdrive02/forum/ips_kernel/classAjax.php on line 325
Warning: Cannot modify header information - headers already sent by (output started at /home/itechfac/domains/testdrive02/forum/cache/skin_cache/cacheid_1/skin_profile.php:1825) in /home/itechfac/domains/testdrive02/forum/ips_kernel/classAjax.php on line 326
Warning: Cannot modify header information - headers already sent by (output started at /home/itechfac/domains/testdrive02/forum/cache/skin_cache/cacheid_1/skin_profile.php:1825) in /home/itechfac/domains/testdrive02/forum/ips_kernel/classAjax.php on line 327
Array
Warning: Cannot modify header information - headers already sent by (output started at /home/itechfac/domains/testdrive02/forum/cache/skin_cache/cacheid_1/skin_profile.php:1825) in /home/itechfac/domains/testdrive02/forum/ips_kernel/classAjax.php on line 322
Warning: Cannot modify header information - headers already sent by (output started at /home/itechfac/domains/testdrive02/forum/cache/skin_cache/cacheid_1/skin_profile.php:1825) in /home/itechfac/domains/testdrive02/forum/ips_kernel/classAjax.php on line 325
Warning: Cannot modify header information - headers already sent by (output started at /home/itechfac/domains/testdrive02/forum/cache/skin_cache/cacheid_1/skin_profile.php:1825) in /home/itechfac/domains/testdrive02/forum/ips_kernel/classAjax.php on line 326
Warning: Cannot modify header information - headers already sent by (output started at /home/itechfac/domains/testdrive02/forum/cache/skin_cache/cacheid_1/skin_profile.php:1825) in /home/itechfac/domains/testdrive02/forum/ips_kernel/classAjax.php on line 327
Array
What does line 1825 of that file say?
Line 1825 is
foreach( $rows as $r )
Hmm... skin_profile doesn't have that code. It may be a hook - what are the lines around it?
Well i upgraded a copy of our active site and there are many hooks installed. But i have no idea which one could be responsible for this one issue on the profile.
In the parsed skin file there is no "foreach( $rows".
I recommend disabling your hooks and addons to verify if you still get the warning. If not, it is one of the hooks/addons causing it.
I recommend disabling your hooks and addons to verify if you still get the warning. If not, it is one of the hooks/addons causing it.
I disabled ALL hook now and ran the "Recache All" command and the issue is still shown like before.
While running "Recache All" i got this error on the acp
While running "Recache All" i got this error on the acp
Quote
Fatal error: Call to undefined function mysqli_fetch_array() in /home/xxxxxxxxx/xxxxxxxxx/testdrive/forum/ips_kernel/classDbMysql.php on line 393
Are you using a custom skin? Be sure to test on the default skin.
As for the new error, that is a separate report (marked fixed today) that you actually reported.
http://community.inv...li-fetch-array/
As for the new error, that is a separate report (marked fixed today) that you actually reported.
http://community.inv...li-fetch-array/
Well i checked this on all skins before i reported it here. It´s on the default skin too.
Can the needed procedure to upgrade that i reported here
http://community.inv...li-fetch-array/
be the reason of the issue maybe
Can the needed procedure to upgrade that i reported here
http://community.inv...li-fetch-array/
be the reason of the issue maybe
I ran a fresh upgrade 3.2.3 ==> 3_3_0_Alpha rebuild.
I disabled all 3rdParty applications and all hooks. Then i deleted the skin_profile.php in the /cache/skin_cache/cacheid_1 folder and ran the skin cache for all skins, Rebuild Global Caches Cache and Recache All.
Am getting still the same error.
The lines 1818 - 1836 are
I disabled all 3rdParty applications and all hooks. Then i deleted the skin_profile.php in the /cache/skin_cache/cacheid_1 folder and ran the skin cache for all skins, Rebuild Global Caches Cache and Recache All.
Am getting still the same error.
The lines 1818 - 1836 are
}
function __f__57869ce03cba9411d6d404a30dace347($title, $rows, $pages)
{
$_ips___x_retval = '';
$__iteratorCount = 0;
foreach( $rows as $r )
{
$__iteratorCount++;
$_ips___x_retval .= "
" . (($this->settings['reputation_point_types'] == 'like') ? ("<tr>
<td class='short'>
<a href='" . $this->registry->getClass('output')->formatUrl( $this->registry->getClass('output')->buildUrl( "showuser={$r['member_id']}", "public",'' ), "{$r['members_seo_name']}", "showuser" ) . "' class='ipsUserPhotoLink'>
{$r['member_photo']}
</a>
</td>
<td>skin_profile has nothing like that that I can see.
All I can recommend is if you still experience the issue after final is released that you submit a support request.
All I can recommend is if you still experience the issue after final is released that you submit a support request.
Many thanks Mark. Will wait then if it also happenes on the following Betas and Final Release. The "Liked Posts" funtion works fine without any problems on our 3.2.3 live board.
I guess i found the reason of this issue - responsible was the [P32] Reputation Profile Tab v1.2.0 hook. Uninstalling it gave another error message. After i re-uploaded and re-installed the hook the "Liked Posts" funtion tab is shown like on version 3.2.3 and works fine 
Many Thanks for your replies!
Many Thanks for your replies!
Yeah, I get this too. There something going on with that hook. It's like it's not "releasing" the skins to use the new reputation system. On every upgrade where reputation.php and reputation.conf.php are overwritten with the IPB files, you have to uninstall the [P32] Reputation Profile Tab v1.2.0 hook and then reinstall it fix this error. Even if I uninstall the hook and re-upload the IPB default files, the new system still won't work (even with the default skin).
1 user(s) are reading this issue
0 members, 1 guests, 0 anonymous users













