- Issue created by @aman_lnwebworks
- 🇮🇳India aman_lnwebworks
I have added MR!14 and also I have uploaded patch for this issue
please review it once
Thank you !!
- 🇺🇸United States MegaKeegMan
I can confirm that this patch fixes the problem. Thanks!
We installed the Social Post Facebook module but encountered an error during configuration.
This issue occurred specifically while using the Social Post Facebook module.
Here is the related issue link:
https://www.drupal.org/project/social_post_facebook/issues/3498531
🐛
PHP Fatal error: Type of FacebookPostAuthManager::$client must be mixed, other declaration issues
Active
To resolve the issue, we applied the provided patch, which fixed the original problem. However, after reloading the page for the Social API module, a new error occurred:
Error: Typed property Drupal\social_api\SocialApiDataHandler::$sessionPrefix must not be accessed before initialization in Drupal\social_api\SocialApiDataHandler->getSessionPrefix() (line 47 of modules\contrib\social_api\src\SocialApiDataHandler.php).
1: Install the Social Post Facebook module using Composer.
2: Enable the following modules in your environment:
Social API
Social Post
Social Post Facebook
3: Navigate to the configuration page for the Social Post Facebook module:
/admin/config/social-api/social-post/facebook/users.
The following error appears:
Fatal error: Type of Drupal\social_post_facebook\FacebookPostAuthManager::$client must be mixed (as in class Drupal\social_api\AuthManager\OAuth2Manager) in D:\laragon\www\drupal10\web\modules\contrib\social_post_facebook\src\FacebookPostAuthManager.php on line 13
Apply the patch available at:
https://www.drupal.org/files/issues/2025-01-09/3498531-social-post-faceb... →
.
Reload the page: /admin/config/social-api/social-post/facebook/users.
After applying the patch, the following error appears:
Error: Typed property Drupal\social_api\SocialApiDataHandler::$sessionPrefix must not be accessed before initialization in Drupal\social_api\SocialApiDataHandler->getSessionPrefix() (line 47 of modules\contrib\social_api\src\SocialApiDataHandler.php).
An image illustrating the actions taken is attached.
Active
4.0
Code
I have added MR!14 and also I have uploaded patch for this issue
please review it once
Thank you !!
I can confirm that this patch fixes the problem. Thanks!