TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 196,004
  • Total Topics: 21,330
  • Online today: 219
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 131
  • Total: 131

Errors after installing TP ---> AFTER a full install

Started by omapie, March 31, 2008, 12:38:19 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

omapie

Hi there!
I was getting errors on my site (after editing the files for the mods, etc.). It was suggested that I do the "large upgrade." So I did that. It didn't seem to eliminate the errors -- at least not completely. So I went ahead & did a full install again (on top of the existing files). That eliminated the errors but after I reinstalled a fresh copy of TP, I got the errors listed below.

Not sure what course of action to take now! I've done several searches and the answer may be here but I am sure not finding it.

Hoping you'll be able to help! Many TIA!  ;)

Lori




Link to my site: http://jmhs-classmates.net
SMF version: SMF 1.1.4
TP version: TinyPortal v0.983
Theme name and version: SMF Default - Core
Mods installed: The following mods are installed but not applied.

1.    TinyPortal 0.983 (Installed)
2.    Display Age and Location next to posts 1.0
3.    Contact Page 1.1
4.    Easy Edit Meta Data 1.0
5.    Enhanced Forum Statistics 1.0
6.    SMF Gallery Lite 1.8.1.1
7.    SMF Links 1.6.5
8.    Location on Member List 1.0
9.    SMF Sitemap 1.2.1
10.    Welcome Topic Mod 1.0
11.    SMF Staff Page 1.5.1
12.    Favicon 1.0
13.    AvatarSelect 1.1.2
14.    GoogleTagged 1.1
15.    Users Online Today Mod 1.4.0
16.    Post New Poll Link 1.1
17.    Separated Birthdays from Events 1.0
18.    Gender On Registration    1.0
19.    Default Avatar
20.    Spam Me Not Mod





Related Error messages: The following error messages are occurring (repeating)

.../forum/index.php?action=forum
Apply Filter: Only show the errors with the same message
8: Undefined index: user_id
File: .../forum/Themes/default/BoardIndex.template.php (eval?)
Line: 24
   

.../forum/index.php?action=forum
Apply Filter: Only show the errors with the same message
8: Undefined index: user_id
File: .../forum/Themes/default/BoardIndex.template.php (eval?)
Line: 25


.../forum/index.php?board=1.0
Apply Filter: Only show the errors with the same message
8: Undefined index: user_id
File: .../forum/Themes/default/MessageIndex.template.php (eval?)
Line: 25


.../forum/index.php?board=1.0
Apply Filter: Only show the errors with the same message
8: Undefined index: user_id
File: .../forum/Themes/default/MessageIndex.template.php (eval?)
Line: 24


.../forum/index.php
Apply Filter: Only show the errors with the same message
8: Undefined index: user_id
File: .../forum/Themes/default/TPortal.template.php (eval?)
Line: 25
   

.../forum/index.php
Apply Filter: Only show the errors with the same message
8: Undefined index: user_id
File: .../forum/Themes/default/TPortal.template.php (eval?)
Line: 24


.../forum/index.php?board=2.0
Apply Filter: Only show the errors with the same message
8: Undefined index: user_id
File: .../forum/Themes/default/Login.template.php (eval?)
Line: 24
   

.../forum/index.php?board=2.0
Apply Filter: Only show the errors with the same message
8: Undefined index: user_id
File: .../forum/Themes/default/Login.template.php (eval?)
Line: 25


.../forum/index.php?action=login2
Apply Filter: Only show the errors with the same message
8: Undefined index: user_id
File: .../forum/Themes/default/Login.template.php (eval?)
Line: 24
   

.../forum/index.php?action=login2
Apply Filter: Only show the errors with the same message
8: Undefined index: user_id
File: .../forum/Themes/default/Login.template.php (eval?)
Line: 25


.../forum/index.php?action=register2
Apply Filter: Only show the errors with the same message
8: Undefined index: user_id
File: .../forum/Themes/default/Errors.template.php (eval?)
Line: 25
   

.../forum/index.php?action=register2
Apply Filter: Only show the errors with the same message
8: Undefined index: user_id
File: .../forum/Themes/default/Errors.template.php (eval?)
Line: 24


