Hi,
When I try to access a user's profile, the message "Undefined variable: key" now appears. What's wrong there?
This is displayed in the error log:
Type of error: Undefined
Notice: Undefined variable: key
https://forum.xxx.de/index.php?action=profile
File: /www/htdocs/xxx/xxx/sources/subs/Profile.subs.php
Line: 293
291 if (in_array($row['field_type'], array('radio', 'select')))
292 {
293 $replacements['{KEY}'] = $row['col_name'] . '_' . $key;
294 }
295 $output_html = strtr($row['enclose'], $replacements);
Maybe the error has to do with this error message for the addon "Stop Spammer":
Type of error: Undefined
Notice: Undefined index: stopspammer_profilecheck
https://forum.xxx.de/index.php?action=profile
File: /www/htdocs/xxx/xxx/sources/addons/StopSpammer/StopSpammer_hooks.php
Line: 465
457 // Add "Check this member" under "Action" menu in individual profile view
458 public static function profile_areas(&$profile_areas)
459 {
460 global $txt, $scripturl, $memID, $modSettings;
461 loadLanguage('StopSpammer');
462
463 $profile_areas['profile_action']['areas'] = elk_array_insert($profile_areas['profile_action']['areas'], 'activateaccount', array(
464 'checkmember' => array(
465 'label' => $txt['stopspammer_profilecheck'],
466 'custom_url' => $scripturl . '?action=admin;area=viewmembers;sa=query;params=' . base64_encode(serialize(array('mem_id' => $memID, 'types' => array('mem_id' => '=')))),
467 'enabled' => !empty($modSettings['stopspammer_enable']),
468 'sc' => 'get',
469 'permission' => array(
470 'own' => array('profile_remove_any', 'profile_remove_own'),
471 'any' => array('profile_remove_any', 'moderate_forum'),
472 ),
473 )), 'after');
474 }