PDA

View Full Version : User CP >Edit Options ERROR (pls help)


Gamelobby
12-10-2010, 06:02 PM
when i go to user cp>edit options at the top of the screen i get this error.
Anyone know why? Any help greatly appreciated!

thanks

here is the error i get

Warning: mcrypt_decrypt() [function.mcrypt-decrypt]: Size of key is too large for this algorithm in [path]/profile.php(1906) : eval()'d code on line 4

calorie
12-10-2010, 06:34 PM
Temporarily disable your add-ons, change whatever key the error is referring to, to under 24 characters, re-enable add-ons. If you still get the error, find the add-on that is affecting the profile page, temporarily disable it, contact the add-on author.

Gamelobby
12-10-2010, 11:52 PM
I'm not sure where line 4 is.?
If i open up Profile.php in editor, line 4 is in the VB License info box area..?

What "Key" is the error referring to.?

Thanks :)

Lynne
12-11-2010, 03:15 AM
The problem is started on line 1906 of the profile.php file. That lines calls a plugin here:
($hook = vBulletinHook::fetch_hook('profile_editoptions_sta rt')) ? eval($hook) : false;
And your problem is on line 4 of whatever plugin that is.

Gamelobby
12-12-2010, 01:43 AM
Can you tell me what plug-in it is.?
Is the plug-in listed here.?

or does it call to a plug-in somewhere in another file.?
(if so, how do i know where.?)

Here is line 1899-2117

