statamic-rad-pack / runway

Eloquently manage your database models in Statamic.
https://statamic.com/runway
MIT License
107 stars 42 forks source link

Call to undefined method Statamic\Auth\File\User::published() #535

Closed jbrhel closed 4 days ago

jbrhel commented 6 days ago

Description

After updating to version 7.2, I am getting the following error: Call to undefined method Statamic\Auth\File\User::published()

The problem is in the call on the line: statamic-rad-pack/runway/src/Actions/Publish.php(25)

Steps to reproduce

  1. Go to CP to the Users module.
  2. Click on the "Select all" checkbox (see attached screenshot).
  3. It raises the error as described above.

Screenshot_28_06_2024__16_35

I have to mention that I'm using two types of auth guards defined in config/auth.php:

    'guards' => [
        'web' => [
            'driver' => 'session',
            'provider' => 'users',
        ],

        'statamic' => [
            'driver' => 'session',
            'provider' => 'statamic',
        ]
    ],

The web guard (users provider) is the one I'm controlling using Runway config/runway.php.

    'resources' => [
        \App\Models\User::class => [
            'name' => 'Attendees',
            'cp_icon' => 'user',
        ],
    ],

Environment

Environment Application Name: Statamic Laravel Version: 11.13.0 PHP Version: 8.3.8 Composer Version: 2.7.7 Environment: local Debug Mode: ENABLED URL: teloclick.cz.test Maintenance Mode: OFF Timezone: Europe/Prague Locale: cs

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

Drivers Broadcasting: null Cache: redis Database: mysql Logs: stack / rollbar, single Mail: smtp Queue: sync Session: file

Statamic Addons: 1 Sites: 1 Stache Watcher: Disabled Static Caching: Disabled Version: 5.11.0 PRO

Statamic Addons statamic-rad-pack/runway: 7.2.0

github-actions[bot] commented 4 days ago

Released as part of v7.5.2.