Open Cybrarist opened 5 days ago
the application goes to google and redirects back, then the following errors shows
Typed property ChrisReedIO\Socialment\SocialmentPlugin::$createUserClosure must not be accessed before initialization
require the plugin. composer require chrisreedio/socialment
composer require chrisreedio/socialment
install the plugin php artisan socialment:install
php artisan socialment:install
require the provider composer require socialiteproviders/google
composer require socialiteproviders/google
add the event listener, and the plugin to the admin panel
protected $listen = [ Registered::class => [ SendEmailVerificationNotification::class, ], \SocialiteProviders\Manager\SocialiteWasCalled::class => [ // ... other providers \SocialiteProviders\Google\GoogleExtendSocialite::class."@handle", ],];
update tailwind configs "./vendor/chrisreedio/socialment/resources/**/*.blade.php",
"./vendor/chrisreedio/socialment/resources/**/*.blade.php",
add the pluging to the panel
\ChrisReedIO\Socialment\SocialmentPlugin::make()->registerProvider( 'google' , 'fab-google','Google' ),
trying to login
v3.9.0
8.2
10.45.1 and 10.47.0
macOS, Linux
suggested fix in file vendor/chrisreedio/socialment/src/SocialmentPlugin.php:33
vendor/chrisreedio/socialment/src/SocialmentPlugin.php:33
update it to the following:
public ?Closure $createUserClosure=null;
The fix also worked for me 🙏
Same problem here - the fix works for me too.
What happened?
the application goes to google and redirects back, then the following errors shows
How to reproduce the bug
require the plugin.
composer require chrisreedio/socialment
install the plugin
php artisan socialment:install
require the provider
composer require socialiteproviders/google
add the event listener, and the plugin to the admin panel
update tailwind configs
"./vendor/chrisreedio/socialment/resources/**/*.blade.php",
add the pluging to the panel
trying to login
Package Version
v3.9.0
PHP Version
8.2
Laravel Version
10.45.1 and 10.47.0
Which operating systems does with happen with?
macOS, Linux
Notes
suggested fix in file
vendor/chrisreedio/socialment/src/SocialmentPlugin.php:33
update it to the following: