Support Forum

Bug "Undefined index" on a brand new install

UP Ulrick PERTIN
Ulrick PERTIN
Member

Hi all.

I have 2 bugs on a brand new install (just with the sample data) :

Admins panel >>> Notice: Undefined index: bypasslogout in …wwwwp-contentpluginssimple-pressadminpanel-adminsformsspa-admins-your-options-form.php on line 43

Themes panel >>> Notice: Undefined index: parent in …wwwwp-contentpluginssimple-pressadminpanel-themesformsspa-themes-list-form.php on line 86

And 2 others bug as soon as I update some options :

Global settings + “Update Global Options” >>> Error message on the “Options” panel >>> Notice: Undefined index: blockroles in …wwwwp-contentpluginssimple-pressadminpanel-optionssupportspa-options-prepare.php on line 30

Global settings + “Update Members Options” >>> Error message on the “User groupes” panel >>> Undefined index: sfsinglemembership in …wwwwp-contentpluginssimple-pressadminpanel-usergroupssupportspa-usergroups-prepare.php on line 20

I’ve made some test on “spa-usergroups-prepare.php” and I’ve found :

 – before a click on Global settings + “Update Members Options”, $sfmemberopts array has this values :

array (size=3)
  ‘sfcheckformember’ => boolean true
  ‘sfsinglemembership’ => boolean false
  ‘sfhidestatus’ => boolean true

– after a click on Global settings + “Update Members Options”, $sfmemberopts array has this values :

array (size=2)
  ‘sfcheckformember’ => boolean true
  ‘sfhidestatus’ => boolean true

‘sfsinglemembership’ is not defined anymore after the first update. For sure it’s the same reason for the others bugs.

4 Answers

New Answer

YS Yellow Swordfish
Yellow Swordfish
Member

Good timing as I am working on notices at the moment – not that I have seen these ones locally.
Where are you seeing these? Are you displaying them on the screen? Or are you checking the log file? If on the screen we do recommend that you turn them off as it is very insecure to show these paths publicly and any host that leaves screen display on has clearly got something wrong in the setup procedures.

I will look into these tonight thanks…

YS Yellow Swordfish
Yellow Swordfish
Member

All cleared up for the future – thanks. But there was nothing that serious there – they were just notices.

UP Ulrick PERTIN
Ulrick PERTIN
Member

It was a local install on wamp and the error messages only show when I use the standard left menu of WP. If I use the included menu of SP, no warning at all (but the value are still missing).

Warning messages are deactivated on the production server so it’s all good for me if those errors are not serious.

Thanks.

YS Yellow Swordfish
Yellow Swordfish
Member

Nothing serious. Those were old, well established option values that had been missed in the install. All would have corrected itself after a few runs but it is always good to find them and get them put right. I thank you for bringing them to our attention.

And good news on your server too. Sounds like the WAMP php.ini is showing notices which you may or may not find useful!