Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

“TypeError strip_tags() “ after creation of a set #11162

Closed
SkHCrusher opened this issue Nov 24, 2024 · 0 comments
Closed

“TypeError strip_tags() “ after creation of a set #11162

SkHCrusher opened this issue Nov 24, 2024 · 0 comments

Comments

@SkHCrusher
Copy link

Bug description

I have two collections. One for “Posts” and one for my websites”. In both cases I have replaced the standard content with a “Bard” field. I have created a template for a grid list for the pages (based on a set) - that works great. Now I wanted to do the same for my posts and created the set via the backend in exactly the same way as for the pages.
After saving, none of my pages work anymore and the following error appears:

Internal Server Error
TypeError
strip_tags(): Argument #1 ($string) must be of type string, array given

vendor\statamic\cms\src\Support\Str.php :84
return strip_tags($html);

How to reproduce

Meine "post.yaml" aus dem Ordner "resources > blueprints > collections > posts"

after update:

  main:
    display: Hauptteil
    sections:
      -
        fields:
          -
            handle: title
            field:
              type: text
              required: true
              validate:
                - required
          -
            handle: content
            field:
              buttons:
                - h2
                - h3
                - bold
                - italic
                - unorderedlist
                - orderedlist
                - removeformat
                - quote
                - anchor
                - image
                - table
                - horizontalrule
                - alignleft
                - aligncenter
                - alignright
                - alignjustify
              remove_empty_nodes: false
              type: bard
              display: Inhalt
              smart_typography: true
              reading_time: true
              word_count: true
              container: cms_dateien
              always_show_set_button: true
              sets:
                set_grid_list:
                  display: 'Grid Liste'
                  instructions: 'Ein Action Button auf voller breite'
                  icon: dashboard-layout
                  sets:
                    grid_list:
                      display: 'Grid Liste'
                      icon: dashboard-layout
                      fields:
                        -
                          handle: links
                          field:
                            type: replicator
                            display: Links
                            sets:
                              neue_setgruppe:
                                display: 'Neue Setgruppe'
                                sets:
                                  link_item:
                                    display: 'Link Element'
                                    fields:
                                      -
                                        handle: title
                                        field:
                                          type: text
                                          display: Titel
                                          validate:
                                            - required
  sidebar:
    display: Sidebar
    sections:
      -
        fields:
          -
            handle: slug
            field:
              type: slug
              localizable: true
              validate: 'max:200'
          -
            handle: author
            field:
              type: users
              display: Author
              max_items: 1
              mode: default
              validate:
                - required
          -
            handle: teaser_image
            field:
              max_files: 1
              container: cms_dateien
              type: assets
              display: Teaser
              mode: grid
          -
            handle: date
            field:
              type: date
              required: true
              default: now
              validate:
                - required
          -
            handle: categories
            field:
              type: terms
              taxonomies:
                - categories
              display: Categories
              mode: select
title: Post```

before update:
```tabs:
  main:
    display: Hauptteil
    sections:
      -
        fields:
          -
            handle: title
            field:
              type: text
              required: true
              validate:
                - required
          -
            handle: content
            field:
              buttons:
                - h2
                - h3
                - bold
                - italic
                - unorderedlist
                - orderedlist
                - removeformat
                - quote
                - anchor
                - image
                - table
                - horizontalrule
                - alignleft
                - aligncenter
                - alignright
                - alignjustify
              remove_empty_nodes: false
              type: bard
              display: Inhalt
              smart_typography: true
              reading_time: true
              word_count: true
              container: cms_dateien
              always_show_set_button: true
  sidebar:
    display: Sidebar
    sections:
      -
        fields:
          -
            handle: slug
            field:
              type: slug
              localizable: true
              validate: 'max:200'
          -
            handle: author
            field:
              type: users
              display: Author
              max_items: 1
              mode: default
              validate:
                - required
          -
            handle: teaser_image
            field:
              max_files: 1
              container: cms_dateien
              type: assets
              display: Teaser
              mode: grid
          -
            handle: date
            field:
              type: date
              required: true
              default: now
              validate:
                - required
          -
            handle: categories
            field:
              type: terms
              taxonomies:
                - categories
              display: Categories
              mode: select
