Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Bug "Undefined index" on a brand new install
Avatar
Ulrick PERTIN
Member
sp_UserOfflineSmall Offline
Nov 8, 2016 - 1:08 pm

Hi all.

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

Admins panel >>> Notice: Undefined index: bypasslogout in ...\www\wp-content\plugins\simple-press\admin\panel-admins\forms\spa-admins-your-options-form.php on line 43

Themes panel >>> Notice: Undefined index: parent in ...\www\wp-content\plugins\simple-press\admin\panel-themes\forms\spa-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 ...\www\wp-content\plugins\simple-press\admin\panel-options\support\spa-options-prepare.php on line 30

Global settings + "Update Members Options" >>> Error message on the "User groupes" panel >>> Undefined index: sfsinglemembership in ...\www\wp-content\plugins\simple-press\admin\panel-usergroups\support\spa-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.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Nov 8, 2016 - 1:19 pm

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...

andy-signature.png
YELLOW
SWORDFISH
Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Nov 8, 2016 - 3:28 pm

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

andy-signature.png
YELLOW
SWORDFISH
Avatar
Ulrick PERTIN
Member
sp_UserOfflineSmall Offline
Nov 9, 2016 - 4:26 am

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.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Nov 9, 2016 - 4:32 am

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!

andy-signature.png
YELLOW
SWORDFISH
Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626