buddypress / next-template-packs

is this the next BuddyPress template pack?
35 stars 9 forks source link

Notice: Undefined index: activity_dir_layout (and others) #98

Closed slaFFik closed 7 years ago

slaFFik commented 7 years ago

Installed clean WordPress 4.7.2, BuddyPress 2.8.0, master from this repo, defined WP_DEBUG as true, opened home page, clicked Customize in adminbar to change some things and got this:

Notice: Undefined index: activity_dir_layout in ...bp\next\wp-content\plugins\next-template-packs-master\bp-templates\bp-nouveau\includes\functions.php on line 922 Notice: Undefined index: members_dir_layout in ...bp\next\wp-content\plugins\next-template-packs-master\bp-templates\bp-nouveau\includes\functions.php on line 922 Notice: Undefined index: groups_dir_layout in ...bp\next\wp-content\plugins\next-template-packs-master\bp-templates\bp-nouveau\includes\functions.php on line 922 Notice: Undefined index: sites_dir_layout in ...bp\next\wp-content\plugins\next-template-packs-master\bp-templates\bp-nouveau\includes\functions.php on line 922 Notice: Undefined index: sites_dir_tabs in ...bp\next\wp-content\plugins\next-template-packs-master\bp-templates\bp-nouveau\includes\functions.php on line 922

slaFFik commented 7 years ago

It seems there are no checks that the values were saved. Some defaults are required.

slaFFik commented 7 years ago

Also all directories have lots of notices as well.

r-a-y commented 7 years ago

Fixed in commit cfd2d4a and 67c861a.