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

People category not working. #131

Closed
FleischKarussel opened this issue Apr 8, 2014 · 22 comments
Closed

People category not working. #131

FleischKarussel opened this issue Apr 8, 2014 · 22 comments

Comments

@FleischKarussel
Copy link

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
@snipe
Copy link
Owner

snipe commented Apr 8, 2014

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?

@FleischKarussel
Copy link
Author

$ 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.

@rashivkp
Copy link

rashivkp commented Apr 9, 2014

its happening for me too

@snipe
Copy link
Owner

snipe commented Apr 9, 2014

@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.

@rashivkp
Copy link

@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

@snipe
Copy link
Owner

snipe commented Apr 22, 2014

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

@rashivkp
Copy link

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

@snipe
Copy link
Owner

snipe commented Apr 22, 2014

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

@rashivkp
Copy link

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

@snipe
Copy link
Owner

snipe commented Apr 22, 2014

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

@rashivkp
Copy link

clone from develop, ad8b95f

@snipe
Copy link
Owner

snipe commented Apr 22, 2014

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:
efad5db

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.

@rashivkp
Copy link

haa,, yes it works now. 💃

@snipe
Copy link
Owner

snipe commented Apr 22, 2014

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

@rashivkp
Copy link

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].

@jakemcgraw
Copy link

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.*.

@snipe
Copy link
Owner

snipe commented May 5, 2014

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

@snipe
Copy link
Owner

snipe commented May 6, 2014

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

@snipe
Copy link
Owner

snipe commented May 6, 2014

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
Copy link
Owner

snipe commented May 6, 2014

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
Copy link
Owner

snipe commented Jun 5, 2014

Can I close this issue?

@ghost
Copy link

ghost commented Jun 6, 2014

yes

----- Original Message -----

From: "snipe" [email protected]
To: "snipe/snipe-it" [email protected]
Sent: Friday, June 6, 2014 12:34:41 AM
Subject: Re: [snipe-it] People category not working. (#131)

Can I close this issue?


Reply to this email directly or view it on GitHub .


Prompt Softech Business Disclaimer: The information contained in this message may be confidential and/or proprietary, and legally protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any retention, dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and permanently deleting it from your computer. Thank you, Prompt Softech.

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

4 participants