// ################################################## ##########################
// ############################### EDIT OPTIONS ###############################
// ################################################## ##########################
if ($_REQUEST['do'] == 'editoptions')
{
require_once(DIR . '/includes/functions_misc.php');

($hook = vBulletinHook::fetch_hook('profile_editoptions_sta rt')) ? eval($hook) : false;

// check the appropriate checkboxes
$checked = array();
foreach ($vbulletin->userinfo AS $key => $val)
{
if ($val != 0)
{
$checked["$key"] = 'checked="checked"';
}
else

{
$checked["$key"] = '';
}
}

// invisible option
$show['invisibleoption'] = iif(bitwise($permissions['genericpermissions'], $vbulletin->bf_ugp_genericpermissions['caninvisible']), true, false);

// Email members option
$show['receiveemail'] = ($vbulletin->options['enableemail'] AND $vbulletin->options['displayemails']) ? true : false;

// reputation options
if ($permissions['genericpermissions'] & $vbulletin->bf_ugp_genericpermissions['canhiderep'] AND $vbulletin->options['reputationenable'])
{
if ($vbulletin->userinfo['showreputation'])
{
$checked['showreputation'] = 'checked="checked"';
}
$show['reputationoption'] = true;
}
else
{
$show['reputationoption'] = false;
}

// PM options
$show['pmoptions'] = ($vbulletin->options['enablepms'] AND $permissions['pmquota'] > 0) ? true : false;
$show['friend_email_request'] = (($vbulletin->options['socnet'] & $vbulletin->bf_misc_socnet['enable_friends']) AND
($vbulletin->userinfo['permissions']['genericpermissions2'] & $vbulletin->bf_ugp_genericpermissions2) ? true : false);

// VM Options
$show['vmoptions'] = (
$vbulletin->options['socnet'] & $vbulletin->bf_misc_socnet['enable_visitor_messaging']
AND
$vbulletin->userinfo['permissions']['genericpermissions'] & $vbulletin->bf_ugp_genericpermissions['canviewmembers']
) ? true : false;

// autosubscribe selected option
$vbulletin->userinfo['autosubscribe'] = verify_subscription_choice($vbulletin->userinfo['autosubscribe'], $vbulletin->userinfo, 9999);
$emailchecked = array($vbulletin->userinfo['autosubscribe'] => 'selected="selected"');

// threaded mode options
if ($vbulletin->userinfo['threadedmode'] == 1 OR $vbulletin->userinfo['threadedmode'] == 2)
{
$threaddisplaymode["{$vbulletin->userinfo['threadedmode']}"] = 'selected="selected"';
}
else
{
if ($vbulletin->userinfo['postorder'] == 0)
{
$threaddisplaymode[0] = 'selected="selected"';
}
else
{
$threaddisplaymode[3] = 'selected="selected"';
}
}

// default days prune
if ($vbulletin->userinfo['daysprune'] == 0)
{
$daysdefaultselected = 'selected="selected"';
}
else
{
if ($vbulletin->userinfo['daysprune'] == '-1')
{
$vbulletin->userinfo['daysprune'] = 'all';
}
$dname = 'days' . $vbulletin->userinfo['daysprune'] . 'selected';
$$dname = 'selected="selected"';
}

// daylight savings time
$selectdst = array();
if ($vbulletin->userinfo['dstauto'])
{
$selectdst[2] = 'selected="selected"';
}
else if ($vbulletin->userinfo['dstonoff'])
{
$selectdst[1] = 'selected="selected"';
}
else
{
$selectdst[0] = 'selected="selected"';
}

require_once(DIR . '/includes/functions_misc.php');
$timezoneoptions = '';
foreach (fetch_timezone() AS $optionvalue => $timezonephrase)
{
$optiontitle = $vbphrase["$timezonephrase"];
$optionselected = iif($optionvalue == $vbulletin->userinfo['timezoneoffset'], 'selected="selected"', '');
eval('$timezoneoptions .= "' . fetch_template('option') . '";');
}
eval('$timezoneoptions = "' . fetch_template('modifyoptions_timezone') . '";');

// start of the week
if ($vbulletin->userinfo['startofweek'] > 0)
{
$dname = 'day' . $vbulletin->userinfo['startofweek'] . 'selected';
$$dname = 'selected="selected"';
}
else
{
$day1selected = 'selected="selected"';
}

// bb code editor options
if (!is_array($vbulletin->options['editormodes_array']))
{
$vbulletin->options['editormodes_array'] = unserialize($vbulletin->options['editormodes']);
}
$max_editormode = max($vbulletin->options['editormodes_array']);
if ($vbulletin->userinfo['showvbcode'] > $max_editormode)
{
$vbulletin->userinfo['showvbcode'] = $max_editormode;
}
$show['editormode_picker'] = $max_editormode ? true : false;
$show['editormode_wysiwyg'] = $max_editormode > 1 ? true : false;
$checkvbcode = array($vbulletin->userinfo['showvbcode'] => ' checked="checked"');
$selectvbcode = array($vbulletin->userinfo['showvbcode'] => ' selected="selected"');

//MaxPosts by User
$foundmatch = 0;
if ($vbulletin->options['usermaxposts'])
{
$optionArray = explode(',', $vbulletin->options['usermaxposts']);
foreach ($optionArray AS $optionvalue)
{
if ($optionvalue == $vbulletin->userinfo['maxposts'])
{
$optionselected = 'selected="selected"';
$foundmatch = 1;
}
else
{
$optionselected = '';
}
$optiontitle = construct_phrase($vbphrase['show_x_posts_per_page'], $optionvalue);
eval ('$maxpostsoptions .= "' . fetch_template('option') . '";');
}
}
if ($foundmatch == 0)
{
$postsdefaultselected = 'selected="selected"';
}
$show['maxpostsoptions'] = ($vbulletin->options['usermaxposts'] ? true : false);

if ($vbulletin->options['allowchangestyles'])
{
$stylecount = 0;
if ($vbulletin->stylecache !== null)
{
$stylesetlist = construct_style_options();
}
$show['styleoption'] = iif($stylecount > 1, true, false);
}
else
{
$show['styleoption'] = false;
}

// get language options
$languagelist = '';
$languages = fetch_language_titles_array('', 0);
if (sizeof($languages) > 1)
{
foreach ($languages AS $optionvalue => $optiontitle)
{
$optionselected = iif($vbulletin->userinfo['saved_languageid'] == $optionvalue, 'selected="selected"', '');
eval('$languagelist .= "' . fetch_template('option') . '";');
}
$show['languageoption'] = true;
}
else
{
$show['languageoption'] = false;
}

$bgclass1 = 'alt1'; // Login Section
$bgclass3 = 'alt1'; // Messaging Section
$bgclass3 = 'alt1'; // Thread View Section
$bgclass4 = 'alt1'; // Date/Time Section
$bgclass5 = 'alt1'; // Other Section

// View other users' profile styling
$show['usercssoption'] = $vbulletin->options['socnet'] & $vbulletin->bf_misc_socnet['enable_profile_styling'];

// Get custom otions
$customfields = array();
fetch_profilefields(1);

// draw cp nav bar
construct_usercp_nav('options');

$navbits[''] = $vbphrase['edit_options'];
$templatename = 'modifyoptions';
}





Thanks for any insight.!!

Lynne
12-12-2010, 04:18 AM
I have no idea what plugin it is. I only have the information I posted about it which is which hook location it is using. Disable any product that has a plugin using that hook location and see if the error goes away.

Gamelobby
12-12-2010, 05:05 AM
I guess i just dont understand.. what location is it.?

Lynne
12-12-2010, 07:08 PM
The line I quoted says it is using the hook_location "profile_editoptions_start"

Gamelobby
12-13-2010, 12:41 AM
Got it.. it's vBTwitter - https://vborg.vbsupport.ru/showthread.php?t=204694

I'll make a post in that thread also. :)
Thanks