Skip to content

Object of class Statamic\Fields\Value could not be converted to int #732

@HannesEURESA

Description

@HannesEURESA

Description

We are using {{nocache}} in our Menue. So if we are opening a site created by Runway, we get the Error as shown in the title. If we remove the nocache Tag, everything works fine.

Also if we are using {{nocache}} on the antlers of the product.antlers.html itself, it doesn´t work aswell.
That is the important part. We need to use it inside, because we also need to render some small Livewire Components on the Template aswell.

It seem that created Sites by Runway can´t solve the nocache Files?

Image Image

Steps to reproduce

Template Built up as:

  1. Header (includes the nocache for the logged in Users
  2. Slot
  3. Footer

The Slot represents the /product/id Page created with Runway.

So any other Site of our website works correctly with the nocache, but not on the /product/id pages created by Runway.

Environment

Environment
Application Name: XYZ
Laravel Version: 12.34.0
PHP Version: 8.3.22
Composer Version: 2.8.9
Environment: local
Debug Mode: ENABLED
URL: XYZ
Maintenance Mode: OFF
Timezone: Europe/Berlin
Locale: de

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

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

Storage
public/storage: NOT LINKED

Locales
Installed: cs, da, de, en, nb, nl, nn
LaravelLang\Lang\Plugin: 15.26.1
Locales Version: 2.10.0
Protected: de, en
Publisher Version: 16.7.0

Livewire
Livewire: v3.6.4

Statamic
Addons: 10
Sites: 1
Stache Watcher: Disabled
Static Caching: half
Version: 5.66.0 PRO

Statamic Addons
marcorieser/statamic-live-search: 3.0.1
marcorieser/statamic-livewire: 4.5.3
plugrbase/statamic-maintenance-mode: 1.07
rias/statamic-redirect: 3.12.0
statamic-rad-pack/runway: 8.6.4
statamic/eloquent-driver: 4.33.0
stillat/antlers-components: 2.6.0
studio1902/statamic-peak-browser-appearance: 3.6.1
studio1902/statamic-peak-seo: 8.25.1
studio1902/statamic-peak-tools: 7.3.2

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions