Problem/Motivation
The login page shows PHP warnings related to Undefined array key social_networks in vartheme_bs5_preprocess_login_with().
In addition, the expected social auth icons (Facebook, Google, etc.) do not load, and foreach() fails because the expected array is null.

Steps to reproduce
- Enable one or more Social Auth modules (e.g., Social Auth Google, Facebook) and disable the Gin Login module.
- Visit the login page (/user/login) after enabling social login.
- Observe: PHP warning about Undefined array key
social_networksand social auth icons do not appear.
Proposed resolution
- Update the
vartheme_bs5_preprocess_login_with()function to use$variables['networks']instead ofsocial_networks, as per Social Auth module changes. - Check if the array is set and iterable before looping.
- Provide a custom image path to render on UI.
- Update the Varbase social auth component that used in
login-with.html.twigto usenetworksvariable instead ofsocial_networks.
Remaining tasks
- ✅ File an issue about this project
- ✅ Addition/Change/Update/Fix to this project
- ✅ Testing to ensure no regression
- ➖ Automated unit/functional testing coverage
- ➖ Developer Documentation support on feature change/addition
- ➖ User Guide Documentation support on feature change/addition
- ➖ UX/UI designer responsibilities
- ➖ Accessibility and Readability
- ✅ Code review from 1 Varbase core team member
- ✅ Full testing and approval
- ✅ Credit contributors
- ✅ Review with the product owner
- ✅ Update Release Notes and Update Helper on new feature change/addition
- ✅ Release varbase-10.1.0-alpha2, vartheme_bs5-4.0.0-alpha4
Varbase update type
- ✅ No Update
- ➖ Optional Update
- ➖ Forced Update
- ➖ Forced Update if Unchanged
User interface changes
API changes
- N/A
Data model changes
- N/A
Release notes snippet
| Comment | File | Size | Author |
|---|---|---|---|
| #12 | Log-in-vxb-06-23-2025_01_04_PM.png | 100.59 KB | rajab natshah |
| login-error.png | 90.25 KB | n.ghunaim |
Issue fork vartheme_bs5-3530711
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments
Comment #2
n.ghunaim commentedComment #3
n.ghunaim commentedComment #4
n.ghunaim commentedComment #5
n.ghunaim commentedComment #6
n.ghunaim commentedComment #8
rajab natshahComment #9
rajab natshahComment #11
rajab natshahComment #12
rajab natshahComment #13
rajab natshahComment #14
rajab natshah✅ Released vartheme_bs5-4.0.0-alpha4
Comment #16
rajab natshah✅ Released varbase-10.1.0-alpha2