Member ForShadow October 18, 2005, 05:31:16 PM
IP address xx.xxx.xxx.xx session 32ebe4b90b82dc38b48afcce27c7e2ee
URL http://www.orbisfornax.com/forum/index.php
message
8: Undefined index: memberCount
File: /home2/xxxxxxxx/public_html/forum/Themes/default/TPortalBlocks.template.php (eval?)
Line: 332
i have 101 pages of this error. any ideas?
TP 0.7.5
SMF RC1
only mods installed besides tp is vWarn and KarmaDescription.
the errors go for about 10 pages of one member, then it starts with the error for another member.
That liiks like a session id, or session cookie, I think bloc revised some code to fix that problem.
It might help if you follow the posting guide lines too...
http://www.tinyportal.net/smf/index.php?topic=581.0
The memberCount value is the number of members( :) ) , that in later versions of SMF was changed to totalMembers.
I have added code to check for both..but I will check again.
sorry for not following the guidelines i'll change it.
i still don't have a solution.. is there anywhere i should change code to fix it? or is an issue with the new version of tp and i should wait for a fix?
thanks
Not a problem Moocat, it's just that it helps if you tell us what versions of stuff you have. :) I'm assuming Bloc will get back to you on this since he's checking his code.
Moocat, do you ahve this code in your TPortalBlocks.template?
if(isset($context['TPortal']['userbox']['stats']))
// add stats in here
echo '
<hr /><img src="'.$settings['images_url'].'/icons/members.gif" style="margin: 0;" align="bottom" alt="" />
<a href="'.$scripturl.'?action=mlist"><b>'.$txt[19].'</b></a>
<br />'.$bullet.$txt[488].': ' , isset($modSettings['totalMembers']) ? $modSettings['totalMembers'] : $modSettings['memberCount'] , '
<br />'.$bullet.$txt['tp-latest']. ': <a href="', $scripturl, '?action=profile;u=', $modSettings['latestMember'], '"><b>', $modSettings['latestRealName'], '</b></a>';
the last line you gave me there looked like this in my file
<br />'.$bullet.$txt[656]. ': <a href="', $scripturl, '?action=profile;u=', $modSettings['latestMember'], '"><b>', $modSettings['latestRealName'], '</b></a>';
the only thing that is different is the txt[656] thing so i changed it to ['tp-latest'] as in your code
immediately after doing that, this error began to show up! rofl
Matt Today at 03:56:47 PM
IP address xxx.xxx.xxx.xx session 2898febb4149fc90be43c878033cb10a
URL http://www.orbisfornax.com/forum/index.php?action=admin
message
8: Undefined index: tp-latest
File: /home2/xxxxxxxx/public_html/forum/Themes/default/TPortalBlocks.template.php (eval?)
Line: 567
the url part of the error varies in these 3 forms (so far) "index.php?action=forum" and "index.php"
it appears on every page move or refresh
You need to add this to TPortal.english.php:
$txt['tp-latest'] = 'Latest';
awesome , thanks. i'm not seeing any errors for each page change or refresh. i'll check again tomorow ;)
ty
unfortunately...
ForShadow Today at 02:44:59 PM
IP address xx.xxx.xxx.xx session 8f476f41a4a57d638b40d851a83b1f31
URL http://www.orbisfornax.com/forum/index.php?topic=67.msg4285;topicseen
message
8: Undefined index: memberCount
File: /home2/xxxxxxxx/public_html/forum/Themes/default/TPortalBlocks.template.php (eval?)
Line: 332
got this just today after making the modifications you suggested