Problem/Motivation

When enabling "Enable Paragraph view mode field on this paragraph type." and saving, I get this white screen and error:

The website encountered an unexpected error. Please try again later.

InvalidArgumentException: $string ("") must be a string. in Drupal\Core\StringTranslation\TranslatableMarkup->__construct() (line 132 of core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php).

Comments

stewest created an issue. See original summary.

sayco’s picture

Hi, thanks for reporting. Could you go to the /admin/reports/dblog on your site and post here a full stack trace? It will be easier for me to debug and solve the issue.

stewest’s picture

Status: Active » Closed (cannot reproduce)

Thanks @sayco

I seems this may be more to do with this issue.
https://www.drupal.org/forum/support/upgrading-drupal/2018-04-29/invalid...

I'll close for now as I don't have the module currently.

Nihar Mandal’s picture

Warning: Undefined array key "title" in Drupal\user\PermissionHandler->buildPermissionsYaml() (line 182 of C:\xampp\htdocs\drupal\core\modules\user\src\PermissionHandler.php)
#0 C:\xampp\htdocs\drupal\core\includes\bootstrap.inc(347): _drupal_error_handler_real(2, 'Undefined array...', 'C:\\xampp\\htdocs...', 182)
#1 C:\xampp\htdocs\drupal\core\modules\user\src\PermissionHandler.php(182): _drupal_error_handler(2, 'Undefined array...', 'C:\\xampp\\htdocs...', 182)
#2 C:\xampp\htdocs\drupal\core\modules\user\src\PermissionHandler.php(112): Drupal\user\PermissionHandler->buildPermissionsYaml()
#3 C:\xampp\htdocs\drupal\core\modules\user\src\PermissionHandler.php(123): Drupal\user\PermissionHandler->getPermissions()
#4 C:\xampp\htdocs\drupal\core\modules\system\src\Form\ModulesListForm.php(291): Drupal\user\PermissionHandler->moduleProvidesPermissions('address')
#5 C:\xampp\htdocs\drupal\core\modules\system\src\Form\ModulesListForm.php(194): Drupal\system\Form\ModulesListForm->buildRow(Array, Object(Drupal\Core\Extension\Extension), 'Drupal')
#6 [internal function]: Drupal\system\Form\ModulesListForm->buildForm(Array, Object(Drupal\Core\Form\FormState))
#7 C:\xampp\htdocs\drupal\core\lib\Drupal\Core\Form\FormBuilder.php(536): call_user_func_array(Array, Array)
#8 C:\xampp\htdocs\drupal\core\lib\Drupal\Core\Form\FormBuilder.php(283): Drupal\Core\Form\FormBuilder->retrieveForm('system_modules', Object(Drupal\Core\Form\FormState))
#9 C:\xampp\htdocs\drupal\core\lib\Drupal\Core\Controller\FormController.php(73): Drupal\Core\Form\FormBuilder->buildForm(Object(Drupal\system\Form\ModulesListForm), Object(Drupal\Core\Form\FormState))
#10 [internal function]: Drupal\Core\Controller\FormController->getContentResult(Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\Core\Routing\RouteMatch))
#11 C:\xampp\htdocs\drupal\core\lib\Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array(Array, Array)
#12 C:\xampp\htdocs\drupal\core\lib\Drupal\Core\Render\Renderer.php(580): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#13 C:\xampp\htdocs\drupal\core\lib\Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure))
#14 C:\xampp\htdocs\drupal\core\lib\Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array)
#15 C:\xampp\htdocs\drupal\vendor\symfony\http-kernel\HttpKernel.php(169): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#16 C:\xampp\htdocs\drupal\vendor\symfony\http-kernel\HttpKernel.php(81): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1)
#17 C:\xampp\htdocs\drupal\core\lib\Drupal\Core\StackMiddleware\Session.php(58): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#18 C:\xampp\htdocs\drupal\core\lib\Drupal\Core\StackMiddleware\KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#19 C:\xampp\htdocs\drupal\core\modules\page_cache\src\StackMiddleware\PageCache.php(106): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#20 C:\xampp\htdocs\drupal\core\modules\page_cache\src\StackMiddleware\PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#21 C:\xampp\htdocs\drupal\core\lib\Drupal\Core\StackMiddleware\ReverseProxyMiddleware.php(48): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#22 C:\xampp\htdocs\drupal\core\lib\Drupal\Core\StackMiddleware\NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#23 C:\xampp\htdocs\drupal\vendor\stack\builder\src\Stack\StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#24 C:\xampp\htdocs\drupal\core\lib\Drupal\Core\DrupalKernel.php(718): Stack\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#25 C:\xampp\htdocs\drupal\index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request))
#26 {main}
.