Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

handler dependent on social plugin #4199

Closed
nesjett opened this issue Jun 18, 2020 · 5 comments
Closed

handler dependent on social plugin #4199

nesjett opened this issue Jun 18, 2020 · 5 comments
Assignees
Labels
type: bug A problem that should not be happening
Milestone

Comments

@nesjett
Copy link
Contributor

nesjett commented Jun 18, 2020

require_once(e_PLUGIN . "social/includes/social_login_config.php");

This line requires a file from social plugin. This means that even if you are not using this plugin, you cannot delete it from the plugins folder or the system will crash.

Error shown when deleting social plugin:

Fatal error: require_once(): Failed opening required '../e107_plugins/social/includes/social_login_config.php' (include_path='.;C:/*/php/pear') in C:*\e107_handlers\user_handler.php on line 1113

@Jimmi08
Copy link
Contributor

Jimmi08 commented Jun 18, 2020

#1379

@Moc Moc added this to the e107 2.3.0 milestone Jun 18, 2020
@Moc Moc added the type: bug A problem that should not be happening label Jun 18, 2020
@Deltik
Copy link
Member

Deltik commented Jun 18, 2020

Easiest way to fix this would be to move ./e107_plugins/social/includes/social_login_config.php into the core somewhere, but I'm not sure where.

@CaMer0n CaMer0n modified the milestones: e107 2.3.0, Future Dec 1, 2020
@Moc
Copy link
Member

Moc commented Dec 21, 2021

@Deltik A new social login handler in e107_handlers?

@Deltik
Copy link
Member

Deltik commented Dec 21, 2021

Yes, moving that class social_login_config to e107_handlers makes sense.

@Deltik Deltik self-assigned this Dec 27, 2021
@Deltik Deltik added the status: pending This issue is being worked on or is in the backlog to be fixed. label Dec 27, 2021
@Deltik
Copy link
Member

Deltik commented Dec 28, 2021

Never mind. Upon reviewing the code I wrote, I violated the Law of Demeter by making social_login_config aware of Hybridauth when it should only be working with an e_pref. I'll try to decouple these things in my fix.

Deltik added a commit to Deltik/e107 that referenced this issue Dec 28, 2021
@Deltik Deltik removed the status: pending This issue is being worked on or is in the backlog to be fixed. label Dec 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug A problem that should not be happening
Projects
None yet
Development

No branches or pull requests

5 participants