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

Failing to autoload #14

Closed
fire015 opened this issue May 22, 2014 · 6 comments
Closed

Failing to autoload #14

fire015 opened this issue May 22, 2014 · 6 comments

Comments

@fire015
Copy link
Contributor

fire015 commented May 22, 2014

Using the same code as in the example for CommandExample Jobby is failing to autoload the vendor directory in BackgroundJob.php:

PHP Warning:  require(/home/www/sites/vendor/hellogerard/jobby/vendor/autoload.php): failed to open stream: No such file or directory in /home/www/sites/vendor/hellogerard/jobby/src/Jobby/BackgroundJob.php $
PHP Stack trace:
PHP   1. {main}() /home/www/sites/vendor/hellogerard/jobby/src/Jobby/BackgroundJob.php:0
PHP Fatal error:  require(): Failed opening required '/home/www/sites/vendor/hellogerard/jobby/vendor/autoload.php' (include_path='.:/usr/share/pear:/usr/share/php') in /home/www/sites/vendor/hellogerard/jo$
PHP Stack trace:
PHP   1. {main}() /home/www/sites/vendor/hellogerard/jobby/src/Jobby/BackgroundJob.php:0

Looks like Jobby is looking for the vendor autoload.php script inside it's own directory which doesn't exist as it should be in the root vendor directory (/home/www/sites/vendor/).

@prasenjithaty
Copy link

Ditto. It used to work perfectly on my previous host, but ever since I changed my host it stopped working.

PHP Warning:  require(/home/example.com/public_html/vendor/hellogerard/jobby/vendor/autoload.php): failed to open stream: No such file or directory in /home/example.com/public_html/vendor/hellogerard/jobby/src/Jobby/BackgroundJob.php on line 269

@fire015 Were you able to fix it? @hellogerard Any thoughts?

@fire015
Copy link
Contributor Author

fire015 commented Jun 9, 2014

Have created a pull request to fix this... #15

@hellogerard
Copy link
Member

Merged this PR. Can someone test it by running jobby against the head of master and letting us know if the problem is fixed?

It's odd that this hasn't been a problem before. I wonder what has changed.

@fire015
Copy link
Contributor Author

fire015 commented Jun 10, 2014

Can you tag this please

@hellogerard
Copy link
Member

Wanted to test it first. You should be able to point to master in
composer.json.

On Tuesday, June 10, 2014, Jason notifications@github.com wrote:

Can you tag this please


Reply to this email directly or view it on GitHub
#14 (comment).

Sent from my mobile device.

@hellogerard
Copy link
Member

Released as v2.0.6

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

3 participants