outl1ne / nova-page-manager

Static page and region manager for Laravel Nova - designed for headless CMS's.
MIT License
178 stars 38 forks source link

"Invalid locale specified (de)" after updating to Nova 4.32.11 #172

Closed Napia closed 5 days ago

Napia commented 8 months ago

After updating to PHP 8.2, Laravel 10 and Nova 4.32.11 pages are not accessible anymore in the Nova Backend with error message "Invalid locale specified (de)".

nova-page-manager.php: 'locales' => ['de' => 'Deutsch'],

It worked before, and it works with 'locales' => ['en' => 'English']

Thank you for helping out!

Napia commented 8 months ago

->rulesFor($firstLocale, ['required', 'max:255']) in the fields method in src/Nova/Resources/Page.php is apparently breaking it. Version 5.9.0 still works.

RibesAlexandre commented 6 months ago

Hi,

I met the same problem, any solution to fix it ?

Thanks

Tarpsvo commented 5 days ago

Nova-translatable 2.3.0 hopefully resolves this issue.