xiaomlove / nexusphp

A private tracker application base on NexusPHP
https://nexusphp.org
GNU General Public License v2.0
856 stars 178 forks source link

Admin Page error after upgrading to 1.7.32 #141

Closed einverne closed 1 year ago

einverne commented 1 year ago

After upgrading to 1.7.32, I found the following problem when visiting domain.com/nexusphp page.

Symfony
 \ 
Component
 \ 
ErrorHandler
 \ 
Error
 \ 
FatalError
PHP 8.0.26
9.43.0
Declaration of Filament\Support\Components\ViewComponent::view(string $view): static must be compatible with Illuminate\View\Component::view($view, $data = [], $mergeData = [])
xiaomlove commented 1 year ago

I've been getting a lot of feedback on this issue lately. Look at what version of filament you have installed, and the version numbers of php, laravel

composer info |grep -E 'filament|laravel/framework'
einverne commented 1 year ago

PHP version:

❯ php --version
PHP 8.0.26 (cli) (built: Dec  6 2022 15:09:02) ( NTS )
Copyright (c) The PHP Group
Zend Engine v4.0.26, Copyright (c) Zend Technologies
    with Zend OPcache v8.0.26, Copyright (c), by Zend Technologies

And:

❯ composer info |grep -E 'filament|laravel/framework'
filament/filament                     v2.14.2            Effortlessly build TALL-powered adm...
filament/forms                        v2.14.2            Effortlessly build TALL-powered forms.
filament/support                      v2.14.2            Associated helper methods and found...
filament/tables                       v2.14.2            Effortlessly build TALL-powered tab...
laravel/framework                     v9.43.0            The Laravel Framework.
xiaomlove commented 1 year ago

your laravrl version is too high,you should run composer install, not composer update.

einverne commented 1 year ago

Laravel version is the cause, Thank you.