Jump to content

Edit History

Klemart3D

Klemart3D

Exactly the same for me but in french:

Notice à la ligne 199 du fichier /vagrant/httpdocs/controllers/admin/AdminAccessController.php
[8] Undefined index: name

If, line 199 of AdminAccessController.php file  I do a

var_dump($a);

it seems some values doesn't have expected "name" attribute:

bug-profils.png.77a4bd15081f32400833b1dbe81c097d.png

So to fix warning tentatively, you can do:

if (isset($a['name']) && isset($b['name'])) {
    return strnatcmp($a['name'], $b['name']);
}

To know which module is, you can add into Module.php line 2643 (into getModulesAccessesByIdProfile method) before "return $roles" :

var_dump($roles);die();

It give me a list of modules with their permissions :

modules-permissions.png.d4f243b607c0ac0db78fce07a98d6d21.png

In my case, the two last ("ETRANSACTIONSEPAYMENT" and "MENUFOOTER") doesn't have a name or an id.

I tried reinstall them but it doesn't works better, so I deleted lines of ps_authorization_role table with the name of module into `slug` column and now.. it works like a charm !

But seems to be an old bug , I found another unsresolved topic from march 2017 here:

Klemart3D

Klemart3D

Exactly the same for me but in french:

Notice à la ligne 199 du fichier /vagrant/httpdocs/controllers/admin/AdminAccessController.php
[8] Undefined index: name

If, line 199 of AdminAccessController.php file  I do a

var_dump($a);

it seems some values doesn't have expected "name" attribute:

bug-profils.png.77a4bd15081f32400833b1dbe81c097d.png

So to fix warning tentatively, you can do:

if (isset($a['name']) && isset($b['name'])) {
    return strnatcmp($a['name'], $b['name']);
}

To know which module is, you can add into Module.php line 2643 (into getModulesAccessesByIdProfile method) before "return $roles" :

var_dump($roles);die();

It give me a list of modules with their permissions :

modules-permissions.png.d4f243b607c0ac0db78fce07a98d6d21.png

In my case, the two last ("ETRANSACTIONSEPAYMENT" and "MENUFOOTER") doesn't have a name or an id.

I tried reinstall them but it doesn't works better. I will investigate more later...

But seems to be an old bug , I found another unsresolved topic from march 2017 here:

Klemart3D

Klemart3D

Exactly the same for me but in french:

Notice à la ligne 199 du fichier /vagrant/httpdocs/controllers/admin/AdminAccessController.php
[8] Undefined index: name

If, line 199 of AdminAccessController.php file  I do a

var_dump($a);

it seems some values doesn't have expected "name" attribute:

bug-profils.png.77a4bd15081f32400833b1dbe81c097d.png

So to fix warning tentatively, you can do:

if (isset($a['name']) && isset($b['name'])) {
    return strnatcmp($a['name'], $b['name']);
}

I will investigate why later...

But seems to be an old bug , I found another unsresolved topic from march 2017 here:

Klemart3D

Klemart3D

Exactly the same for me but in french:

Notice à la ligne 199 du fichier /vagrant/httpdocs/controllers/admin/AdminAccessController.php
[8] Undefined index: name

If, line 199 of AdminAccessController.php file  I do a

var_dump($a);

it seems some values doesn't have expected "name" attribute:

bug-profils.png.77a4bd15081f32400833b1dbe81c097d.png

I will investigate why...

But seems to be an old bug , I found another unsresolved topic from march 2017 here:

×
×
  • Create New...