October: Declaration of System\Models\File::getPath() should be compatible with October\Rain\Database\Attach\File::getPath($fileName = NULL)

Created on 24 Aug 2019  路  3Comments  路  Source: octobercms/october

(1/1)聽ErrorExceptionDeclaration of System\Models\File::getPath() should be compatible with October\Rain\Database\Attach\File::getPath($fileName = NULL)

(1/1)聽ErrorExceptionDeclaration of System\Models\File::getPath() should be compatible with October\Rain\Database\Attach\File::getPath($fileName = NULL)

i get that error every time right after installing my project from repo

screen:
october-error

cant find any solutions in google, wth is this plz halp

Solution

Delete vendor directory and run "composer install" again and that should work

Review Needed Unconfirmed Bug

Most helpful comment

ty m8 i got this
just delete vendor directory than run "composer install" and its working fine

All 3 comments

@gorny-dev how did you install the project? This is because you're using the latest version of the library repo but not the latest version of the octoberrain/system module.

ty m8 i got this
just delete vendor directory than run "composer install" and its working fine

I've run into the same issue. For me, the solution was to remove the cache files storage/framework/*.php.

Was this page helpful?
0 / 5 - 0 ratings