.../forum/index.php?action=register
Apply Filter: Only show the errors with the same message
8: Undefined index: user_id
File: .../forum/Themes/default/Register.template.php (eval?)
Line: 25
   

.../forum/index.php?action=register
Apply Filter: Only show the errors with the same message
8: Undefined index: user_id
File: .../forum/Themes/default/Register.template.php (eval?)
Line: 24


.../forum/index.php?board=1.0
Apply Filter: Only show the errors with the same message
8: Undefined index: user_id
File: .../forum/Themes/default/MessageIndex.template.php (eval?)
Line: 25
   

.../forum/index.php?board=1.0
Apply Filter: Only show the errors with the same message
8: Undefined index: user_id
File: .../forum/Themes/default/MessageIndex.template.php (eval?)
Line: 24

IchBin

Omapie, thank you for the VERY informative post! I can't tell you how much easier this helps me help you. :up:

Judging by the errors I'm thinking the error is in your index.template.php file. Could you please attach your file to your next post? Thanks.

omapie

Hey IchBin!
Well... we try, we try! LOL Makes it seem like an awfully long post but it seemed pertinent, like it might streamline your ability to assist and ... was per your format anyway! LOL
;)

Attaching the /default/index.template.php file which I think/hope is the one you mean (since all the errors appear to originate from that directory...)

Many, MANY thanks for the assist. This has really been... vexing me greatly! LOL   :2funny:

Lori


IchBin

Well, that wasn't it. Perhaps you have something in a block? At this point I would search all of your custom blocks. If you find the text user_id post the code for the block here. You also may want to check any articles if you have them as well.

G6Cad

I think this mod is the cause of the errors, i have seen that before on a site, and that time it was this mod that caused it

Users Online Today Mod 1.4.0

omapie

Well dang huh! ;)

So then, were you searching for some piece of code with user_id in the index.template.php file? Logic being that the "user_id"  may be what's triggering all these errors?

And index.template.php is a logical place to begin the search I'm guessing?

Thank you -- it really helps to understand what ya'll are doing & why! Makes troubleshooting problems on this end a lot easier!

Again, thank you for your efforts! I'll check out those blocks and articles now! Hopefully I'll find something soon that makes a difference! LOL

Thank you, G6! I'll check that out too!  :D

;)

Lori

IchBin

Yes, I was searching for user_id. Anytime you see the error Undefined index: it means that there is a variable string that is not set. More often than not, found in an array. For instance, you might see something like this. $context['user_id'] If that does not have a value, or its not defined, then you get the error. If its a numeric value instead of a string value, you get undefined offset instead. But a good thought about that mod G6, as that is likely the culprit. :)

omapie

Cool. That makes sense.

Amazingly, it was in the second block I looked at - Latest Members

I had it in the left column with the following code:
global $db_prefix, $memberContext;

$count = 3;
$users = array();

$request = db_query("
SELECT ID_MEMBER FROM {$db_prefix}members WHERE is_activated = 1 ORDER BY ID_MEMBER DESC LIMIT ".$count, __FILE__, __LINE__);

while ($row = mysql_fetch_assoc($request)) {
$users[] = intval($row['ID_MEMBER']);
}

loadMemberData($users);

$i = 0;
foreach($users as $user_id) {
if ($i > 0) echo '<hr>';
$i++;

loadMemberContext($user_id);

if (!empty($memberContext[$user_id]['avatar']['image']))
echo '<div align="center">'.$memberContext[$user_id]['avatar']['image'].'<BR>'.$memberContext[$user_id]['link'].'
<br />',$memberContext['user_id']['registered'],'
<br />',$memberContext['user_id']['location'],'</div>';


else
echo '<div align="center"><img src="http://jmhs-classmates.net/jmhs8081/forum/tp-images/Image/confused.jpg
" align="center"><br>No Avatar Yet!
</img><BR><BR>'.$memberContext[$user_id]['link'].'</div>';
}


As soon as I eliminated it, cleared out the error log and started clicking away on different links, no more errors! YAY!

So I tried putting in the code I'm using on my other forum that it's the center block (no errors) to see what would happen:
global $db_prefix, $memberContext;

// How many members we want?
$count = 7;
// Just special groups get to be part of the block.
// To select Admins and moderators would be like $groups = array(1, 2);
$groups = array();
// Avatar images.
$avatarImage = 'http://dfwcfids.net/forum/images/noava60.jpg';

$group_clause = empty($groups) ? '1' : 'ID_GROUP IN(' . implode(',', $groups) . ')';

// Lets get the ID's of the members we want.
$request = db_query("
SELECT ID_MEMBER FROM {$db_prefix}members WHERE is_activated = 1 ORDER BY ID_MEMBER DESC LIMIT ".$count, __FILE__, __LINE__);
$members = array();
while ($row = mysql_fetch_assoc($request))
$members[] = $row['ID_MEMBER'];
mysql_free_result($request);

// Load the data for these members.
loadMemberData($members);

// Now get the context.
foreach ($members as $member)
loadMemberContext($member);

echo '
<table ALIGN="center">
<tr>';
foreach ($memberContext as $member)
{
echo '
<td><center>
', empty($member['avatar']['image']) ? '<img src="' . $avatarImage . '" />' : str_replace('class="avatar"', 'width="65" height="65" class="avatar"', $member['avatar']['image']), '<br />
', $member['link'], '
</center></td>';
}
echo '
</tr>
</table>';


Been clicking away like crazy. No errors yet... WhooHoo!

We'll see! Thank you both for your help!

Hugs! :)

Lori

G6Cad

Sometimes it really helps to remember things you have tried to solved before :)

Im glad it worked out for you  :up:  Good work  :)

omapie

You're so right, G6. And, talk about ironic huh that I'd get this error now.  :o

Maybe I should be posting up a new question instead of adding on to this one but the details would be quite similar so I hope this is good... If it would be clearer if I re-post this "properly" to a new post, please just tell me and I'll do so...

So I'm running through these mods getting them installed & testing them to see if they're gonna give error messages. I've taken off one or two and updated one of them.




They're mostly doing well thus far but sure enough, the GenderOnRegistration.tar.gz gave the following error... which sounds similar to the one I had before ("Undefined index:" -- so that's why I'm posting this here...):

Related Error message (only one instance of it thus far):
.../forum/index.php?action=packages;sa=install;package=GenderOnRegistration.tar.gz
Apply Filter: Only show the errors with the same message
8: Undefined index: package_readme
File: .../forum/Sources/Packages.php
Line: 294


So I open up that file and sure enough on line 294 are those words. Of course, I have no clue what to DO about that...

I manually checked the edit on the default theme which was made in the file Register.template.php.

It appears to be accurate so I don't understand why I'm getting this error message or how to eliminate it.

I'm attaching those two files in case that helps; not sure what else to do honestly.

Many thanks! ;)

Lori





Aside from the new error code, the difference is in the mods which are as follows now:
Mods installed: The following mods are either installed or NOT applied as noted.

1.  TinyPortal  0.983                               [ Uninstall ]
2. SMF Links 1.6.7                                     [ Uninstall ]
3. Display Age and Location next to posts 1.0    [ Uninstall ]
4. Contact Page 1.1                                    [ Uninstall ]
5. Easy Edit Meta Data 1.0                          [ Uninstall ]
6. Enhanced Forum Statistics 1.0                [ Uninstall ]
7. SMF Gallery Lite 1.8.1.1                            [ Uninstall ]
8. Moderator Activity Report for SMF1.1.4 1.2    [ Uninstall ]
9. Location on Member List 1.0                         [ Uninstall ]
10. SMF Sitemap 1.2.1                                   [ Apply Mod ]
11. Welcome Topic Mod 1.0                         [ Uninstall ]
12. SMF Staff Page 1.5.1                           [ Apply Mod ]
13. AvatarSelect 1.1.2                                    [ Uninstall ]
14. GoogleTagged 1.1                                   [ Uninstall ]
15. Users Online Today Mod 1.4.0                [ Uninstall ]
16. Post New Poll Link 1.1                             [ Uninstall ]
17. Separated Birthdays from Events 1.0      [ Apply Mod ]
18. Gender On Registration 1.0                          [ Uninstall ]
19. Default Avatar 1.0                                     [ Apply Mod ]
20. Spam Me Not Mod 1.02                         [ Apply Mod ]



This website is proudly hosted on Crocweb Cloud Website Hosting.