- Status changed to Fixed
6 months ago 3:25pm 10 June 2024
Some dev environments have strict error rules. The lines below throw a 500 page with our default Lando, Lagoon, Docker setup
Please see patch.
php_1 | NOTICE: PHP message: TypeError: ksort(): Argument #1 ($array) must be of type array, stdClass given in /app/web/modules/contrib/fsa/src/FsaFastly.php on line 63 #0 /app/web/modules/contrib/fsa/src/FsaFastly.php(63): ksort(Object(stdClass))
php_1 | #1 /app/web/modules/contrib/fsa/src/FsaFastly.php(79): Drupal\fastly_streamline_access\FsaFastly->getServiceVersions()
php_1 | #2 /app/web/modules/contrib/fsa/src/FsaFastly.php(288): Drupal\fastly_streamline_access\FsaFastly->getLatestServiceVersion()
php_1 | #3 /app/web/modules/contrib/fsa/src/EventSubscriber/FsaEventSubscriber.php(146): Drupal\fastly_streamline_access\FsaFastly->getAclList()
php_1 | #4 /app/web/modules/contrib/fsa/src/EventSubscriber/FsaEventSubscriber.php(129): Drupal\fastly_streamline_access\EventSubscriber\FsaEventSubscriber->getAclList()
php_1 | #5 /app/web/modules/contrib/fsa/src/EventSubscriber/FsaEventSubscriber.php(162): Drupal\fastly_streamline_access\EventSubscriber\FsaEventSubscriber->getAclIdForName('fsa')
php_1 | #6 /app/web/modules/contrib/fsa/src/EventSubscriber/FsaEventSubscriber.php(199): Drupal\fastly_streamline_access\EventSubscriber\FsaEventSubscriber->addIpToACL()
php_1 | #7 [internal function]: Drupal\fastly_streamline_access\EventSubscriber\FsaEventSubscriber->fsaResponse(Object(Drupal\fastly_streamline_access\Event\FsaTriggerEvent), 'fsa_triggered', Object(Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher))
php_1 | #8 /app/web/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php(142): call_user_func(Array, Object(Drupal\fastly_streamline_access\Event\FsaTriggerEvent), 'fsa_triggered', Object(Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher))
php_1 | #9 /app/web/modules/contrib/fsa/fastly_streamline_access.module(45): Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object(Drupal\fastly_streamline_access\Event\FsaTriggerEvent), Object(Drupal\fastly_streamline_access\Event\FsaTriggerEvent))
php_1 | #10 [internal function]: fastly_streamline_access_user_login(Object(Drupal\user\Entity\User))
php_1 | #11 /app/web/core/lib/Drupal/Core/Extension/ModuleHandler.php(403): call_user_func_array('fastly_streamli...', Array)
php_1 | #12 /app/web/core/modules/user/user.module(473): Drupal\Core\Extension\ModuleHandler->invokeAll('user_login', Array)
....
Fixed
2.7
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.