You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I CAN ADD THE ITEMS INTO THE ARRAY CORRECTLY NOW BUT WHEN THERE ARE MORE THAN 10 ITEMS , THE 10 TH ITEM AND LATER IS AN UNDEFINED OFFSET MESSAGE
EG ERROR MESSAGE ON THESE LINES
undefined offset is generated when you try to access an array with an invalid index, so the problem is that the array "$option_wp_roles_string" doesn't actually have 10-13 items. Perhaps you can generate the options automagically using a function above and then simply include them like so:] 'options' => $my_generated_options,
SEE PREVOUS POST
I CAN ADD THE ITEMS INTO THE ARRAY CORRECTLY NOW BUT WHEN THERE ARE MORE THAN 10 ITEMS , THE 10 TH ITEM AND LATER IS AN UNDEFINED OFFSET MESSAGE
EG ERROR MESSAGE ON THESE LINES
'10' => $option_wp_roles_string[10],
'11' => $option_wp_roles_string[11],
'12' => $option_wp_roles_string[12],
'13' => $option_wp_roles_string[13],
THE MESSAGE DOES NOT APPEAR ON ALL MY COMPUTERS ONLY ON 1 OF THEM
Notice: Undefined offset: 12 in C:\xampp\apps\wordpress\htdocs\wp-content\plugins\40mtest\40mtest.php on line 288
THESE LINES BELOW ARE PERFECT
$aa_panel->createOption( array(
'name' => 'User Role Access',
'id' => 'aa_general_role',
'type' => 'multicheck',
'desc' => 'Which User Roles have Access to website - Administrators always have access',
'options' => array(
// '1' => $option_wp_roles_string[0],
'1' => $option_wp_roles_string[1],
'2' => $option_wp_roles_string[2],
The text was updated successfully, but these errors were encountered: