snipe-it icon indicating copy to clipboard operation
snipe-it copied to clipboard

People category not working.

Open FleischKarussel opened this issue 12 years ago • 22 comments

Hello guys,

if I try to open the People Category (http:///admin/users) I get following errors. Does anbody know what todo or how to solve that?

Thank you!

ErrorException Class 'Chumper\Datatable\Facades\DatatableFacade' not found

  1. ErrorException …/­vendor/­laravel/­framework/­src/­Illuminate/­Foundation/­AliasLoader.php64
  2. Illuminate\Exception\Handler handleError <#unknown>0
  3. class_alias …/­vendor/­laravel/­framework/­src/­Illuminate/­Foundation/­AliasLoader.php64
  4. Illuminate\Foundation\AliasLoader load <#unknown>0
  5. spl_autoload_call …/­app/­storage/­views/­4f9c33148dd3050b359a8ae60b5a0fd888
  6. include …/­vendor/­laravel/­framework/­src/­Illuminate/­View/­Engines/­PhpEngine.php38
  7. Illuminate\View\Engines\PhpEngine evaluatePath …/­vendor/­laravel/­framework/­src/­Illuminate/­View/­Engines/­CompilerEngine.php45
  8. Illuminate\View\Engines\CompilerEngine get …/­vendor/­laravel/­framework/­src/­Illuminate/­View/­View.php100
  9. Illuminate\View\View getContents …/­vendor/­laravel/­framework/­src/­Illuminate/­View/­View.php81
  10. Illuminate\View\View render …/­vendor/­laravel/­framework/­src/­Illuminate/­Http/­Response.php70
  11. Illuminate\Http\Response setContent …/­vendor/­symfony/­http-foundation/­Symfony/­Component/­HttpFoundation/­Response.php141
  12. Symfony\Component\HttpFoundation\Response __construct …/­vendor/­laravel/­framework/­src/­Illuminate/­Routing/­Router.php1414
  13. Illuminate\Routing\Router prepare …/­vendor/­laravel/­framework/­src/­Illuminate/­Routing/­Controllers/­Controller.php156
  14. Illuminate\Routing\Controllers\Controller processResponse …/­vendor/­laravel/­framework/­src/­Illuminate/­Routing/­Controllers/­Controller.php126
  15. Illuminate\Routing\Controllers\Controller callAction …/­vendor/­laravel/­framework/­src/­Illuminate/­Routing/­Router.php985
  16. Illuminate\Routing\Router Illuminate\Routing{closure} <#unknown>0
  17. call_user_func_array …/­vendor/­laravel/­framework/­src/­Illuminate/­Routing/­Route.php80
  18. Illuminate\Routing\Route callCallable …/­vendor/­laravel/­framework/­src/­Illuminate/­Routing/­Route.php47
  19. Illuminate\Routing\Route run …/­vendor/­laravel/­framework/­src/­Illuminate/­Routing/­Router.php1016
  20. Illuminate\Routing\Router dispatch …/­vendor/­laravel/­framework/­src/­Illuminate/­Foundation/­Application.php576
  21. Illuminate\Foundation\Application dispatch …/­vendor/­laravel/­framework/­src/­Illuminate/­Foundation/­Application.php552
  22. Illuminate\Foundation\Application run …/­public/­index.php49

FleischKarussel avatar Apr 08 '14 10:04 FleischKarussel

Can you show me the output of your composer php composer.phar install? Are you able to see any other sections, or is this the only one not working?

snipe avatar Apr 08 '14 11:04 snipe

$ php composer.phar install Loading composer repositories with package information Installing dependencies (including require-dev) from lock file Nothing to install or update Generating autoload files Assets published for package: barryvdh/laravel-debugbar

The people section is the only one not working (so far), but I'm able to create new users.

FleischKarussel avatar Apr 08 '14 12:04 FleischKarussel

its happening for me too

rashivkp avatar Apr 09 '14 05:04 rashivkp

@rashivkp please provide the answers to the questions I asked the OP. I am not psychic. I'll do what I can to help you, but I need more information.

snipe avatar Apr 09 '14 08:04 snipe

@snipe sorry, its the same output as FleischKarussel given you. And I don't found anything thats not working except this.

$ compser install Loading composer repositories with package information Installing dependencies (including require-dev) from lock file Nothing to install or update Generating autoload files Assets published for package: barryvdh/laravel-debugbar

rashivkp avatar Apr 22 '14 06:04 rashivkp

@rashivkp can you tell me whether your apache settings allow htaccess directory overrides with mod_rewrite? Also, what are the permissions of your files?

snipe avatar Apr 22 '14 06:04 snipe

yes, I had put AllowOverride All in configuration,

I have tried using below command to see if its a problem with permission. but the error was there. $ sudo php -S localhost:8005

drwxr-xr-x 12 rashi rashi 4096 Apr 4 10:55 app -rwxr-xr-x 1 rashi rashi 2425 Apr 4 10:55 artisan drwxr-xr-x 2 rashi rashi 4096 Apr 4 11:11 bin drwxr-xr-x 2 rashi rashi 4096 Apr 4 10:55 bootstrap -rwxr-xr-x 1 rashi rashi 930 Apr 4 10:55 composer.json -rw-r--r-- 1 rashi rashi 95952 Apr 4 10:55 composer.lock -rwxr-xr-x 1 rashi rashi 412 Apr 4 10:55 CONTRIBUTING.md -rw-r--r-- 1 rashi rashi 34519 Apr 4 10:55 LICENSE -rwxr-xr-x 1 rashi rashi 566 Apr 4 10:55 phpunit.xml drwxr-xr-x 5 rashi www-data 4096 Apr 4 10:55 public -rw-r--r-- 1 rashi rashi 9811 Apr 22 11:36 README.md -rwxr-xr-x 1 rashi rashi 519 Apr 4 10:55 server.php -rw-r--r-- 1 rashi rashi 196 Apr 4 10:55 travis.yml drwxr-xr-x 24 rashi rashi 4096 Apr 22 11:28 vendor

drwxr-xr-x 2 rashi rashi 4096 Apr 4 10:55 commands drwxr-xr-x 7 rashi rashi 4096 Apr 4 10:55 config drwxr-xr-x 4 rashi rashi 4096 Apr 4 10:55 controllers drwxr-xr-x 4 rashi rashi 4096 Apr 4 10:55 database -rwxr-xr-x 1 rashi rashi 3005 Apr 4 10:55 filters.php drwxr-xr-x 3 rashi rashi 4096 Apr 4 10:55 lang drwxr-xr-x 2 rashi rashi 4096 Apr 4 10:55 models -rwxr-xr-x 1 rashi rashi 13769 Apr 4 10:55 routes.php drwxr-xr-x 2 rashi rashi 4096 Apr 4 10:55 start drwxrwxr-x 7 rashi www-data 4096 Apr 4 10:55 storage drwxr-xr-x 2 rashi rashi 4096 Apr 4 10:55 tests -rw-r--r-- 1 rashi rashi 155 Apr 4 10:55 validators.php drwxr-xr-x 7 rashi rashi 4096 Apr 4 10:55 views

rashivkp avatar Apr 22 '14 06:04 rashivkp

Can you tell me what line 149 of app/config/app.php says?

snipe avatar Apr 22 '14 06:04 snipe

'Datatable' => 'Chumper\Datatable\Facades\DatatableFacade',

rashivkp avatar Apr 22 '14 06:04 rashivkp

Which package did you download? Clone from master, clone from develop, or did you grab a release? If so, which number?

snipe avatar Apr 22 '14 06:04 snipe

clone from develop, ad8b95f07c53278316bcc

rashivkp avatar Apr 22 '14 06:04 rashivkp

Hmm... I do see the following note on the Chumper repo: https://github.com/Chumper/Datatable#important

There was a pull request to change that line: https://github.com/snipe/snipe-it/commit/efad5db082d1461ea26556fad2f1671a49dc1480

I'm wondering if for some reason you're grabbing a pre-2.2 version of Datatables.

Can you try changing that line back to to 'Datatable' => 'Chumper\Datatable\Facades\Datatable',

and re-running. That's the only thing I can think of that's changed.

snipe avatar Apr 22 '14 06:04 snipe

haa,, yes it works now. :dancer:

rashivkp avatar Apr 22 '14 06:04 rashivkp

Interesting... the package.json should be pulling dev-master of Datatables, so I'm not sure why that fix broke things for you.

snipe avatar Apr 22 '14 06:04 snipe

anyway its not an issue,, I have some problem with composer update

$ composer update Loading composer repositories with package information Updating dependencies (including require-dev) Your requirements could not be resolved to an installable set of packages.

Problem 1 - chumper/datatable dev-master requires orchestra/testbench 2.1.* -> satisfiable by orchestra/testbench[2.1.x-dev, v2.1.0, v2.1.1]. - chumper/datatable dev-master requires orchestra/testbench 2.1.* -> satisfiable by orchestra/testbench[2.1.x-dev, v2.1.0, v2.1.1]. - orchestra/testbench 2.1.x-dev requires laravel/framework 4.1.* -> satisfiable by laravel/framework[4.1.x-dev]. - orchestra/testbench v2.1.0 requires laravel/framework 4.1.* -> satisfiable by laravel/framework[4.1.x-dev]. - orchestra/testbench v2.1.1 requires laravel/framework 4.1.* -> satisfiable by laravel/framework[4.1.x-dev]. - Conclusion: don't install laravel/framework 4.1.x-dev - Installation request for chumper/datatable dev-master -> satisfiable by chumper/datatable[dev-master].

rashivkp avatar Apr 22 '14 06:04 rashivkp

Can report exact same issue, Chumper with change to DatabaseFacade requires new Orchestra version which requires new Laravel version which causes update to puke, since installed Laravel is 4.0.*.

jakemcgraw avatar May 05 '14 15:05 jakemcgraw

I'll take a look at this tonight, sorry for the hassle guys.

snipe avatar May 05 '14 23:05 snipe

What happens when you bump the lavavel version on composer.json to "laravel/framework": "4.1.*",?

snipe avatar May 06 '14 00:05 snipe

I'm going to try to upgrade the package to Laravel 4.1 tonight, since this seems to be a recurring problem. Hang tight please.

snipe avatar May 06 '14 01:05 snipe

I've updated the package to use Laravel 4.1. Can you all try running:

php composer.phar dump-autoload

and then php composer.phar update

And let me know if it works for you?

If you run into a weird error like

Error Output: PHP Fatal error:  Call to undefined method Illuminate\Foundation\Application::registerCoreContainerAliases() in /var/www/  
html/vendor/laravel/framework/src/Illuminate/Foundation/start.php on line 106 

Then try removing bootstrap/compiled.php and your vendors dir, and re-running php composer.phar update.

Because of a change in the way environmental variables are handled in 4.1, you'll need to make a change to your start.php to use only hostnames, not URLs, but otherwise everything should go smoothly. (I hope.)

I'm setting up Travis-CI on this tonight as well, even though we don't have any real unit tests yet, just to make sure the setup passes with new pull requests.

Again, apologies for the hassle.

@jakemcgraw - I know you mentioned adding the calendar functionality. The changes I pushed through to master/develop shouldn't monkey with that too much. The upgrade was pretty painless, and affected files you likely wouldn't be modifying.

snipe avatar May 06 '14 04:05 snipe