title: Post```

Only the “sets” block was added by configuring the blueprint via the backend



### Logs

```shell
[2024-11-24 20:10:54] local.ERROR: strip_tags(): Argument #1 ($string) must be of type string, array given {"userId":1,"exception":"[object] (TypeError(code: 0): strip_tags(): Argument #1 ($string) must be of type string, array given at C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\statamic\\cms\\src\\Support\\Str.php:84)
[stacktrace]
#0 C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\statamic\\cms\\src\\Support\\Str.php(84): strip_tags(Array)
#1 C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\statamic\\cms\\src\\Modifiers\\CoreModifiers.php(2468): Statamic\\Support\\Str::stripTags(Array, Array)
#2 C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\statamic\\cms\\src\\Modifiers\\Modify.php(197): Statamic\\Modifiers\\CoreModifiers->stripTags(Array, Array, Array)
#3 C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\statamic\\cms\\src\\Modifiers\\Modify.php(154): Statamic\\Modifiers\\Modify->runModifier('strip_tags', Array)
#4 C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\statamic\\cms\\src\\Modifiers\\Modify.php(131): Statamic\\Modifiers\\Modify->modify('strip_tags', Array)
#5 C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\statamic\\cms\\src\\View\\Antlers\\Language\\Runtime\\ModifierManager.php(131): Statamic\\Modifiers\\Modify->__call('strip_tags', Array)
#6 C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\statamic\\cms\\src\\View\\Antlers\\Language\\Runtime\\Sandbox\\Environment.php(1341): Statamic\\View\\Antlers\\Language\\Runtime\\ModifierManager::evaluate(Object(Statamic\\Fields\\Value), Object(Statamic\\View\\Antlers\\Language\\Runtime\\Sandbox\\Environment), Object(Statamic\\View\\Antlers\\Language\\Nodes\\Modifiers\\ModifierChainNode), Array)
#7 C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\statamic\\cms\\src\\View\\Antlers\\Language\\Runtime\\Sandbox\\Environment.php(1357): Statamic\\View\\Antlers\\Language\\Runtime\\Sandbox\\Environment->applyModifiers(Object(Statamic\\Fields\\Value), Object(Statamic\\View\\Antlers\\Language\\Nodes\\Modifiers\\ModifierChainNode))
#8 C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\statamic\\cms\\src\\View\\Antlers\\Language\\Runtime\\Sandbox\\Environment.php(1598): Statamic\\View\\Antlers\\Language\\Runtime\\Sandbox\\Environment->adjustValue(Object(Statamic\\Fields\\Value), Object(Statamic\\View\\Antlers\\Language\\Nodes\\VariableNode))
#9 C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\statamic\\cms\\src\\View\\Antlers\\Language\\Runtime\\Sandbox\\Environment.php(948): Statamic\\View\\Antlers\\Language\\Runtime\\Sandbox\\Environment->getValue(Object(Statamic\\View\\Antlers\\Language\\Nodes\\VariableNode))
#10 C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\statamic\\cms\\src\\View\\Antlers\\Language\\Runtime\\Sandbox\\Environment.php(296): Statamic\\View\\Antlers\\Language\\Runtime\\Sandbox\\Environment->process(Array)
#11 C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\statamic\\cms\\src\\View\\Antlers\\Language\\Runtime\\Sandbox\\Environment.php(319): Statamic\\View\\Antlers\\Language\\Runtime\\Sandbox\\Environment->processStatements(Array)
#12 C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\statamic\\cms\\src\\View\\Antlers\\Language\\Runtime\\NodeProcessor.php(1925): Statamic\\View\\Antlers\\Language\\Runtime\\Sandbox\\Environment->evaluate(Array)
#13 C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\statamic\\cms\\src\\View\\Antlers\\Language\\Runtime\\NodeProcessor.php(2335): Statamic\\View\\Antlers\\Language\\Runtime\\NodeProcessor->reduce(Array)
#14 C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\statamic\\cms\\src\\View\\Antlers\\Language\\Runtime\\NodeProcessor.php(750): Statamic\\View\\Antlers\\Language\\Runtime\\NodeProcessor->reduce(Array)
#15 C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\statamic\\cms\\src\\View\\Antlers\\Language\\Runtime\\RuntimeParser.php(381): Statamic\\View\\Antlers\\Language\\Runtime\\NodeProcessor->render(Array)
#16 C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\statamic\\cms\\src\\View\\Antlers\\Language\\Runtime\\RuntimeParser.php(718): Statamic\\View\\Antlers\\Language\\Runtime\\RuntimeParser->renderText('\\n        {{ pos...', Array)
#17 C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\statamic\\cms\\src\\View\\Antlers\\Antlers.php(31): Statamic\\View\\Antlers\\Language\\Runtime\\RuntimeParser->parse('\\n        {{ pos...', Array)
#18 C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\statamic\\cms\\src\\Tags\\Tags.php(211): Statamic\\View\\Antlers\\Antlers->parse('\\n        {{ pos...', Array)
#19 C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\statamic\\cms\\src\\View\\Antlers\\Antlers.php(22): Statamic\\Tags\\Tags->Statamic\\Tags\\{closure}(Object(Statamic\\View\\Antlers\\Antlers))
#20 C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\laravel\\framework\\src\\Illuminate\\Support\\Facades\\Facade.php(358): Statamic\\View\\Antlers\\Antlers->usingParser(Object(Statamic\\View\\Antlers\\Language\\Runtime\\RuntimeParser), Object(Closure))
#21 C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\statamic\\cms\\src\\Tags\\Tags.php(209): Illuminate\\Support\\Facades\\Facade::__callStatic('usingParser', Array)
#22 C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\statamic\\cms\\src\\View\\Antlers\\Language\\Runtime\\NodeProcessor.php(1772): Statamic\\Tags\\Tags->parse(Array)
#23 C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\statamic\\cms\\src\\View\\Antlers\\Language\\Runtime\\NodeProcessor.php(750): Statamic\\View\\Antlers\\Language\\Runtime\\NodeProcessor->reduce(Array)
#24 C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\statamic\\cms\\src\\View\\Antlers\\Language\\Runtime\\RuntimeParser.php(381): Statamic\\View\\Antlers\\Language\\Runtime\\NodeProcessor->render(Array)
#25 C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\statamic\\cms\\src\\View\\Antlers\\Language\\Runtime\\RuntimeParser.php(773): Statamic\\View\\Antlers\\Language\\Runtime\\RuntimeParser->renderText('{{ partial:nav ...', Array)
#26 C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\statamic\\cms\\src\\View\\Antlers\\Engine.php(93): Statamic\\View\\Antlers\\Language\\Runtime\\RuntimeParser->parseView('C:\\\\Users\\\\Crushe...', '{{ partial:nav ...', Array)
#27 C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\laravel\\framework\\src\\Illuminate\\View\\View.php(208): Statamic\\View\\Antlers\\Engine->get('C:\\\\Users\\\\Crushe...', Array)
#28 C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\laravel\\framework\\src\\Illuminate\\View\\View.php(191): Illuminate\\View\\View->getContents()
#29 C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\laravel\\framework\\src\\Illuminate\\View\\View.php(160): Illuminate\\View\\View->renderContents()
#30 C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\statamic\\cms\\src\\View\\View.php(104): Illuminate\\View\\View->render()
#31 C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\statamic\\cms\\src\\Http\\Responses\\DataResponse.php(150): Statamic\\View\\View->render()
#32 C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\statamic\\cms\\src\\Http\\Responses\\DataResponse.php(42): Statamic\\Http\\Responses\\DataResponse->contents()
#33 C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\statamic\\cms\\src\\Structures\\Page.php(420): Statamic\\Http\\Responses\\DataResponse->toResponse(Object(Illuminate\\Http\\Request))
#34 C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(902): Statamic\\Structures\\Page->toResponse(Object(Illuminate\\Http\\Request))
#35 C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(887): Illuminate\\Routing\\Router::toResponse(Object(Illuminate\\Http\\Request), Object(Statamic\\Structures\\Page))
#36 C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(807): Illuminate\\Routing\\Router->prepareResponse(Object(Illuminate\\Http\\Request), Object(Statamic\\Structures\\Page))
#37 C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))
#38 C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\statamic\\cms\\src\\StaticCaching\\Middleware\\Cache.php(78): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#39 C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\statamic\\cms\\src\\StaticCaching\\Middleware\\Cache.php(59): Statamic\\StaticCaching\\Middleware\\Cache->handleRequest(Object(Illuminate\\Http\\Request), Object(Closure))
#40 C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\laravel\\framework\\src\\Illuminate\\Cache\\Lock.php(131): Statamic\\StaticCaching\\Middleware\\Cache->Statamic\\StaticCaching\\Middleware\\{closure}()
#41 C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\statamic\\cms\\src\\StaticCaching\\Middleware\\Cache.php(59): Illuminate\\Cache\\Lock->block(30, Object(Closure))
#42 C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Statamic\\StaticCaching\\Middleware\\Cache->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#43 C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\statamic\\cms\\src\\Http\\Middleware\\AuthGuard.php(14): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#44 C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Statamic\\Http\\Middleware\\AuthGuard->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#45 C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\statamic\\cms\\src\\Http\\Middleware\\AddViewPaths.php(19): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#46 C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Statamic\\Http\\Middleware\\AddViewPaths->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#47 C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\statamic\\cms\\src\\Http\\Middleware\\Localize.php(38): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#48 C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Statamic\\Http\\Middleware\\Localize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#49 C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\statamic\\cms\\src\\Http\\Middleware\\HandleToken.php(13): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#50 C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Statamic\\Http\\Middleware\\HandleToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#51 C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\statamic\\cms\\src\\Http\\Middleware\\StacheLock.php(29): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#52 C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Statamic\\Http\\Middleware\\StacheLock->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#53 C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\SubstituteBindings.php(51): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#54 C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#55 C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken.php(88): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#56 C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#57 C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\laravel\\framework\\src\\Illuminate\\View\\Middleware\\ShareErrorsFromSession.php(49): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#58 C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\View\\Middleware\\ShareErrorsFromSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#59 C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(121): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#60 C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\laravel\\framework\\src\\Illuminate\\Session\\Middleware\\StartSession.php(64): Illuminate\\Session\\Middleware\\StartSession->handleStatefulRequest(Object(Illuminate\\Http\\Request), Object(Illuminate\\Session\\Store), Object(Closure))
#61 C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Session\\Middleware\\StartSession->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#62 C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse.php(37): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#63 C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\AddQueuedCookiesToResponse->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#64 C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\laravel\\framework\\src\\Illuminate\\Cookie\\Middleware\\EncryptCookies.php(75): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#65 C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Cookie\\Middleware\\EncryptCookies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#66 C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#67 C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(807): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#68 C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(786): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))
#69 C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(750): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route))
#70 C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(739): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))
#71 C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(201): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))
#72 C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(144): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))
#73 C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\statamic\\cms\\src\\Http\\Middleware\\StopImpersonating.php(12): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#74 C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Statamic\\Http\\Middleware\\StopImpersonating->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#75 C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\statamic\\cms\\src\\Http\\Middleware\\DisableFloc.php(17): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#76 C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Statamic\\Http\\Middleware\\DisableFloc->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#77 C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\statamic\\cms\\src\\Http\\Middleware\\CheckMultisite.php(15): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#78 C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Statamic\\Http\\Middleware\\CheckMultisite->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#79 C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\statamic\\cms\\src\\Http\\Middleware\\CheckComposerJsonScripts.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#80 C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Statamic\\Http\\Middleware\\CheckComposerJsonScripts->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#81 C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\statamic\\cms\\src\\Http\\Middleware\\PoweredByHeader.php(18): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#82 C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Statamic\\Http\\Middleware\\PoweredByHeader->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#83 C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\livewire\\livewire\\src\\Features\\SupportDisablingBackButtonCache\\DisableBackButtonCacheMiddleware.php(19): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#84 C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Livewire\\Features\\SupportDisablingBackButtonCache\\DisableBackButtonCacheMiddleware->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#85 C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#86 C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#87 C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#88 C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#89 C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\TrimStrings.php(51): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#90 C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#91 C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\laravel\\framework\\src\\Illuminate\\Http\\Middleware\\ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#92 C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#93 C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance.php(110): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#94 C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#95 C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\laravel\\framework\\src\\Illuminate\\Http\\Middleware\\HandleCors.php(49): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#96 C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Http\\Middleware\\HandleCors->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#97 C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\laravel\\framework\\src\\Illuminate\\Http\\Middleware\\TrustProxies.php(58): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#98 C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Http\\Middleware\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#99 C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\InvokeDeferredCallbacks.php(22): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#100 C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(183): Illuminate\\Foundation\\Http\\Middleware\\InvokeDeferredCallbacks->handle(Object(Illuminate\\Http\\Request), Object(Closure))
#101 C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))
#102 C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(176): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))
#103 C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(145): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#104 C:\\Users\\Crusher\\Herd\\hallow-tech\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Application.php(1190): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#105 C:\\Users\\Crusher\\Herd\\hallow-tech\\public\\index.php(17): Illuminate\\Foundation\\Application->handleRequest(Object(Illuminate\\Http\\Request))
#106 C:\\Program Files\\Herd\\resources\\app.asar.unpacked\\resources\\valet\\server.php(139): require('C:\\\\Users\\\\Crushe...')
#107 {main}
"}

Environment

Environment
Application Name: Hallow-Tech
Laravel Version: 11.31.0
PHP Version: 8.3.13
Composer Version: 2.7.7
Environment: local
Debug Mode: ENABLED
URL: hallow-tech.test
Maintenance Mode: OFF
Timezone: UTC
Locale: de

Cache
Config: NOT CACHED
Events: NOT CACHED
Routes: NOT CACHED
Views: CACHED

Drivers
Broadcasting: log
Cache: database
Database: mysql
Logs: stack / single
Mail: ses
Queue: database
Session: database

Livewire
Livewire: v3.5.12

Statamic
Addons: 5
Sites: 1
Stache Watcher: Enabled (auto)
Static Caching: Disabled
Version: 5.39.0 PRO

Statamic Addons
aryehraber/statamic-captcha: 1.13.0
aryehraber/statamic-logbook: 3.3.0
hallow-tech/short-urls: 1.0.1
statamic/eloquent-driver: 4.18.0
thoughtco/statamic-plausible-analytics: 2.0.2

Statamic Eloquent Driver
Asset Containers: file
Assets: file
Blueprints: file
Collection Trees: file
Collections: file
Entries: file
Forms: file
Global Sets: file
Global Variables: file
Navigation Trees: file
Navigations: file
Revisions: file
Sites: eloquent
Taxonomies: file
Terms: file
Tokens: file

Installation

Existing Laravel app

Additional details

In general, the system works great except for the error with this change, which I can't explain.

I have inserted a “dump($html)” in Str.php before line 84 and get the following result.
Here you can see that it is an array with only one element... but therefore does not work.

  0 => Statamic\Fields\Values {#4861 ▼
    #instance: Illuminate\Support\Collection {#4856 ▼
      #items: array:2 [▼
        "type" => "text"
        "text" => Statamic\Fields\Value {#4852 ▶}
      ]
      #escapeWhenCastingToString: false
    }
  }
]```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant