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

Works only on Ajax Requests #3

Closed
fedeisas opened this issue Oct 1, 2013 · 3 comments
Closed

Works only on Ajax Requests #3

fedeisas opened this issue Oct 1, 2013 · 3 comments

Comments

@fedeisas
Copy link

fedeisas commented Oct 1, 2013

Any idea why this is only showing profiling information for AJAX requests? I tried everything without luck. Thanks!

@itsgoingd
Copy link
Owner

Hey, I assume you are using Clockwork with Laravel 4? Try following:

  • check if data is collected for normal application requests, on each request a new json file should be created in app/storage/clockwork directory, containing data about the request
  • check if correct headers are sent, open network tab in dev tools while accessing your site and check if X-Clockwork-Id and X-Clockwork-Version headers are present in your app responses
  • try accessing "http://your-host/__clockwork/ID", where ID is the value of X-Clockwork-Id header, this should return the contents of the json file

@itsgoingd
Copy link
Owner

We fixed this over IRC, I forgot what exactly was the problem, if you remember please post the solution here, might help someone in the future.

@fedeisas
Copy link
Author

My App::before() was not getting trigged due to a syntax error on blade (I had an additional @Stop in my partials).

Thanks a lot!

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

2 participants