TypeError after fresh install and click to Add account on user edit page

Created on 20 February 2023, over 1 year ago

Problem/Motivation

I decided to try out the module but as soon as I try to set twitter account to a user, this is what's displayed:

The website encountered an unexpected error. Please try again later.
TypeError: Abraham\TwitterOAuth\TwitterOAuth::__construct(): Argument #1 ($consumerKey) must be of type string, null given, called in /app/web/modules/contrib/social_post_twitter/src/Plugin/Network/TwitterPost.php on line 39 in Abraham\TwitterOAuth\TwitterOAuth->__construct() (line 53 of /app/vendor/abraham/twitteroauth/src/TwitterOAuth.php).
Abraham\TwitterOAuth\TwitterOAuth->__construct(NULL, NULL) (Line: 39)
Drupal\social_post_twitter\Plugin\Network\TwitterPost->initSdk() (Line: 151)
Drupal\social_api\Plugin\NetworkBase->getSdk() (Line: 127)
Drupal\social_post_twitter\Controller\TwitterPostController->redirectToProvider()
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 580)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 169)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 81)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 713)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

I was using Drupal 9.5.2 and PHP 8.1.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

3.0

Component

Code

Created by

πŸ‡ΈπŸ‡°Slovakia kaszarobert

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024