Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: wynnyelle on January 23, 2012, 08:15:52 PM

Title: A profile error - Undefined
Post by: wynnyelle on January 23, 2012, 08:15:52 PM
I am trying to hold my forum together and get it in shape to upgrade at the same time.

I am repeatedly getting this error:

Code: [Select]
Apply Filter: Only show the error messages of this member ◦°°◦αℓι¢є◦°°◦
Apply Filter: Only show the error messages of this IP address 76.104.xx 
  Reverse chronological order of list Today at 07:57:55 PM
Apply Filter: Only show the error messages of this session 1c3e357dbc6cf499fcccbfdc85bea0a5
Apply Filter: Only show the errors of this type Type of error: Undefined
Apply Filter: Only show the error messages of this URL
http://warriorcatsrpg.com/index.php?action=profile
Apply Filter: Only show the errors with the same message
8: Undefined index: 0
Apply Filter: Only show the errors from this file
File: /home/warrior/public_html/Sources/Profile-View.php
Line: 427


I've attached Profile-View.php to this message.
Title: Re: A profile error - Undefined
Post by: wynnyelle on January 24, 2012, 03:47:52 PM
Bump
Title: Re: A profile error - Undefined
Post by: Storman™ on January 25, 2012, 05:18:22 AM
Suspect this is going to be the least of your worries.

Currently you appear to be on RC3 which is quite old, yet your site appears fairly heavily modded with ? a bespoke theme.

As this appears to be be a fairly active and comprehensive site I would seriously think about putting a copy onto a test server before you decide to upgrade. Something like VertrigoServ (http://vertrigo.sourceforge.net/) is fairly easy to use and you can run it as a server on your own PC. Then do some test upgrades on there and see how it goes.

You may well come across other issues that put the one in this topic in the shade so I wouldn't worry about that too much especially as your upgrade will have new files anyway.

As you are still on RC3 I suspect you've been putting the upgrade off so seriously consider trying the upgrade in a test environment first.
Title: Re: A profile error - Undefined
Post by: Arantor on January 25, 2012, 08:11:20 AM
Storman: unfortunately the sheer number of changes makes even doing that difficult (as discussed in plenty of other places)

As a mitigation technique, replace this code in that file:
Code: (find) [Select]
if (!empty($context['user_rp_topics']))
{
$result = $smcFunc['db_query']('', '
SELECT id_msg, {db_prefix}messages.id_topic, id_member, poster_name, body, poster_time
FROM {db_prefix}messages INNER JOIN {db_prefix}topics
ON {db_prefix}messages.id_topic = {db_prefix}topics.id_topic
WHERE {db_prefix}topics.id_topic = {int:initial_display_id}
ORDER BY id_msg DESC
LIMIT 20',
array(
'initial_display_id' => $context['user_rp_topics'][0]['id_topic'],
)
);
while ($row = $smcFunc['db_fetch_assoc']($result))
{
if (!isset($memberContext[$row['id_member']]))
{
loadMemberData(array($row['id_member']), false, 'normal');
loadMemberContext($row['id_member']);
}
$context['user_rp_posts'][] = array(
'id' => $row['id_msg'],
'topic_id' => $row['id_topic'],
'poster' => $row['poster_name'],
'member_href' => $memberContext[$row['id_member']]['href'],
'avatar' => !empty($memberContext[$row['id_member']]['avatar']['href']) ? $memberContext[$row['id_member']]['avatar']['href'] : $settings['default_theme_url'] . '/images/default_ava.png',
'body' => parse_bbc($row['body']),
'time' => timeformat($row['poster_time']),
'can_modify' => $row['id_member'] === $context['user']['id'] || $context['user']['can_mod'] ? true : false
);
}
$smcFunc['db_free_result']($result);

$context['user_rp_posts'] = array_reverse($context['user_rp_posts']);
$context['initial_display_thread'] = $context['user_rp_topics'][0]['id_topic'];
}

Code: (replace) [Select]
if (!empty($context['user_rp_topics']))
{
$result = $smcFunc['db_query']('', '
SELECT id_msg, {db_prefix}messages.id_topic, id_member, poster_name, body, poster_time
FROM {db_prefix}messages INNER JOIN {db_prefix}topics
ON {db_prefix}messages.id_topic = {db_prefix}topics.id_topic
WHERE {db_prefix}topics.id_topic = {int:initial_display_id}
ORDER BY id_msg DESC
LIMIT 20',
array(
'initial_display_id' => $context['user_rp_topics'][0]['id_topic'],
)
);
$users_ids = array();
while ($row = $smcFunc['db_fetch_assoc']($result))
{
if (!isset($memberContext[$row['id_member']]))
$user_ids[] = $row['id_member'];

$context['user_rp_posts'][] = array(
'id' => $row['id_msg'],
'id_member' => $row['id_member'],
'topic_id' => $row['id_topic'],
'poster' => $row['poster_name'],
'body' => parse_bbc($row['body']),
'time' => timeformat($row['poster_time']),
'can_modify' => $row['id_member'] === $context['user']['id'] || $context['user']['can_mod'] ? true : false
);
}
$smcFunc['db_free_result']($result);

$context['user_rp_posts'] = array_reverse($context['user_rp_posts']);
$context['initial_display_thread'] = $context['user_rp_topics'][0]['id_topic'];

if (!empty($user_ids))
{
$user_ids = loadMemberData($user_ids, false, 'normal');
if (!empty($user_ids))
foreach ($user_ids as $id)
loadMemberContext($id);
}

foreach ($context['user_rp_posts'] as $k => $v)
{
$context['user_rp_posts'][$k]['member_href'] = empty($memberContext[$v['id_member']]['href']) ? '' : $memberContext[$v['id_member']]['href'];
$context['user_rp_posts'][$k]['avatar'] = !empty($memberContext[$v['id_member']]['avatar']['href']) ? $memberContext[$v['id_member']]['avatar']['href'] : $settings['default_theme_url'] . '/images/default_ava.png';
}
}

The error should be squelched by the fact that we're actually testing for the member's link before using it (which is what the error was) however I have the uncomfortable feeling that the template is going to assume it's actually a link even when a link may not be possible, so it may just be buggy - but it won't have a performance impact of any magnitude, certainly far less than it would otherwise.

The rest of the changes simply move the DB queries around a bit - if you're requesting 20 posts and have even 3 different authors (including the person whose profile it is), that's still going to generate 2 queries, whereas this should only generate 1 query regardless of how many different posters are being used.


I don't know who wrote this code originally but while it works, it's neither elegant nor efficient. The above is merely firefighting, as opposed to really figuring out how best to achieve what you want. You know it's problematic when I'm having trouble trying to figure out what the code's actually supposed to do (since I suspect there are side effects the author is not aware of)
Title: Re: A profile error - Undefined
Post by: wynnyelle on January 25, 2012, 03:23:25 PM
That is probably my profile post function that Scotty wrote for me--not sure. It enables people to post on their profiles and roleplay there, though its function is limited and not fully what I wanted, Scotty was able to do quite a bit of it and for a very reasonable price. He has helped me a lot.

I switched in the code.  Checking around for errors now.
Title: Re: A profile error - Undefined
Post by: wynnyelle on January 25, 2012, 03:38:13 PM
Oh no--it's taken the links out of the names! :( I need to put those back, can you help?

I don't want to just put the old code back, because now at least i'm not getting the error anymore. The avatars still link to the person's profiles, but the names aren't now. People naturally click on names elsewhere to go to that profile so that's why it's important to me.

Thank you again.

Some more details: The name links reappear after you make a profile post to the profile. But when the profile page first loads when you go to it, the names are just plain text.

The error has not reappeared again. I am watching the log.
Title: Re: A profile error - Undefined
Post by: Arantor on January 25, 2012, 04:36:18 PM
The only reason it would take the links out of the names is if it couldn't find the name properly to start with... and this is what was causing your errors.

Like I said, I have little idea how this code is actually supposed to work because it's badly written and I didn't want to touch it any more than absolutely necessary because it's that badly written that I'd screw it up if I tried to rewrite it any more.
Title: Re: A profile error - Undefined
Post by: wynnyelle on January 25, 2012, 05:39:17 PM
All right. I'll just deal with it for now since it's a minor quibble and I plan to have the functions expanded anyway.

My latest errors: Bad. Here they are for anyone who wants to take a gander:

Code: [Select]
Apply Filter: Only show the error messages of this member ฿я☺ḱ℮ᾔ uǝʞoɹq
Apply Filter: Only show the error messages of this IP address 75.133.x 
  Reverse chronological order of list Today at 05:31:17 PM
Apply Filter: Only show the error messages of this session d0b5f6a44495b146acd9f3f7f350228d
Apply Filter: Only show the errors of this type Type of error: Undefined
Apply Filter: Only show the error messages of this URL
http://warriorcatsrpg.com/index.php?action=profile;u=28060;area=lists;sa=buddies
Apply Filter: Only show the errors with the same message
8: Undefined index: 32076
Apply Filter: Only show the errors from this file
File: /home/warrior/public_html/Sources/Buddies.php
Line: 58
Apply Filter: Only show the error messages of this member ฿я☺ḱ℮ᾔ uǝʞoɹq
Apply Filter: Only show the error messages of this IP address 75.133.x
  Reverse chronological order of list Today at 05:31:17 PM
Apply Filter: Only show the error messages of this session d0b5f6a44495b146acd9f3f7f350228d
Apply Filter: Only show the errors of this type Type of error: General
Apply Filter: Only show the error messages of this URL
http://warriorcatsrpg.com/index.php?action=profile;u=28060;area=lists;sa=buddies
Apply Filter: Only show the errors with the same message
512: loadMemberContext(): member id 32076 not previously loaded by loadMemberData()
Apply Filter: Only show the errors from this file
File: /home/warrior/public_html/Sources/Load.php
Line: 1323
Apply Filter: Only show the error messages of this member ฿я☺ḱ℮ᾔ uǝʞoɹq
Apply Filter: Only show the error messages of this IP address 75.133.x 
  Reverse chronological order of list Today at 05:31:08 PM
Apply Filter: Only show the error messages of this session d0b5f6a44495b146acd9f3f7f350228d
Apply Filter: Only show the errors of this type Type of error: Undefined
Apply Filter: Only show the error messages of this URL
http://warriorcatsrpg.com/index.php?action=profile;u=28060;area=lists;sa=buddies
Apply Filter: Only show the errors with the same message
8: Undefined index: 32076
Apply Filter: Only show the errors from this file
File: /home/warrior/public_html/Sources/Buddies.php
Line: 58
Apply Filter: Only show the error messages of this member ฿я☺ḱ℮ᾔ uǝʞoɹq
Apply Filter: Only show the error messages of this IP address 75.133.x
  Reverse chronological order of list Today at 05:31:08 PM
Apply Filter: Only show the error messages of this session d0b5f6a44495b146acd9f3f7f350228d
Apply Filter: Only show the errors of this type Type of error: General
Apply Filter: Only show the error messages of this URL
http://warriorcatsrpg.com/index.php?action=profile;u=28060;area=lists;sa=buddies
Apply Filter: Only show the errors with the same message
512: loadMemberContext(): member id 32076 not previously loaded by loadMemberData()
Apply Filter: Only show the errors from this file
File: /home/warrior/public_html/Sources/Load.php
Line: 1323
Apply Filter: Only show the error messages of this member ฿я☺ḱ℮ᾔ uǝʞoɹq
Apply Filter: Only show the error messages of this IP address 75.133.x
  Reverse chronological order of list Today at 05:31:04 PM
Apply Filter: Only show the error messages of this session d0b5f6a44495b146acd9f3f7f350228d
Apply Filter: Only show the errors of this type Type of error: Undefined
Apply Filter: Only show the error messages of this URL
http://warriorcatsrpg.com/index.php?action=profile;u=28060;area=lists;sa=buddies
Apply Filter: Only show the errors with the same message
8: Undefined index: 32076
Apply Filter: Only show the errors from this file
File: /home/warrior/public_html/Sources/Buddies.php
Line: 58
Apply Filter: Only show the error messages of this member ฿я☺ḱ℮ᾔ uǝʞoɹq
Apply Filter: Only show the error messages of this IP address 75.133.x 
  Reverse chronological order of list Today at 05:31:04 PM
Apply Filter: Only show the error messages of this session d0b5f6a44495b146acd9f3f7f350228d
Apply Filter: Only show the errors of this type Type of error: General
Apply Filter: Only show the error messages of this URL
http://warriorcatsrpg.com/index.php?action=profile;u=28060;area=lists;sa=buddies
Apply Filter: Only show the errors with the same message
512: loadMemberContext(): member id 32076 not previously loaded by loadMemberData()
Apply Filter: Only show the errors from this file
File: /home/warrior/public_html/Sources/Load.php
Line: 1323
Apply Filter: Only show the error messages of this member єcнσ//gєямαηу
Apply Filter: Only show the error messages of this IP address 76.198.x
  Reverse chronological order of list Today at 05:30:57 PM
Apply Filter: Only show the error messages of this session 015ffd68fb13c29a3e843178854b91f9
Apply Filter: Only show the errors of this type Type of error: Undefined
Apply Filter: Only show the error messages of this URL
http://warriorcatsrpg.com/index.php?action=pm
Apply Filter: Only show the errors with the same message
8: Undefined index: name
Apply Filter: Only show the errors from this file
File: /home/warrior/public_html/Themes/default/PersonalMessage.template.php
Line: 447
Apply Filter: Only show the error messages of this member єcнσ//gєямαηу
Apply Filter: Only show the error messages of this IP address 76.198.x
  Reverse chronological order of list Today at 05:30:57 PM
Apply Filter: Only show the error messages of this session 015ffd68fb13c29a3e843178854b91f9
Apply Filter: Only show the errors of this type Type of error: Undefined
Apply Filter: Only show the error messages of this URL
http://warriorcatsrpg.com/index.php?action=pm
Apply Filter: Only show the errors with the same message
8: Undefined index: id
Apply Filter: Only show the errors from this file
File: /home/warrior/public_html/Themes/default/PersonalMessage.template.php
Line: 447
Apply Filter: Only show the error messages of this member єcнσ//gєямαηу
Apply Filter: Only show the error messages of this IP address 76.198.x
  Reverse chronological order of list Today at 05:30:57 PM
Apply Filter: Only show the error messages of this session 015ffd68fb13c29a3e843178854b91f9
Apply Filter: Only show the errors of this type Type of error: Undefined
Apply Filter: Only show the error messages of this URL
http://warriorcatsrpg.com/index.php?action=pm
Apply Filter: Only show the errors with the same message
8: Undefined index: id
Apply Filter: Only show the errors from this file
File: /home/warrior/public_html/Themes/default/PersonalMessage.template.php
Line: 445
Apply Filter: Only show the error messages of this member єcнσ//gєямαηу
Apply Filter: Only show the error messages of this IP address 76.198.x 
  Reverse chronological order of list Today at 05:30:57 PM
Apply Filter: Only show the error messages of this session 015ffd68fb13c29a3e843178854b91f9
Apply Filter: Only show the errors of this type Type of error: Undefined
Apply Filter: Only show the error messages of this URL
http://warriorcatsrpg.com/index.php?action=pm
Apply Filter: Only show the errors with the same message
8: Undefined index: name
Apply Filter: Only show the errors from this file
File: /home/warrior/public_html/Themes/default/PersonalMessage.template.php
Line: 447
Apply Filter: Only show the error messages of this member єcнσ//gєямαηу
Apply Filter: Only show the error messages of this IP address 76.198.x 
  Reverse chronological order of list Today at 05:30:57 PM
Apply Filter: Only show the error messages of this session 015ffd68fb13c29a3e843178854b91f9
Apply Filter: Only show the errors of this type Type of error: Undefined
Apply Filter: Only show the error messages of this URL
http://warriorcatsrpg.com/index.php?action=pm
Apply Filter: Only show the errors with the same message
8: Undefined index: id
Apply Filter: Only show the errors from this file
File: /home/warrior/public_html/Themes/default/PersonalMessage.template.php
Line: 447
Apply Filter: Only show the error messages of this member єcнσ//gєямαηу
Apply Filter: Only show the error messages of this IP address 76.198.x
  Reverse chronological order of list Today at 05:30:57 PM
Apply Filter: Only show the error messages of this session 015ffd68fb13c29a3e843178854b91f9
Apply Filter: Only show the errors of this type Type of error: Undefined
Apply Filter: Only show the error messages of this URL
http://warriorcatsrpg.com/index.php?action=pm
Apply Filter: Only show the errors with the same message
8: Undefined index: id
Apply Filter: Only show the errors from this file
File: /home/warrior/public_html/Themes/default/PersonalMessage.template.php
Line: 445
Apply Filter: Only show the error messages of this member єcнσ//gєямαηу
Apply Filter: Only show the error messages of this IP address 76.198.x 
  Reverse chronological order of list Today at 05:30:57 PM
Apply Filter: Only show the error messages of this session 015ffd68fb13c29a3e843178854b91f9
Apply Filter: Only show the errors of this type Type of error: Undefined
Apply Filter: Only show the error messages of this URL
http://warriorcatsrpg.com/index.php?action=pm
Apply Filter: Only show the errors with the same message
8: Undefined index: name
Apply Filter: Only show the errors from this file
File: /home/warrior/public_html/Themes/default/PersonalMessage.template.php
Line: 447
Apply Filter: Only show the error messages of this member єcнσ//gєямαηу
Apply Filter: Only show the error messages of this IP address 76.198.x 
  Reverse chronological order of list Today at 05:30:57 PM
Apply Filter: Only show the error messages of this session 015ffd68fb13c29a3e843178854b91f9
Apply Filter: Only show the errors of this type Type of error: Undefined
Apply Filter: Only show the error messages of this URL
http://warriorcatsrpg.com/index.php?action=pm
Apply Filter: Only show the errors with the same message
8: Undefined index: id
Apply Filter: Only show the errors from this file
File: /home/warrior/public_html/Themes/default/PersonalMessage.template.php
Line: 447
Apply Filter: Only show the error messages of this member єcнσ//gєямαηу
Apply Filter: Only show the error messages of this IP address 76.198.x
  Reverse chronological order of list Today at 05:30:57 PM
Apply Filter: Only show the error messages of this session 015ffd68fb13c29a3e843178854b91f9
Apply Filter: Only show the errors of this type Type of error: Undefined
Apply Filter: Only show the error messages of this URL
http://warriorcatsrpg.com/index.php?action=pm
Apply Filter: Only show the errors with the same message
8: Undefined index: id
Apply Filter: Only show the errors from this file
File: /home/warrior/public_html/Themes/default/PersonalMessage.template.php
Line: 445
Apply Filter: Only show the error messages of this member єcнσ//gєямαηу
Apply Filter: Only show the error messages of this IP address 76.198.x
  Reverse chronological order of list Today at 05:30:57 PM
Apply Filter: Only show the error messages of this session 015ffd68fb13c29a3e843178854b91f9
Apply Filter: Only show the errors of this type Type of error: Undefined
Apply Filter: Only show the error messages of this URL
http://warriorcatsrpg.com/index.php?action=pm
Apply Filter: Only show the errors with the same message
8: Undefined index: name
Apply Filter: Only show the errors from this file
File: /home/warrior/public_html/Themes/default/PersonalMessage.template.php
Line: 447
Apply Filter: Only show the error messages of this member єcнσ//gєямαηу
Apply Filter: Only show the error messages of this IP address 76.198.x
  Reverse chronological order of list Today at 05:30:57 PM
Apply Filter: Only show the error messages of this session 015ffd68fb13c29a3e843178854b91f9
Apply Filter: Only show the errors of this type Type of error: Undefined
Apply Filter: Only show the error messages of this URL
http://warriorcatsrpg.com/index.php?action=pm
Apply Filter: Only show the errors with the same message
8: Undefined index: id
Apply Filter: Only show the errors from this file
File: /home/warrior/public_html/Themes/default/PersonalMessage.template.php
Line: 447
Apply Filter: Only show the error messages of this member єcнσ//gєямαηу
Apply Filter: Only show the error messages of this IP address 76.198.x
  Reverse chronological order of list Today at 05:30:57 PM
Apply Filter: Only show the error messages of this session 015ffd68fb13c29a3e843178854b91f9
Apply Filter: Only show the errors of this type Type of error: Undefined
Apply Filter: Only show the error messages of this URL
http://warriorcatsrpg.com/index.php?action=pm
Apply Filter: Only show the errors with the same message
8: Undefined index: id
Apply Filter: Only show the errors from this file
File: /home/warrior/public_html/Themes/default/PersonalMessage.template.php
Line: 445
Apply Filter: Only show the error messages of this member єcнσ//gєямαηу
Apply Filter: Only show the error messages of this IP address 76.198.x
  Reverse chronological order of list Today at 05:30:57 PM
Apply Filter: Only show the error messages of this session 015ffd68fb13c29a3e843178854b91f9
Apply Filter: Only show the errors of this type Type of error: Undefined
Apply Filter: Only show the error messages of this URL
http://warriorcatsrpg.com/index.php?action=pm
Apply Filter: Only show the errors with the same message
8: Undefined index: name
Apply Filter: Only show the errors from this file
File: /home/warrior/public_html/Themes/default/PersonalMessage.template.php
Line: 447
Apply Filter: Only show the error messages of this member єcнσ//gєямαηу
Apply Filter: Only show the error messages of this IP address 76.198.x
  Reverse chronological order of list Today at 05:30:57 PM
Apply Filter: Only show the error messages of this session 015ffd68fb13c29a3e843178854b91f9
Apply Filter: Only show the errors of this type Type of error: Undefined
Apply Filter: Only show the error messages of this URL
http://warriorcatsrpg.com/index.php?action=pm
Apply Filter: Only show the errors with the same message
8: Undefined index: id
Apply Filter: Only show the errors from this file
File: /home/warrior/public_html/Themes/default/PersonalMessage.template.php
Line: 447
Apply Filter: Only show the error messages of this member єcнσ//gєямαηу
Apply Filter: Only show the error messages of this IP address 76.198.x
  Reverse chronological order of list Today at 05:30:57 PM
Apply Filter: Only show the error messages of this session 015ffd68fb13c29a3e843178854b91f9
Apply Filter: Only show the errors of this type Type of error: Undefined
Apply Filter: Only show the error messages of this URL
http://warriorcatsrpg.com/index.php?action=pm
Apply Filter: Only show the errors with the same message
8: Undefined index: id
Apply Filter: Only show the errors from this file
File: /home/warrior/public_html/Themes/default/PersonalMessage.template.php
Line: 445
Apply Filter: Only show the error messages of this member єcнσ//gєямαηу
Apply Filter: Only show the error messages of this IP address 76.198.x
  Reverse chronological order of list Today at 05:30:57 PM
Apply Filter: Only show the error messages of this session 015ffd68fb13c29a3e843178854b91f9
Apply Filter: Only show the errors of this type Type of error: Undefined
Apply Filter: Only show the error messages of this URL
http://warriorcatsrpg.com/index.php?action=pm
Apply Filter: Only show the errors with the same message
8: Undefined index: name
Apply Filter: Only show the errors from this file
File: /home/warrior/public_html/Themes/default/PersonalMessage.template.php
Line: 447
Apply Filter: Only show the error messages of this member єcнσ//gєямαηу
Apply Filter: Only show the error messages of this IP address 76.198.x
  Reverse chronological order of list Today at 05:30:57 PM
Apply Filter: Only show the error messages of this session 015ffd68fb13c29a3e843178854b91f9
Apply Filter: Only show the errors of this type Type of error: Undefined
Apply Filter: Only show the error messages of this URL
http://warriorcatsrpg.com/index.php?action=pm
Apply Filter: Only show the errors with the same message
8: Undefined index: id
Apply Filter: Only show the errors from this file
File: /home/warrior/public_html/Themes/default/PersonalMessage.template.php
Line: 447
Apply Filter: Only show the error messages of this member єcнσ//gєямαηу
Apply Filter: Only show the error messages of this IP address 76.198.x
  Reverse chronological order of list Today at 05:30:57 PM
Apply Filter: Only show the error messages of this session 015ffd68fb13c29a3e843178854b91f9
Apply Filter: Only show the errors of this type Type of error: Undefined
Apply Filter: Only show the error messages of this URL
http://warriorcatsrpg.com/index.php?action=pm
Apply Filter: Only show the errors with the same message
8: Undefined index: id
Apply Filter: Only show the errors from this file
File: /home/warrior/public_html/Themes/default/PersonalMessage.template.php
Line: 445
Apply Filter: Only show the error messages of this member єcнσ//gєямαηу
Apply Filter: Only show the error messages of this IP address 76.198.x 
  Reverse chronological order of list Today at 05:30:57 PM
Apply Filter: Only show the error messages of this session 015ffd68fb13c29a3e843178854b91f9
Apply Filter: Only show the errors of this type Type of error: Undefined
Apply Filter: Only show the error messages of this URL
http://warriorcatsrpg.com/index.php?action=pm
Apply Filter: Only show the errors with the same message
8: Undefined index: name
Apply Filter: Only show the errors from this file
File: /home/warrior/public_html/Themes/default/PersonalMessage.template.php
Line: 447
Apply Filter: Only show the error messages of this member єcнσ//gєямαηу
Apply Filter: Only show the error messages of this IP address 76.198.x
  Reverse chronological order of list Today at 05:30:57 PM
Apply Filter: Only show the error messages of this session 015ffd68fb13c29a3e843178854b91f9
Apply Filter: Only show the errors of this type Type of error: Undefined
Apply Filter: Only show the error messages of this URL
http://warriorcatsrpg.com/index.php?action=pm
Apply Filter: Only show the errors with the same message
8: Undefined index: id
Apply Filter: Only show the errors from this file
File: /home/warrior/public_html/Themes/default/PersonalMessage.template.php
Line: 447
Apply Filter: Only show the error messages of this member єcнσ//gєямαηу
Apply Filter: Only show the error messages of this IP address 76.198.x
  Reverse chronological order of list Today at 05:30:57 PM
Apply Filter: Only show the error messages of this session 015ffd68fb13c29a3e843178854b91f9
Apply Filter: Only show the errors of this type Type of error: Undefined
Apply Filter: Only show the error messages of this URL
http://warriorcatsrpg.com/index.php?action=pm
Apply Filter: Only show the errors with the same message
8: Undefined index: id
Apply Filter: Only show the errors from this file
File: /home/warrior/public_html/Themes/default/PersonalMessage.template.php
Line: 445
Apply Filter: Only show the error messages of this member єcнσ//gєямαηу
Apply Filter: Only show the error messages of this IP address 76.198.x
  Reverse chronological order of list Today at 05:30:57 PM
Apply Filter: Only show the error messages of this session 015ffd68fb13c29a3e843178854b91f9
Apply Filter: Only show the errors of this type Type of error: Undefined
Apply Filter: Only show the error messages of this URL
http://warriorcatsrpg.com/index.php?action=pm
Apply Filter: Only show the errors with the same message
8: Undefined index: name
Apply Filter: Only show the errors from this file
File: /home/warrior/public_html/Themes/default/PersonalMessage.template.php
Line: 447
Apply Filter: Only show the error messages of this member єcнσ//gєямαηу
Apply Filter: Only show the error messages of this IP address 76.198.x
  Reverse chronological order of list Today at 05:30:57 PM
Apply Filter: Only show the error messages of this session 015ffd68fb13c29a3e843178854b91f9
Apply Filter: Only show the errors of this type Type of error: Undefined
Apply Filter: Only show the error messages of this URL
http://warriorcatsrpg.com/index.php?action=pm
Apply Filter: Only show the errors with the same message
8: Undefined index: id
Apply Filter: Only show the errors from this file
File: /home/warrior/public_html/Themes/default/PersonalMessage.template.php
Line: 447
Apply Filter: Only show the error messages of this member єcнσ//gєямαηу
Apply Filter: Only show the error messages of this IP address 76.198.x 
  Reverse chronological order of list Today at 05:30:57 PM
Apply Filter: Only show the error messages of this session 015ffd68fb13c29a3e843178854b91f9
Apply Filter: Only show the errors of this type Type of error: Undefined
Apply Filter: Only show the error messages of this URL
http://warriorcatsrpg.com/index.php?action=pm
Apply Filter: Only show the errors with the same message
8: Undefined index: id
Apply Filter: Only show the errors from this file
File: /home/warrior/public_html/Themes/default/PersonalMessage.template.php
Line: 445
Title: Re: A profile error - Undefined
Post by: Arantor on January 25, 2012, 06:05:09 PM
Going to need to see Sources/Buddies.php for a start.
Title: Re: A profile error - Undefined
Post by: wynnyelle on January 25, 2012, 06:15:45 PM
Your wish is my command. Here it is.
Title: Re: A profile error - Undefined
Post by: Arantor on January 25, 2012, 06:25:35 PM
OK, so you have members that are in the buddies table in UP but don't exist now for whatever reason.

Should be fixable by simply changing line 58:
Code: [Select]
loadMemberData($buddies, false, 'profile');
To:
Code: [Select]
$buddies = loadMemberData($buddies, false, 'profile');
What this means is, we've fetched the list of people who should be buddies previously, now try and get their member details. Whatever ones you actually find, put that list into $buddies, and we'll use *that* list, not the overall original list. It mentions, for example, that member 32076 doesn't exist but all the code is written to assume it does... so this way we take it into account.

That'll fix a number of the errors, not sure off hand exactly which it will, but try it and go from there.

Oh, and do the same to lines 82 and 112, for the same reason.
Title: Re: A profile error - Undefined
Post by: wynnyelle on January 25, 2012, 06:58:07 PM
Wait, so the three lines are the same? {58, 82 and 112}

The reason they're not there anymore is likely because their accounts have been deleted.

Would this also have anything to do with subaccounts?
Title: Re: A profile error - Undefined
Post by: Arantor on January 25, 2012, 06:59:56 PM
The three lines are the same basic code, run under three different conditions. (And with slightly different amount of spacing at the start)

Do the same thing to all three.

Yes, it would have something to do with subaccounts... subaccounts mod creates a new physical account and if that other account was made a buddy, but subsequently deleted, Ultimate Profile may not have been aware of it and it assumes the other account *must* exist.
Title: Re: A profile error - Undefined
Post by: wynnyelle on January 25, 2012, 07:17:41 PM
I just did it, then undid it. Something broke probably some time today, it is an emergency:

http://www.simplemachines.org/community/index.php?topic=466684.0

Need a fix on it immediately--contact me for a price, yes I will pay. Today--fix needed right now.
Title: Re: A profile error - Undefined
Post by: Arantor on January 25, 2012, 07:21:18 PM
I'm sorry, I'm not able to commit to anything tonight (seeing how it's already gone midnight) or tomorrow :(
Title: Re: A profile error - Undefined
Post by: wynnyelle on January 25, 2012, 07:33:02 PM
It's all right. I tried restoring your code and it's working fine, no different than without it, so your code did not do this.

Live had a look and it turns out, it's SimpleSEF that is screwing it up. Nothing you did.

My latest error stream {front page}:

Code: [Select]
Apply Filter: Only show the error messages of this member Guppy
Apply Filter: Only show the error messages of this IP address 174.96.x
  Reverse chronological order of list Today at 07:31:41 PM
Apply Filter: Only show the error messages of this session c3ef319c5ba12b960ea6a17c11ee9e54
Apply Filter: Only show the errors of this type Type of error: General
Apply Filter: Only show the error messages of this URL
http://warriorcatsrpg.com/index.php?action=spellcheck
Apply Filter: Only show the errors with the same message
2: pspell_new() [<a href='function.pspell-new'>function.pspell-new</a>]: PSPELL couldn't open the dictionary. reason: No word lists can be found for the language "en".
Apply Filter: Only show the errors from this file
File: /home/warrior/public_html/Sources/Subs-Post.php
Line: 1490
Apply Filter: Only show the error messages of this member Elite Trainer Gold
Apply Filter: Only show the error messages of this IP address 68.146.x 
  Reverse chronological order of list Today at 07:13:54 PM
Apply Filter: Only show the error messages of this session 3a67f3fe1d6a9a629ca785b5dd560618
Apply Filter: Only show the errors of this type Type of error: Undefined
Apply Filter: Only show the error messages of this URL
http://warriorcatsrpg.com/index.php?rp_threads=get_posts
Apply Filter: Only show the errors with the same message
8: Undefined index: 0
Apply Filter: Only show the errors from this file
File: /home/warrior/public_html/Sources/RPThreads/RPThreads.php
Line: 40
Apply Filter: Only show the error messages of this member BlazingClan. ♥
Apply Filter: Only show the error messages of this IP address 71.80.x
  Reverse chronological order of list Today at 07:13:36 PM
Apply Filter: Only show the error messages of this session 4d3da6a868ac142bd4b09103dd022eff
Apply Filter: Only show the errors of this type Type of error: Undefined
Apply Filter: Only show the error messages of this URL
http://warriorcatsrpg.com/index.php?action=profile
Apply Filter: Only show the errors with the same message
8: Undefined index: 16299
Apply Filter: Only show the errors from this file
File: /home/warrior/public_html/Sources/Profile.php
Line: 869
Apply Filter: Only show the error messages of this member BlazingClan. ♥
Apply Filter: Only show the error messages of this IP address 71.80.x
  Reverse chronological order of list Today at 07:13:19 PM
Apply Filter: Only show the error messages of this session 4d3da6a868ac142bd4b09103dd022eff
Apply Filter: Only show the errors of this type Type of error: Undefined
Apply Filter: Only show the error messages of this URL
http://warriorcatsrpg.com/index.php?action=profile
Apply Filter: Only show the errors with the same message
8: Undefined index: 16299
Apply Filter: Only show the errors from this file
File: /home/warrior/public_html/Sources/Profile.php
Line: 869
Apply Filter: Only show the error messages of this member BlazingClan. ♥
Apply Filter: Only show the error messages of this IP address 71.80.x
  Reverse chronological order of list Today at 07:13:12 PM
Apply Filter: Only show the error messages of this session 4d3da6a868ac142bd4b09103dd022eff
Apply Filter: Only show the errors of this type Type of error: Undefined
Apply Filter: Only show the error messages of this URL
http://warriorcatsrpg.com/index.php?action=profile
Apply Filter: Only show the errors with the same message
8: Undefined index: 16299
Apply Filter: Only show the errors from this file
File: /home/warrior/public_html/Sources/Profile.php
Line: 869
Apply Filter: Only show the error messages of this member Loner
Apply Filter: Only show the error messages of this IP address 199.21.x
  Reverse chronological order of list Today at 07:10:14 PM
Apply Filter: Only show the error messages of this session dd66beb111e5ef04adf4055ed1401ae5
Apply Filter: Only show the errors of this type Type of error: Undefined
Apply Filter: Only show the error messages of this URL
http://warriorcatsrpg.com/index.php?action=profile;u=15367;area=showposts;sa=topics
Apply Filter: Only show the errors with the same message
8: Undefined index: 58
Apply Filter: Only show the errors from this file
File: /home/warrior/public_html/Sources/SimpleSEF.php
Line: 455
Apply Filter: Only show the error messages of this member ℭґ¥ṧтαℓ
Apply Filter: Only show the error messages of this IP address 68.108.x 
  Reverse chronological order of list Today at 07:09:37 PM
Apply Filter: Only show the error messages of this session bc407f803f17d3ba1b83c80f4ede5a63
Apply Filter: Only show the errors of this type Type of error: Undefined
Apply Filter: Only show the error messages of this URL
http://warriorcatsrpg.com/editpoll2/add/art-fiction-and-graphics/crystal-dreamskwookii-kiilwaathiia-graphics-displayopen-all-graphics-designers-348930.0.html
Apply Filter: Only show the errors with the same message
8: Undefined index: expiration
Apply Filter: Only show the errors from this file
File: /home/warrior/public_html/Themes/default/Poll.template.php
Line: 96
Apply Filter: Only show the error messages of this member Loner
Apply Filter: Only show the error messages of this IP address 66.249.x 
  Reverse chronological order of list Today at 07:09:00 PM
Apply Filter: Only show the error messages of this session 9dae4a1cb1c54f53eec680f54836c951
Apply Filter: Only show the errors of this type Type of error: Undefined
Apply Filter: Only show the error messages of this URL
http://warriorcatsrpg.com/index.php?action=profile;u=9870;area=showposts;sa=topics
Apply Filter: Only show the errors with the same message
8: Undefined index: 58
Apply Filter: Only show the errors from this file
File: /home/warrior/public_html/Sources/SimpleSEF.php
Line: 455
Apply Filter: Only show the error messages of this member ~Tweety Bird~Iz leavin soon!~
Apply Filter: Only show the error messages of this IP address 76.240x
  Reverse chronological order of list Today at 07:00:14 PM
Apply Filter: Only show the error messages of this session 6c371995620904fa9b0d63b1c59572b2
Apply Filter: Only show the errors of this type Type of error: Undefined
Apply Filter: Only show the error messages of this URL
http://warriorcatsrpg.com/index.php?action=profile;u=28543;area=lists;sa=buddies
Apply Filter: Only show the errors with the same message
8: Undefined index: 34762
Apply Filter: Only show the errors from this file
File: /home/warrior/public_html/Sources/Buddies.php
Line: 117
Apply Filter: Only show the error messages of this member ~Tweety Bird~Iz leavin soon!~
Apply Filter: Only show the error messages of this IP address 76.240x
  Reverse chronological order of list Today at 07:00:14 PM
Apply Filter: Only show the error messages of this session 6c371995620904fa9b0d63b1c59572b2
Apply Filter: Only show the errors of this type Type of error: General
Apply Filter: Only show the error messages of this URL
http://warriorcatsrpg.com/index.php?action=profile;u=28543;area=lists;sa=buddies
Apply Filter: Only show the errors with the same message
512: loadMemberContext(): member id 34762 not previously loaded by loadMemberData()
Apply Filter: Only show the errors from this file
File: /home/warrior/public_html/Sources/Load.php
Line: 1323
Apply Filter: Only show the error messages of this member ~Tweety Bird~Iz leavin soon!~
Apply Filter: Only show the error messages of this IP address 76.240.x
  Reverse chronological order of list Today at 07:00:02 PM
Apply Filter: Only show the error messages of this session 6c371995620904fa9b0d63b1c59572b2
Apply Filter: Only show the errors of this type Type of error: Undefined
Apply Filter: Only show the error messages of this URL
http://warriorcatsrpg.com/index.php?action=profile;u=28543;area=lists;sa=buddies
Apply Filter: Only show the errors with the same message
8: Undefined index: 34762
Apply Filter: Only show the errors from this file
File: /home/warrior/public_html/Sources/Buddies.php
Line: 117
Apply Filter: Only show the error messages of this member ~Tweety Bird~Iz leavin soon!~
Apply Filter: Only show the error messages of this IP address 76.240.x
  Reverse chronological order of list Today at 07:00:02 PM
Apply Filter: Only show the error messages of this session 6c371995620904fa9b0d63b1c59572b2
Apply Filter: Only show the errors of this type Type of error: General
Apply Filter: Only show the error messages of this URL
http://warriorcatsrpg.com/index.php?action=profile;u=28543;area=lists;sa=buddies
Apply Filter: Only show the errors with the same message
512: loadMemberContext(): member id 34762 not previously loaded by loadMemberData()
Apply Filter: Only show the errors from this file
File: /home/warrior/public_html/Sources/Load.php
Line: 1323
Apply Filter: Only show the error messages of this member Anopop
Apply Filter: Only show the error messages of this IP address 98.204.x
  Reverse chronological order of list Today at 06:55:45 PM
Apply Filter: Only show the error messages of this session 8a4ed1c1db71697df521655ae806f7c8
Apply Filter: Only show the errors of this type Type of error: Undefined
Apply Filter: Only show the error messages of this URL
http://warriorcatsrpg.com/index.php?action=post2;start=0;create-your-cat=;%25buttonSrc%25=
Apply Filter: Only show the errors with the same message
8: Undefined index: 0
Apply Filter: Only show the errors from this file
File: /home/warrior/public_html/Sources/SimpleSEF.php
Line: 455
Apply Filter: Only show the error messages of this member Anopop
Apply Filter: Only show the error messages of this IP address 98.204.x
  Reverse chronological order of list Today at 06:46:31 PM
Apply Filter: Only show the error messages of this session 8a4ed1c1db71697df521655ae806f7c8
Apply Filter: Only show the errors of this type Type of error: Undefined
Apply Filter: Only show the error messages of this URL
http://warriorcatsrpg.com/index.php?action=post2;start=0;create-your-cat=;%5C%27___smf_images_url___%5C%27=;english=;new_gif=
Apply Filter: Only show the errors with the same message
8: Undefined index: 0
Apply Filter: Only show the errors from this file
File: /home/warrior/public_html/Sources/SimpleSEF.php
Line: 455
Apply Filter: Only show the error messages of this member єcнσ//gєямαηу
Apply Filter: Only show the error messages of this IP address 76.198.x 
  Reverse chronological order of list Today at 06:46:26 PM
Apply Filter: Only show the error messages of this session 015ffd68fb13c29a3e843178854b91f9
Apply Filter: Only show the errors of this type Type of error: Undefined
Apply Filter: Only show the error messages of this URL
http://warriorcatsrpg.com/index.php?action=pm
Apply Filter: Only show the errors with the same message
8: Undefined index: name
Apply Filter: Only show the errors from this file
File: /home/warrior/public_html/Themes/default/PersonalMessage.template.php
Line: 447
Apply Filter: Only show the error messages of this member єcнσ//gєямαηу
Apply Filter: Only show the error messages of this IP address 76.198.x 
  Reverse chronological order of list Today at 06:46:26 PM
Apply Filter: Only show the error messages of this session 015ffd68fb13c29a3e843178854b91f9
Apply Filter: Only show the errors of this type Type of error: Undefined
Apply Filter: Only show the error messages of this URL
http://warriorcatsrpg.com/index.php?action=pm
Apply Filter: Only show the errors with the same message
8: Undefined index: id
Apply Filter: Only show the errors from this file
File: /home/warrior/public_html/Themes/default/PersonalMessage.template.php
Line: 447
Apply Filter: Only show the error messages of this member єcнσ//gєямαηу
Apply Filter: Only show the error messages of this IP address 76.198.x
  Reverse chronological order of list Today at 06:46:26 PM
Apply Filter: Only show the error messages of this session 015ffd68fb13c29a3e843178854b91f9
Apply Filter: Only show the errors of this type Type of error: Undefined
Apply Filter: Only show the error messages of this URL
http://warriorcatsrpg.com/index.php?action=pm
Apply Filter: Only show the errors with the same message
8: Undefined index: id
Apply Filter: Only show the errors from this file
File: /home/warrior/public_html/Themes/default/PersonalMessage.template.php
Line: 445
Apply Filter: Only show the error messages of this member єcнσ//gєямαηу
Apply Filter: Only show the error messages of this IP address 76.198.x
  Reverse chronological order of list Today at 06:46:26 PM
Apply Filter: Only show the error messages of this session 015ffd68fb13c29a3e843178854b91f9
Apply Filter: Only show the errors of this type Type of error: Undefined
Apply Filter: Only show the error messages of this URL
http://warriorcatsrpg.com/index.php?action=pm
Apply Filter: Only show the errors with the same message
8: Undefined index: name
Apply Filter: Only show the errors from this file
File: /home/warrior/public_html/Themes/default/PersonalMessage.template.php
Line: 447
Apply Filter: Only show the error messages of this member єcнσ//gєямαηу
Apply Filter: Only show the error messages of this IP address 76.198.x
  Reverse chronological order of list Today at 06:46:26 PM
Apply Filter: Only show the error messages of this session 015ffd68fb13c29a3e843178854b91f9
Apply Filter: Only show the errors of this type Type of error: Undefined
Apply Filter: Only show the error messages of this URL
http://warriorcatsrpg.com/index.php?action=pm
Apply Filter: Only show the errors with the same message
8: Undefined index: id
Apply Filter: Only show the errors from this file
File: /home/warrior/public_html/Themes/default/PersonalMessage.template.php
Line: 447
Apply Filter: Only show the error messages of this member єcнσ//gєямαηу
Apply Filter: Only show the error messages of this IP address 76.198.x
  Reverse chronological order of list Today at 06:46:26 PM
Apply Filter: Only show the error messages of this session 015ffd68fb13c29a3e843178854b91f9
Apply Filter: Only show the errors of this type Type of error: Undefined
Apply Filter: Only show the error messages of this URL
http://warriorcatsrpg.com/index.php?action=pm
Apply Filter: Only show the errors with the same message
8: Undefined index: id
Apply Filter: Only show the errors from this file
File: /home/warrior/public_html/Themes/default/PersonalMessage.template.php
Line: 445
Apply Filter: Only show the error messages of this member єcнσ//gєямαηу
Apply Filter: Only show the error messages of this IP address 76.198.x 
  Reverse chronological order of list Today at 06:46:26 PM
Apply Filter: Only show the error messages of this session 015ffd68fb13c29a3e843178854b91f9
Apply Filter: Only show the errors of this type Type of error: Undefined
Apply Filter: Only show the error messages of this URL
http://warriorcatsrpg.com/index.php?action=pm
Apply Filter: Only show the errors with the same message
8: Undefined index: name
Apply Filter: Only show the errors from this file
File: /home/warrior/public_html/Themes/default/PersonalMessage.template.php
Line: 447
Apply Filter: Only show the error messages of this member єcнσ//gєямαηу
Apply Filter: Only show the error messages of this IP address 76.198.x 
  Reverse chronological order of list Today at 06:46:26 PM
Apply Filter: Only show the error messages of this session 015ffd68fb13c29a3e843178854b91f9
Apply Filter: Only show the errors of this type Type of error: Undefined
Apply Filter: Only show the error messages of this URL
http://warriorcatsrpg.com/index.php?action=pm
Apply Filter: Only show the errors with the same message
8: Undefined index: id
Apply Filter: Only show the errors from this file
File: /home/warrior/public_html/Themes/default/PersonalMessage.template.php
Line: 447
Apply Filter: Only show the error messages of this member єcнσ//gєямαηу
Apply Filter: Only show the error messages of this IP address 76.198.x 
  Reverse chronological order of list Today at 06:46:26 PM
Apply Filter: Only show the error messages of this session 015ffd68fb13c29a3e843178854b91f9
Apply Filter: Only show the errors of this type Type of error: Undefined
Apply Filter: Only show the error messages of this URL
http://warriorcatsrpg.com/index.php?action=pm
Apply Filter: Only show the errors with the same message
8: Undefined index: id
Apply Filter: Only show the errors from this file
File: /home/warrior/public_html/Themes/default/PersonalMessage.template.php
Line: 445
Apply Filter: Only show the error messages of this member єcнσ//gєямαηу
Apply Filter: Only show the error messages of this IP address 76.198.x 
  Reverse chronological order of list Today at 06:46:26 PM
Apply Filter: Only show the error messages of this session 015ffd68fb13c29a3e843178854b91f9
Apply Filter: Only show the errors of this type Type of error: Undefined
Apply Filter: Only show the error messages of this URL
http://warriorcatsrpg.com/index.php?action=pm
Apply Filter: Only show the errors with the same message
8: Undefined index: name
Apply Filter: Only show the errors from this file
File: /home/warrior/public_html/Themes/default/PersonalMessage.template.php
Line: 447
Apply Filter: Only show the error messages of this member єcнσ//gєямαηу
Apply Filter: Only show the error messages of this IP address 76.198.x 
  Reverse chronological order of list Today at 06:46:26 PM
Apply Filter: Only show the error messages of this session 015ffd68fb13c29a3e843178854b91f9
Apply Filter: Only show the errors of this type Type of error: Undefined
Apply Filter: Only show the error messages of this URL
http://warriorcatsrpg.com/index.php?action=pm
Apply Filter: Only show the errors with the same message
8: Undefined index: id
Apply Filter: Only show the errors from this file
File: /home/warrior/public_html/Themes/default/PersonalMessage.template.php
Line: 447
Apply Filter: Only show the error messages of this member єcнσ//gєямαηу
Apply Filter: Only show the error messages of this IP address 76.198.x
  Reverse chronological order of list Today at 06:46:26 PM
Apply Filter: Only show the error messages of this session 015ffd68fb13c29a3e843178854b91f9
Apply Filter: Only show the errors of this type Type of error: Undefined
Apply Filter: Only show the error messages of this URL
http://warriorcatsrpg.com/index.php?action=pm
Apply Filter: Only show the errors with the same message
8: Undefined index: id
Apply Filter: Only show the errors from this file
File: /home/warrior/public_html/Themes/default/PersonalMessage.template.php
Line: 445
Apply Filter: Only show the error messages of this member єcнσ//gєямαηу
Apply Filter: Only show the error messages of this IP address 76.198.x
  Reverse chronological order of list Today at 06:46:26 PM
Apply Filter: Only show the error messages of this session 015ffd68fb13c29a3e843178854b91f9
Apply Filter: Only show the errors of this type Type of error: Undefined
Apply Filter: Only show the error messages of this URL
http://warriorcatsrpg.com/index.php?action=pm
Apply Filter: Only show the errors with the same message
8: Undefined index: name
Apply Filter: Only show the errors from this file
File: /home/warrior/public_html/Themes/default/PersonalMessage.template.php
Line: 447
Apply Filter: Only show the error messages of this member єcнσ//gєямαηу
Apply Filter: Only show the error messages of this IP address 76.198.x
  Reverse chronological order of list Today at 06:46:26 PM
Apply Filter: Only show the error messages of this session 015ffd68fb13c29a3e843178854b91f9
Apply Filter: Only show the errors of this type Type of error: Undefined
Apply Filter: Only show the error messages of this URL
http://warriorcatsrpg.com/index.php?action=pm
Apply Filter: Only show the errors with the same message
8: Undefined index: id
Apply Filter: Only show the errors from this file
File: /home/warrior/public_html/Themes/default/PersonalMessage.template.php
Line: 447
Apply Filter: Only show the error messages of this member єcнσ//gєямαηу
Apply Filter: Only show the error messages of this IP address 76.198.x
  Reverse chronological order of list Today at 06:46:26 PM
Apply Filter: Only show the error messages of this session 015ffd68fb13c29a3e843178854b91f9
Apply Filter: Only show the errors of this type Type of error: Undefined
Apply Filter: Only show the error messages of this URL
http://warriorcatsrpg.com/index.php?action=pm
Apply Filter: Only show the errors with the same message
8: Undefined index: id
Apply Filter: Only show the errors from this file
File: /home/warrior/public_html/Themes/default/PersonalMessage.template.php
Line: 445
Apply Filter: Only show the error messages of this member єcнσ//gєямαηу
Apply Filter: Only show the error messages of this IP address 76.198.x
  Reverse chronological order of list Today at 06:46:26 PM
Apply Filter: Only show the error messages of this session 015ffd68fb13c29a3e843178854b91f9
Apply Filter: Only show the errors of this type Type of error: Undefined
Apply Filter: Only show the error messages of this URL
http://warriorcatsrpg.com/index.php?action=pm
Apply Filter: Only show the errors with the same message
8: Undefined index: name
Apply Filter: Only show the errors from this file
File: /home/warrior/public_html/Themes/default/PersonalMessage.template.php
Line: 447
Title: Re: A profile error - Undefined
Post by: wynnyelle on January 25, 2012, 08:15:59 PM
Lag has now hit my site VERY badly, and I don't know what to do.
Title: Re: A profile error - Undefined
Post by: Arantor on January 25, 2012, 08:22:04 PM
Quote
so your code did not do this.

If my code did the above of screwing up accounts, I'd hang up my coding shoes and change industries for misunderstanding the fundamentals of coding.

As far as PSPELL errors go, your choices are reconfigure the server or turn off spell check.

Though that error stream indicates errors that my code change (if it were applied to all three instances in that file) should have resolved.
Title: Re: A profile error - Undefined
Post by: wynnyelle on January 25, 2012, 08:25:26 PM
Spell check is off, I checked. It is disabled. I remember disabling it weeks ago, and I just checked again and it is still disabled.

I'm getting this now:

Code: [Select]
Apply Filter: Only show the error messages of this member WarriorCat7
Apply Filter: Only show the error messages of this IP address 71.191.xx 
  Reverse chronological order of list Today at 08:23:39 PM
Apply Filter: Only show the error messages of this session bdf80cec9ec65efed93432abdde52387
Apply Filter: Only show the errors of this type Type of error: General
Apply Filter: Only show the error messages of this URL
http://warriorcatsrpg.com/index.php?action=profile;u=42331;area=lists;sa=buddies
Apply Filter: Only show the errors with the same message
2: Invalid argument supplied for foreach()
Apply Filter: Only show the errors from this file
File: /home/warrior/public_html/Sources/Buddies.php
Line: 56
Apply Filter: Only show the error messages of this member Loner
Apply Filter: Only show the error messages of this IP address 207.46.xx
  Reverse chronological order of list Today at 08:23:31 PM
Apply Filter: Only show the error messages of this session 3d1d762d413506b1e43d1d45b48bfeb8
Apply Filter: Only show the errors of this type Type of error: Undefined
Apply Filter: Only show the error messages of this URL
http://warriorcatsrpg.com/adoptions/phantoms-cats.-four-so-far-80787.msg1256622.html.
Apply Filter: Only show the errors with the same message
8: Undefined index: 449
Apply Filter: Only show the errors from this file
File: /home/warrior/public_html/Sources/SimpleSEF.php
Line: 455

Thank you so much for helping me.

The lag is so bad on my site right now I can hardly use it.
Title: Re: A profile error - Undefined
Post by: live627 on January 25, 2012, 08:28:56 PM
The account screw-up was due to SSEF confusing the poor system. I wonder if disabling that extension would help anything. I wonder if it can cause lag, knowing the errors it spits out,.
Title: Re: A profile error - Undefined
Post by: wynnyelle on January 25, 2012, 08:30:55 PM
I detailed the problems with SimpleSEF's cache earlier on. I don't know for sure if it would properly re-enable afterwards so I've been reluctant to take a chance. If it fails to restore back to where it was before, not only are thousands of search engine links destroyed, but worse, the tens of thousands of roleplay networking links members have created in-site with each other, connecting their threads, etc. will also be irretrievably broken.
Title: Re: A profile error - Undefined
Post by: Arantor on January 25, 2012, 08:45:08 PM
OK, so now I'm confused by the new errors because they shouldn't be occurring (and they are a result of my changes, though that's ultimately because *I* made an assumption as well)

The first change, around line 52, should ultimately now become:
Code: [Select]
// Load all the members up.
$buddies = loadMemberData($buddies, false, 'profile');

$context['buddies'] = array();
if (count($buddies) > 0)
foreach ($buddies as $buddy) {
loadMemberContext($buddy);
$context['buddies'][$buddy] = $memberContext[$buddy];
}

Just like the other instances already are, actually.

The lag caused by SSEF is not that serious in the scheme of things - or shouldn't be.
Title: Re: A profile error - Undefined
Post by: wynnyelle on January 25, 2012, 08:54:25 PM
SimpleSEF has been causing so many issues on my site. It did cause one major crash I know that.

I've switched in your code, don't see anything going wrong yet but will keep the error log refreshing to see what turns up.  Thank you again.

Most recent error:

Code: [Select]
Apply Filter: Only show the error messages of this member ᴇʀᴀ
Apply Filter: Only show the error messages of this IP address 71.198.xx
  Reverse chronological order of list Today at 08:47:39 PM
Apply Filter: Only show the error messages of this session bedca39c40cbb9c0669b680b8ef00cee
Apply Filter: Only show the errors of this type Type of error: Undefined
Apply Filter: Only show the error messages of this URL
http://warriorcatsrpg.com/index.php?action=profile;u=37573;area=summary
Apply Filter: Only show the errors with the same message
8: Undefined index: 12767
Apply Filter: Only show the errors from this file
File: /home/warrior/public_html/Sources/Profile.php
Line: 869
Title: Re: A profile error - Undefined
Post by: Arantor on January 25, 2012, 09:08:42 PM
Please attach Profile.php :)
Title: Re: A profile error - Undefined
Post by: wynnyelle on January 25, 2012, 09:11:39 PM
Here you are!
Title: Re: A profile error - Undefined
Post by: Arantor on January 25, 2012, 09:16:46 PM
Replace: (lines 863 onwards)
Code: [Select]
if (empty($cur_profile['is_shareable']))
{
loadMemberData(array($cur_profile['id_parent']), false, 'minimal');

$context['linktree'][] = array(
'url' => $scripturl . '?action=profile;u=' . $cur_profile['id_parent'],
'name' => $user_profile[$cur_profile['id_parent']]['real_name'],
);
}

With:
Code: [Select]
if (empty($cur_profile['is_shareable']))
{
$loaded = loadMemberData(array($cur_profile['id_parent']), false, 'minimal');
if (!empty($loaded))
{
$context['linktree'][] = array(
'url' => $scripturl . '?action=profile;u=' . $cur_profile['id_parent'],
'name' => $user_profile[$cur_profile['id_parent']]['real_name'],
);
}
}
Title: Re: A profile error - Undefined
Post by: wynnyelle on January 25, 2012, 10:41:23 PM
Thanks. I added it, and am watching the error log. What's come up most recently:

Code: [Select]
Apply Filter: Only show the error messages of this member the13woumen
Apply Filter: Only show the error messages of this IP address 98.213.xx 
  Reverse chronological order of list Today at 10:30:12 PM
Apply Filter: Only show the error messages of this session 3e58d41c498eebb642dfbc75871e8617
Apply Filter: Only show the errors of this type Type of error: General
Apply Filter: Only show the error messages of this URL
http://warriorcatsrpg.com/index.php?action=profile;u=42842;area=lists;sa=buddies
Apply Filter: Only show the errors with the same message
2: Invalid argument supplied for foreach()
Apply Filter: Only show the errors from this file
File: /home/warrior/public_html/Sources/Buddies.php
Line: 57
Title: Re: A profile error - Undefined
Post by: Arantor on January 26, 2012, 03:27:25 AM
Ah, I see...

The code I posted:
Code: [Select]
// Load all the members up.
$buddies = loadMemberData($buddies, false, 'profile');

$context['buddies'] = array();
if (count($buddies) > 0)
foreach ($buddies as $buddy) {
loadMemberContext($buddy);
$context['buddies'][$buddy] = $memberContext[$buddy];
}

Should have been:
Code: [Select]
// Load all the members up.
$buddies = loadMemberData($buddies, false, 'profile');

$context['buddies'] = array();
if (!empty($buddies))
foreach ($buddies as $buddy) {
loadMemberContext($buddy);
$context['buddies'][$buddy] = $memberContext[$buddy];
}

I forgot how it handled a certain case. We may have to apply something similar to the other cases:

Code: [Select]
foreach ($buddies as $buddy) {
loadMemberContext($buddy);
$context['unapproved'][$buddy] = $memberContext[$buddy];
}

Becomes:
Code: [Select]
if (!empty($buddies))
{
foreach ($buddies as $buddy) {
loadMemberContext($buddy);
$context['unapproved'][$buddy] = $memberContext[$buddy];
}
}

And
Code: [Select]
foreach ($buddies as $buddy) {
loadMemberContext($buddy);
$context['pending'][$buddy] = $memberContext[$buddy];
}

Becomes:
Code: [Select]
if (!empty($buddies))
{
foreach ($buddies as $buddy) {
loadMemberContext($buddy);
$context['pending'][$buddy] = $memberContext[$buddy];
}
}
Title: Re: A profile error - Undefined
Post by: wynnyelle on January 26, 2012, 01:27:37 PM
Oh wow, let me get that file and do that, is that buddies.php?

That first change, would I do that to all 3 of those same places like I did last night? Or just the one you showed me up there?
Title: Re: A profile error - Undefined
Post by: Arantor on January 26, 2012, 01:40:21 PM
No, just do those specific changes, unlike last time it isn't the exact same code in three places, but it's slightly different each time.
Title: Re: A profile error - Undefined
Post by: wynnyelle on January 26, 2012, 01:42:35 PM
I did them, thanks :). So far nothing broke :P waiting for the error log to show anything. Error log does have this though:

Code: [Select]
Apply Filter: Only show the error messages of this member ✖ Northern.
Apply Filter: Only show the error messages of this IP address 99.252.x
  Reverse chronological order of list Today at 11:54:52 AM
Apply Filter: Only show the error messages of this session 05056fd9b51ac9b2ebb20d6e1c5a34bd
Apply Filter: Only show the errors of this type Type of error: General
Apply Filter: Only show the error messages of this URL
http://warriorcatsrpg.com/index.php?action=profile;u=5775;area=managesubaccounts;sa=split
Apply Filter: Only show the errors with the same message
2: preg_split() expects parameter 2 to be string, array given
Apply Filter: Only show the errors from this file
File: /home/warrior/public_html/Sources/Load.php(248) : runtime-created function
Line: 12
Apply Filter: Only show the error messages of this member ✖ Northern.
Apply Filter: Only show the error messages of this IP address 99.252.x
  Reverse chronological order of list Today at 11:54:52 AM
Apply Filter: Only show the error messages of this session 05056fd9b51ac9b2ebb20d6e1c5a34bd
Apply Filter: Only show the errors of this type Type of error: General
Apply Filter: Only show the error messages of this URL
http://warriorcatsrpg.com/index.php?action=profile;u=5775;area=managesubaccounts;sa=split
Apply Filter: Only show the errors with the same message
2: strlen() expects parameter 1 to be string, array given
Apply Filter: Only show the errors from this file
File: /home/warrior/public_html/Sources/Load.php(248) : runtime-created function
Line: 5
Apply Filter: Only show the error messages of this member ✖ Northern.
Apply Filter: Only show the error messages of this IP address 99.252.x
  Reverse chronological order of list Today at 11:54:32 AM
Apply Filter: Only show the error messages of this session 05056fd9b51ac9b2ebb20d6e1c5a34bd
Apply Filter: Only show the errors of this type Type of error: General
Apply Filter: Only show the error messages of this URL
http://warriorcatsrpg.com/index.php?action=profile;u=5775;area=managesubaccounts;sa=split
Apply Filter: Only show the errors with the same message
2: preg_split() expects parameter 2 to be string, array given
Apply Filter: Only show the errors from this file
File: /home/warrior/public_html/Sources/Load.php(248) : runtime-created function
Line: 12
Apply Filter: Only show the error messages of this member ✖ Northern.
Apply Filter: Only show the error messages of this IP address 99.252.x
  Reverse chronological order of list Today at 11:54:32 AM
Apply Filter: Only show the error messages of this session 05056fd9b51ac9b2ebb20d6e1c5a34bd
Apply Filter: Only show the errors of this type Type of error: General
Apply Filter: Only show the error messages of this URL
http://warriorcatsrpg.com/index.php?action=profile;u=5775;area=managesubaccounts;sa=split
Apply Filter: Only show the errors with the same message
2: strlen() expects parameter 1 to be string, array given
Apply Filter: Only show the errors from this file
File: /home/warrior/public_html/Sources/Load.php(248) : runtime-created function
Line: 5