question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

cakephp + composer problems

See original GitHub issue

What version of Cloud Foundry and CF CLI are you using? (i.e. What is the output of running cf curl /v2/info && cf version?

jeandeklerk at Jeans-MacBook-Pro in /tmp/my_app_name
$ cf curl /v2/info
{
   "name": "",
   "build": "",
   "support": "https://support.run.pivotal.io",
   "version": 0,
   "description": "Cloud Foundry sponsored by Pivotal",
   "authorization_endpoint": "https://login.run.pivotal.io",
   "token_endpoint": "https://uaa.run.pivotal.io",
   "min_cli_version": "6.22.0",
   "min_recommended_cli_version": "latest",
   "api_version": "2.74.0",
   "app_ssh_endpoint": "ssh.run.pivotal.io:2222",
   "app_ssh_host_key_fingerprint": "e7:13:4e:32:ee:39:62:df:54:41:d7:f7:8b:b2:a7:6b",
   "app_ssh_oauth_client": "ssh-proxy",
   "routing_endpoint": "https://api.run.pivotal.io/routing",
   "logging_endpoint": "wss://loggregator.run.pivotal.io:443",
   "doppler_logging_endpoint": "wss://doppler.run.pivotal.io:443",
   "user": "d96e6ba9-bd4d-486e-b7eb-0f2eb0df8967"
}
jeandeklerk at Jeans-MacBook-Pro in /tmp/my_app_name
$ cf version
cf version 6.22.1+6b7af9c-2016-09-24

What version of the buildpack you are using?

Whatever is on PWS.

If you were attempting to accomplish a task, what was it you were attempting to do?

Push the generic bake app (the thing cakephp prebuilds as a starter project).

What did you expect to happen?

It runs properly.

What was the actual behavior?

It can’t find vendor/autoloader.php.

Fatal error: require(): Failed opening required '/home/vcap/app/htdocs/vendor/autoload.php' (include_path='.:') in /private/tmp/my_app_name/bin/cake.php on line 31

Furthermore, when I cf ssh in I see that /home/vcap/app/htdocs is entirely missing a vendor folder, despite bake giving me a composer.json.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:33 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
pburkholdercommented, Jan 22, 2018

#243 might be related

1reaction
sclevinecommented, Jun 23, 2017

Closing this due to inactivity.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Trouble installing via composer - Cake Software Foundation, Inc.
Hi, I'm trying to add a new new composer package to my project (twilio/sdk) but I get this error no matter what I...
Read more >
How to Fix Cakephp 4 Composer Install Error - Stack Overflow
Having issues installing all packages for cakephp 4.0 via Composer. Running a fresh wamp server install on Windows with PHP 7.4.0.
Read more >
cakephp/cakephp - Packagist
You can install CakePHP into your project using Composer. If you're starting a new project, we recommend using the app skeleton as a...
Read more >
How to Install CakePHP 3 Using Composer step by step
1) You must have PHP 5.5.9 or greater. 2) mbstring extension and intl extension must be enabled. Make sure these lines are enable...
Read more >
Update Composer.json - CakeDC
Before updating composer.json file, it would be good to get the latest version ... You need to find the specific CakePHP 4 versions...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found