• Resolved tokkonopapa

    (@tokkonopapa)


    I don’t know the side effects of these notices.

    PHP Notice:  Undefined offset: 10 in /htdocs/wp-content/plugins/ag-custom-admin/plugin.php on line 1356
    PHP Notice:  Undefined offset: 10 in /htdocs/wp-content/plugins/ag-custom-admin/plugin.php on line 1357
    PHP Notice:  Undefined offset: 15 in /htdocs/wp-content/plugins/ag-custom-admin/plugin.php on line 1356
    PHP Notice:  Undefined offset: 15 in /htdocs/wp-content/plugins/ag-custom-admin/plugin.php on line 1357
    PHP Notice:  Undefined index: sites.php in /htdocs/wp-content/plugins/ag-custom-admin/plugin.php on line 1336
    PHP Notice:  Undefined index: sites.php in /htdocs/wp-content/plugins/ag-custom-admin/plugin.php on line 1380
    PHP Notice:  Undefined offset: 5 in /htdocs/wp-content/plugins/ag-custom-admin/plugin.php on line 1356
    PHP Notice:  Undefined offset: 5 in /htdocs/wp-content/plugins/ag-custom-admin/plugin.php on line 1357
    PHP Notice:  Undefined offset: 10 in /htdocs/wp-content/plugins/ag-custom-admin/plugin.php on line 1356
    PHP Notice:  Undefined offset: 10 in /htdocs/wp-content/plugins/ag-custom-admin/plugin.php on line 1357
    PHP Notice:  Undefined offset: 15 in /htdocs/wp-content/plugins/ag-custom-admin/plugin.php on line 1356
    PHP Notice:  Undefined offset: 15 in /htdocs/wp-content/plugins/ag-custom-admin/plugin.php on line 1357
    PHP Notice:  Undefined index: settings.php in /htdocs/wp-content/plugins/ag-custom-admin/plugin.php on line 1336
    PHP Notice:  Undefined index: settings.php in /htdocs/wp-content/plugins/ag-custom-admin/plugin.php on line 1380

    And also every admin page:

    PHP Notice: get_currentuserinfo is <strong>deprecated</strong> since version 4.5! Use wp_get_current_user() instead. in /htdocs/wp-includes/functions.php on line 3658

    WordPress 4.5.1, AG Custom Admin 5.5

    https://wordpress.org/plugins/ag-custom-admin/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,

    Thanks for the logs. These probably do not cause any direct trouble but we should fix them anyway. Before applying the patch, you could try to fix them like this:

    – Open ag-custom-admin/plugin.php
    – Search for “get_currentuserinfo” and replace it with “wp_get_current_user
    – Replace lines 1335 and 1379 with this:

    if($customizationsSet && isset($previousCustomizations[$url])){

    – Replace line 1355 with this:

    if(isset($pc) && isset($pc['submenus']) && isset($s[$key])){

    Let us know the results if you try fixing these. Thanks for reporting

    Thread Starter tokkonopapa

    (@tokkonopapa)

    The following notices were still there:

    PHP Notice:  Undefined offset: 10 in /htdocs/wp-content/plugins/ag-custom-admin/plugin.php on line 1356
    PHP Notice:  Undefined offset: 10 in /htdocs/wp-content/plugins/ag-custom-admin/plugin.php on line 1357
    PHP Notice:  Undefined offset: 15 in /htdocs/wp-content/plugins/ag-custom-admin/plugin.php on line 1356
    PHP Notice:  Undefined offset: 15 in /htdocs/wp-content/plugins/ag-custom-admin/plugin.php on line 1357
    PHP Notice:  Undefined offset: 5 in /htdocs/wp-content/plugins/ag-custom-admin/plugin.php on line 1356
    PHP Notice:  Undefined offset: 5 in /htdocs/wp-content/plugins/ag-custom-admin/plugin.php on line 1357
    PHP Notice:  Undefined offset: 10 in /htdocs/wp-content/plugins/ag-custom-admin/plugin.php on line 1356
    PHP Notice:  Undefined offset: 10 in /htdocs/wp-content/plugins/ag-custom-admin/plugin.php on line 1357
    PHP Notice:  Undefined offset: 15 in /htdocs/wp-content/plugins/ag-custom-admin/plugin.php on line 1356
    PHP Notice:  Undefined offset: 15 in /htdocs/wp-content/plugins/ag-custom-admin/plugin.php on line 1357

    The value of $key was assigned as 5, 10, 15.

    When I replace the line 1355 as bellow, notices disapeared.

    if(isset($pc['submenus'][$key])){

    Thanks for your support.

    That’s great news. We will add the patch for this to the next release. Thank you for your help.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Many PHP notices in Network Admin Dashboard’ is closed to new replies.