fisharebest / webtrees

Online genealogy
https://webtrees.net
GNU General Public License v3.0
429 stars 294 forks source link

PHP Error 'failed opening required ... /vendor/autoload.php' and Release 2.1.17 tar file missing 'vendor' directory #4889

Closed jjarokergc closed 9 months ago

jjarokergc commented 9 months ago

Hello, I am attempting to update my puppet module for Webtrees and am confused by a missing 'vendor' directory in the release tar file. A fresh installation on Ubuntu 22 produces the error message:

==> nginx/webtrees.staging.error.log <==
2023/10/08 21:26:19 [error] 11635#11635: *1 FastCGI sent in stderr: "PHP message: PHP Warning:  require(/var/www/webtrees.staging/webtrees-2.1.17/vendor/autoload.php): Failed to open stream: No such file or directory in /var/www/webtrees.staging/webtrees-2.1.17/index.php on line 29PHP message: PHP Fatal error:  Uncaught Error: Failed opening required '/var/www/webtrees.staging/webtrees-2.1.17/vendor/autoload.php' (include_path='.:/usr/share/php') in /var/www/webtrees.staging/webtrees-2.1.17/index.php:29
Stack trace:
#0 {main}
  thrown in /var/www/webtrees.staging/webtrees-2.1.17/index.php on line 29" while reading response header from upstream, client: 192.168.1.15, server: webtrees.staging, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php-fpm.sock:", host: "webtrees.staging"

The puppet module installs webtrees 2.0.19 successfully, but I notice that the release file webtrees-2.1.17.tar.gz is missing a vendor directory while the release file webtrees-2.1.17.zip (a ZIP file) contains this vendor directory.

Is this a mistake in the release?

fisharebest commented 9 months ago

The .tar.gz file contains just the source code.

The .zip file contains the release code. This includes the third-party libraries (vendor), compiled language files, and excludes test/development scripts, etc.

You want the .zip.

To use the .tar.gz (or the latest development code from git), you would need to install composer and then run composer install.