Skip to content

CP Error when updating to 5.67, empty nav maybe? #12895

@twd3

Description

@twd3

Bug description

I updated from 5.64 to 5.67 and couldn't access the cp. Got some error about order() on null. I think this has to do with the NavBuilder.php file. I can confirm downgrading to 5.66 fixed everything.

How to reproduce

Not to sure, update to 5.67 and try to access the cp? I did notice I have a configured nav with nothing in it. Maybe that is what I'm doing wrong?

Logs

Call to a member function order() on null (View: C:\_statamic\ah-app-elo\vendor\statamic\cms\resources\views\layout.blade.php) (View: C:\_statamic\ah-app-elo\vendor\statamic\cms\resources\views\layout.blade.php) {"userId":"e8e6597b-8b9d-41f4-9015-870b3e46516e","exception":"[object] (Illuminate\\View\\ViewException(code: 0): Call to a member function order() on null (View: C:\\_statamic\\ah-app-elo\\vendor\\statamic\\cms\\resources\\views\\layout.blade.php) (View: C:\\_statamic\\ah-app-elo\\vendor\\statamic\\cms\\resources\\views\\layout.blade.php) at C:\\_statamic\\ah-app-elo\\vendor\\statamic\\cms\\src\\CP\\Navigation\\NavBuilder.php:731)

Environment

Environment
Application Name: AH App
Laravel Version: 12.35.1
PHP Version: 8.3.20
Composer Version: 2.8.8
Environment: local
Debug Mode: ENABLED
URL: ah-app-2025-dbase.test
Maintenance Mode: OFF
Timezone: America/Denver
Locale: en

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

Drivers
Broadcasting: log
Cache: file
Database: mysql
Logs: stack / single
Mail: log
Queue: sync
Session: file

Storage
C:\_statamic\ah-app-elo\public\storage: NOT LINKED

Livewire
Livewire: v3.6.4

Statamic
Addons: 9
Sites: 1
Stache Watcher: Enabled (auto)
Static Caching: Disabled
Version: 5.66.0 PRO <<< AFTER I DOWNGRADED...

Statamic Addons
aryehraber/statamic-logbook: 3.3.0
aryehraber/statamic-uuid: 2.3.0
doefom/currency-fieldtype: 1.4.1
marcorieser/statamic-live-search: 3.0.1
marcorieser/statamic-livewire: 4.5.3
ndx/statamic-bard-color-picker: 2.1.0
pixelastronauts/statamic-autocomplete-address-field: 1.0.0
statamic/collaboration: 1.0.1
statamic/eloquent-driver: 4.33.0

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

Installation

Fresh statamic/statamic site via CLI

Additional details

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions