News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Error log issues

Started by ScrumpyJack, September 07, 2013, 06:33:02 AM

Previous topic - Next topic

ScrumpyJack

Hi all,

I hope you can help with some issues in my error log.

One of main ones appears to be in the Sources/Load.php.

I am getting an error on line 1367:   which is showing the following:

$groups = $profile['additional_groups'];

Does anyone know what the issue might be with this please?

There doesn't appear to be an issue with forum access, but I'm a bit concerned as to what this error is.

Thanks

Lee
:)

Illori

might help a bit if you gave us the exact error message.

ScrumpyJack

Oooops....apologies! :)

Here is the error message:

http://10.188.14.162:8080/smf/index.php?action=admin;area=logs;f696ab9de=209c16dcff10cf74c80cb933fb8189f18: Undefined variable: profileFile: C:/wamp/www/SMF/Sources/Load.php
Line: 1367

Illori

can you attach your load.php to your next post? that line does not seem to exist in a clean file.

ScrumpyJack


Illori

$context['badges']['ownline'] = !empty($modSettings['badge_ownline']) ? explode(',', $modSettings['badge_ownline'], 20) : '';
 
$groups = $profile['additional_groups'];
// Load additional membergroups
if (!empty($groups))
{
$result_stars = $smcFunc['db_query']('', '
SELECT id_group, group_name, stars, online_color
FROM {db_prefix}membergroups
WHERE id_group IN (' . $groups . ')
',
array()
);

// additional groups
while ($row_stars = $smcFunc['db_fetch_assoc']($result_stars))
if (!empty($row_stars['stars']))
{
$memberContext[$user]['additional_groups']['id'][] = $row_stars['id_group'];
$memberContext[$user]['additional_groups']['stars'][] = str_repeat('<img src="' . str_replace('$language', $context['user']['language'], isset($row_stars['stars'][1]) ? $settings['images_url'] . '/' . $smcFunc['substr']($row_stars['stars'], 2, strlen($row_stars['stars'])) : '') . '" alt="*" border="0" />', empty($row_stars['stars'][0]) || empty($row_stars['stars'][1]) ? 0 : $row_stars['stars'][0]);
$memberContext[$user]['additional_groups']['name'][] = $row_stars['group_name'];
$memberContext[$user]['additional_groups']['ag_color'][] = $row_stars['online_color'];
}
$smcFunc['db_free_result']($result_stars);
}

return true;


that seems to be the code causing the error, you have a mod that adds more badges/stars? i would post in that mods support thread asking for help with the error.

also i think that code is in the wrong place it is in the section for browser detect which might be why it is causing the error

ScrumpyJack

Thanks Illori! :)

I took a look through my mods and there is nothing installed which relies on new badges or stars.

On that basis, is it safe to manually remove that section from my Load.php file?

I have taken a backup already.

Thanks

Lee
:)

Illori

you can try, it is not functioning as it should be as it is in the wrong place anyway.

Advertisement: