Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need to remove the "Extra packages" section from the Docs? #6

Open
overclocked555 opened this issue Oct 9, 2021 · 0 comments
Open

Comments

@overclocked555
Copy link

I am tried installing litecms/news, litecms/news, litecms/slider and litecms/gallery. All of them were not installed, the error text is:

Package litecms/news is abandoned, you should avoid using it. No replacement was suggested.

Full:

# composer require litecms/news
Using version ^2.0 for litecms/news
./composer.json has been updated
Running composer update litecms/news
Loading composer repositories with package information
Updating dependencies
Lock file operations: 1 install, 0 updates, 0 removals
  - Locking litecms/news (2.0.3)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 1 install, 0 updates, 1 removal
  - Downloading litecms/news (2.0.3)
  - Removing litecms/slider (2.0.3)
Deleting C:\dev\OpenServer\domains\lavalite/packages/litecms/slider/ - deleted
  - Installing litecms/news (2.0.3): Extracting archive
Package litecms/news is abandoned, you should avoid using it. No replacement was suggested.
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi

   ErrorException

  array_intersect(): Expected parameter 2 to be an array, null given

  at C:\dev\OpenServer\domains\lavalite\vendor\lavalite\framework\src\Litepie\User\User.php:242
    238▕      */
    239▕     public function setRouteGuard()
    240▕     {
    241▕         $segments = request()->route('guard');
  ➜ 242▕         $guard = array_intersect(array_keys(config('auth.guards')), $segments);
    243▕
    244▕         $guard = (!empty($guard)) ? current($guard) : 'client';
    245▕         $sub = in_array('api', $segments) ? 'api' : 'web';
    246▕

  1   C:\dev\OpenServer\domains\lavalite\vendor\lavalite\framework\src\Litepie\User\User.php:242
      array_intersect()

  2   C:\dev\OpenServer\domains\lavalite\vendor\laravel\framework\src\Illuminate\Support\Facades\Facade.php:261
      Litepie\User\User::setRouteGuard()
Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1

Installation failed, reverting ./composer.json and ./composer.lock to their original content.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant