When I create a node (in Drupal 10.0.0) that is using a custom component (created with JFU) on a field and this field has read-only permissions set with the Field Permissions module (https://www.drupal.org/project/field_permissions) , it returns a blank page when i save the node.
I have debug mode enabled so I can see the error attached here.

El sitio web encontró un error inesperado. Vuelva a intentarlo más tarde.

Error: Cannot use object of type Drupal\Core\StringTranslation\TranslatableMarkup as array in jfu_proccess_inline_image() (line 358 of modules/contrib/jfu/jfu.module).
call_user_func_array() (Line: 114)
Drupal\Core\Form\FormSubmitter->executeSubmitHandlers() (Line: 52)
Drupal\Core\Form\FormSubmitter->doSubmitForm() (Line: 595)
Drupal\Core\Form\FormBuilder->processForm() (Line: 323)
Drupal\Core\Form\FormBuilder->buildForm() (Line: 48)
Drupal\Core\Entity\EntityFormBuilder->getForm() (Line: 391)
Drupal\group\Entity\Controller\GroupRelationshipController->createForm()
call_user_func_array() (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 580)
Drupal\Core\Render\Renderer->executeInRenderContext() (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext() (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 163)
Symfony\Component\HttpKernel\HttpKernel->handleRaw() (Line: 74)
Symfony\Component\HttpKernel\HttpKernel->handle() (Line: 58)
Drupal\Core\StackMiddleware\Session->handle() (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle() (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass() (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle() (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle() (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle() (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle() (Line: 675)
Drupal\Core\DrupalKernel->handle() (Line: 19)

Comments

kamel_araujo created an issue. See original summary.

kamel_araujo’s picture

Issue summary: View changes
davidcr’s picture

Assigned: Unassigned » davidcr

  • DavidCR committed 43183abd on 1.1.x
    Issue #3374484: Error when using Field Permissions with JFU
    
davidcr’s picture

Status: Active » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.