TinyPortal

Development => Support => Topic started by: Moocat on October 27, 2005, 07:52:19 PM

Title: 0.7.5 bug: membercount
Post by: Moocat on October 27, 2005, 07:52:19 PM
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.
Title: Re: 0.7.5 bug
Post by: Moocat on October 27, 2005, 07:55:53 PM
the errors go for about 10 pages of one member, then it starts with the error for another member.
Title: Re: 0.7.5 bug
Post by: borgBOB on October 27, 2005, 08:42:21 PM
That liiks like a session id, or session cookie, I think bloc revised some code to fix that problem.
Title: Re: 0.7.5 bug
Post by: IchBin on October 27, 2005, 10:54:33 PM
It might help if you follow the posting guide lines too...

http://www.tinyportal.net/smf/index.php?topic=581.0
Title: Re: 0.7.5 bug
Post by: bloc on October 28, 2005, 01:53:29 AM
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.
Title: Re: 0.7.5 bug
Post by: Moocat on October 28, 2005, 05:40:43 AM
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
Title: Re: 0.7.5 bug: membercount
Post by: IchBin on October 28, 2005, 03:15:17 PM
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.
Title: Re: 0.7.5 bug: membercount
Post by: bloc on October 28, 2005, 07:27:08 PM
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>';
Title: Re: 0.7.5 bug: membercount
Post by: Moocat on October 28, 2005, 09:56:16 PM
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
Title: Re: 0.7.5 bug: membercount
Post by: bloc on October 29, 2005, 12:29:12 AM
You need to add this to TPortal.english.php:

$txt['tp-latest'] = 'Latest';
Title: Re: 0.7.5 bug: membercount
Post by: Moocat on October 29, 2005, 06:40:48 AM
awesome , thanks. i'm not seeing any errors for each page change or refresh. i'll check again tomorow ;)
ty
Title: Re: 0.7.5 bug: membercount
Post by: Moocat on October 29, 2005, 09:05:40 PM
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