Skip to content

Error: Constant CAKE_CORE_INCLUDE_PATH already defined #357

Description

@sbrl

Hello,

I've just downloaded the latest version and attempted to run it, but I'm running into the following error:

018/12/31 21:28:49 [error] 24014#24014: *58 FastCGI sent in stderr: "PHP message: PHP Notice:  Constant CAKE_CORE_INCLUDE_PATH already defined in /srv/www/sonerezh/app/webroot/index.php on line 64
PHP message: PHP Warning:  include(/srv/www/sonerezh/Vendor/cakephp/cakephp/lib/Cake/bootstrap.php): failed to open stream: No such file or directory in /srv/www/sonerezh/app/webroot/index.php on line 94
PHP message: PHP Warning:  include(): Failed opening '/srv/www/sonerezh/Vendor/cakephp/cakephp/lib/Cake/bootstrap.php' for inclusion (include_path='.:/usr/share/php') in /srv/www/sonerezh/app/webroot/index.php on line 94
PHP message: PHP Fatal error:  CakePHP core could not be found. Check the value of CAKE_CORE_INCLUDE_PATH in APP/webroot/index.php. It should point to the directory containing your /cake core directory and your /vendors root directory. in /srv/www/sonerezh/app/webroot/index.php on line 99" while reading response header from upstream, client: x.y.z.w, server: , request: "GET /sonerezh/install HTTP/2.0", upstream: "fastcgi://unix:/run/php/php7.0-fpm.sock:", host: "home.starbeamrainbowlabs.co.uk"

....the Vendor directory is inside app/, but Sonerezh isn't looking in the right place. A quick ln -s app/Vendor Vendor has provided a quick workaround, but I thought that you'd like to know about this.

System details:

  • Raspberry Pi
  • Nginx
  • PHP-FPM

Additional details available upon request :-)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions