1.7.49.2 doesn't run out of the box
Hi there,
I'm new and (wanting to) try Grav.
I tried zip extraction, compose and git install, 1.7.49.2 always end up with
PHP Fatal error: Uncaught Error: Failed opening required '/var/www/html/vendor/composer/../../system/defines.php' (include_path='.:/usr/local/lib/php') in /var/www/html/vendor/composer/autoload_real.php:42\nStack trace:\n#0 /var/www/html/vendor/composer/autoload_real.php(46): {closure}()\n#1 /var/www/html/vendor/autoload.php(25): ComposerAutoloaderInit8d681f74b0bd1f5099bb8fbf788ab3eb::getLoader()\n#2 /var/www/html/index.php(30): require('...')\n#3 {main}\n thrown in /var/www/html/vendor/composer/autoload_real.php on line 42
Extracting 1.7.49.1's zip worked fine.
Cheers
'compose and git install' ? if you download the zip, it already has all the vendor libraries bundled there via the package builder.. nothing to do.
Indeed. What I meant is I tried all 3 installation methods an none worked on my system.
Extracting 1.7.49.1's zip worked straight up.
However, once I updated from 1.7.49.1 to 1.7.49.2 in the UI, the terminal commands (like installing a theme) also got borked on my end.
I can confirm that the composer install approach is borked. Not sure what, but i'll take a look at that.. Git works though:
workspace/testing/grav-composer-test via 🐘 v8.3.24
➜ git clone -b master https://github.com/getgrav/grav.git grav-git-test
Cloning into 'grav-git-test'...
remote: Enumerating objects: 74163, done.
remote: Counting objects: 100% (150/150), done.
remote: Compressing objects: 100% (61/61), done.
remote: Total 74163 (delta 107), reused 101 (delta 89), pack-reused 74013 (from 3)
Receiving objects: 100% (74163/74163), 28.91 MiB | 4.65 MiB/s, done.
Resolving deltas: 100% (47888/47888), done.
workspace/testing/grav-composer-test via 🐘 v8.3.24 took 7.3s
➜ cd grav-git-test
grav-git-test on master via 🐘 v8.3.24
➜ composer install --no-dev -o
Installing dependencies from lock file
Verifying lock file contents can be installed on current platform.
Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. It is recommended that you run `composer update` or `composer update <package name>`.
Package operations: 52 installs, 0 updates, 0 removals
- Installing composer/ca-bundle (1.5.8): Extracting archive
- Installing composer/semver (1.7.2): Extracting archive
- Installing doctrine/cache (1.13.0): Extracting archive
- Installing doctrine/deprecations (1.1.5): Extracting archive
- Installing doctrine/collections (1.8.0): Extracting archive
- Installing symfony/polyfill-ctype (v1.33.0): Extracting archive
- Installing donatj/phpuseragentparser (v1.10.0): Extracting archive
- Installing webmozart/assert (1.11.0): Extracting archive
- Installing dragonmantank/cron-expression (v3.4.0): Extracting archive
- Installing symfony/polyfill-iconv (v1.33.0): Extracting archive
- Installing symfony/polyfill-mbstring (v1.33.0): Extracting archive
- Installing erusev/parsedown (1.7.4): Extracting archive
- Installing erusev/parsedown-extra (0.8.1): Extracting archive
- Installing psr/log (1.1.4): Extracting archive
- Installing filp/whoops (2.18.4): Extracting archive
- Installing getgrav/cache (v2.0.1): Extracting archive
- Installing getgrav/image (v4.1.0): Extracting archive
- Installing ralouphie/getallheaders (3.0.3): Extracting archive
- Installing psr/http-message (1.1): Extracting archive
- Installing guzzlehttp/psr7 (1.9.1): Extracting archive
- Installing itsgoingd/clockwork (v5.3.4): Extracting archive
- Installing seld/cli-prompt (1.0.4): Extracting archive
- Installing league/climate (3.10.0): Extracting archive
- Installing matthiasmullie/path-converter (1.1.3): Extracting archive
- Installing matthiasmullie/minify (1.3.75): Extracting archive
- Installing symfony/polyfill-php80 (v1.33.0): Extracting archive
- Installing symfony/var-dumper (v4.4.47): Extracting archive
- Installing maximebf/debugbar (v1.23.6): Extracting archive
- Installing miljar/php-exif (v0.6.5): Extracting archive
- Installing monolog/monolog (1.27.1): Extracting archive
- Installing multiavatar/multiavatar-php (v1.0.5): Extracting archive
- Installing psr/http-factory (1.1.0): Extracting archive
- Installing nyholm/psr7 (1.8.2): Extracting archive
- Installing nyholm/psr7-server (1.1.0): Extracting archive
- Installing psr/cache (1.0.1): Extracting archive
- Installing psr/container (1.1.1): Extracting archive
- Installing psr/http-server-handler (1.0.2): Extracting archive
- Installing psr/http-server-middleware (1.0.2): Extracting archive
- Installing psr/simple-cache (1.0.1): Extracting archive
- Installing rhukster/dom-sanitizer (1.0.7): Extracting archive
- Installing symfony/yaml (v4.4.45): Extracting archive
- Installing symfony/contracts (v1.10.0): Extracting archive
- Installing symfony/event-dispatcher (v4.4.44): Extracting archive
- Installing pimple/pimple (v3.5.0): Extracting archive
- Installing rockettheme/toolbox (1.6.5): Extracting archive
- Installing symfony/console (v4.4.49): Extracting archive
- Installing symfony/http-client (v4.4.51): Extracting archive
- Installing symfony/polyfill-php74 (v1.33.0): Extracting archive
- Installing symfony/polyfill-php81 (v1.33.0): Extracting archive
- Installing symfony/process (v4.4.44): Extracting archive
- Installing twig/twig (v1.44.8): Extracting archive
- Installing willdurand/negotiation (3.1.0): Extracting archive
Package maximebf/debugbar is abandoned, you should avoid using it. Use php-debugbar/php-debugbar instead.
Package codeception/phpunit-wrapper is abandoned, you should avoid using it. No replacement was suggested.
Generating optimized autoload files
26 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
grav-git-test on master via 🐘 v8.3.24
➜ bin/grav install
Read local config from /Users/***/.grav/config
Installing vendor dependencies
Installing dependencies from lock file
Verifying lock file contents can be installed on current platform.
Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. It is recommended that you run `composer update` or `composer update <package name>`.
Nothing to install, update or remove
Package maximebf/debugbar is abandoned, you should avoid using it. Use php-debugbar/php-debugbar instead.
Package codeception/phpunit-wrapper is abandoned, you should avoid using it. No replacement was suggested.
Generating optimized autoload files
26 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
Cloning Bits
============
Cloning into 'user/plugins/problems'...
remote: Enumerating objects: 138, done.
remote: Counting objects: 100% (138/138), done.
remote: Compressing objects: 100% (134/134), done.
remote: Total 138 (delta 1), reused 121 (delta 0), pack-reused 0 (from 0)
Receiving objects: 100% (138/138), 763.62 KiB | 3.47 MiB/s, done.
Resolving deltas: 100% (1/1), done.
SUCCESS cloned https://github.com/getgrav/grav-plugin-problems -> /Users/***/workspace/testing/grav-composer-test/grav-git-test/user/plugins/problems
Cloning into 'user/plugins/error'...
remote: Enumerating objects: 33, done.
remote: Counting objects: 100% (33/33), done.
remote: Compressing objects: 100% (26/26), done.
remote: Total 33 (delta 1), reused 25 (delta 1), pack-reused 0 (from 0)
Receiving objects: 100% (33/33), 48.97 KiB | 1.48 MiB/s, done.
Resolving deltas: 100% (1/1), done.
SUCCESS cloned https://github.com/getgrav/grav-plugin-error -> /Users/***/workspace/testing/grav-composer-test/grav-git-test/user/plugins/error
Cloning into 'user/plugins/markdown-notices'...
remote: Enumerating objects: 26, done.
remote: Counting objects: 100% (26/26), done.
remote: Compressing objects: 100% (24/24), done.
remote: Total 26 (delta 1), reused 21 (delta 1), pack-reused 0 (from 0)
Receiving objects: 100% (26/26), 83.71 KiB | 1.18 MiB/s, done.
Resolving deltas: 100% (1/1), done.
SUCCESS cloned https://github.com/getgrav/grav-plugin-markdown-notices -> /Users/***/workspace/testing/grav-composer-test/grav-git-test/user/plugins/markdown-notices
Cloning into 'user/themes/quark'...
remote: Enumerating objects: 203, done.
remote: Counting objects: 100% (203/203), done.
remote: Compressing objects: 100% (190/190), done.
remote: Total 203 (delta 6), reused 101 (delta 1), pack-reused 0 (from 0)
Receiving objects: 100% (203/203), 1.27 MiB | 4.97 MiB/s, done.
Resolving deltas: 100% (6/6), done.
SUCCESS cloned https://github.com/getgrav/grav-theme-quark -> /Users/***/workspace/testing/grav-composer-test/grav-git-test/user/themes/quark
grav-git-test on master via 🐘 v8.3.24 took 3.1s
➜ bin/grav server
Grav Web Server
===============
Following Web Server log file (/Users/***/.symfony5/log/6816dcc1d2717556a8ea0750f6ae1b2c815b0d9b.log)
Following PHP-FPM log file (/Users/***/.symfony5/log/6816dcc1d2717556a8ea0750f6ae1b2c815b0d9b/53fb8ec204547646acb3461995e4da5a54cc7575.log)
[WARNING] The local web server is optimized for local development and MUST ne
ver be used in a production setup.
[WARNING] Please note that the Symfony CLI only listens on 127.0.0.1 by defau
lt since version 5.10.3.
You can use the --allow-all-ip or --listen-ip flags to ch
ange this behavior.
[OK] Web server listening
The Web server is using PHP FPM 8.3.24
https://127.0.0.1:8000
[Web Server ] Sep 3 17:51:00 |DEBUG | PHP Reloading PHP versions
[Web Server ] Sep 3 17:51:01 |DEBUG | PHP Using PHP version 8.3.24 (from default version in $PATH)
[Web Server ] Sep 3 17:51:01 |INFO | PHP listening path="/opt/homebrew/Cellar/[email protected]/8.3.24/sbin/php-fpm" php="8.3.24" port=58586
[Web Server ] Sep 3 17:51:01 |DEBUG | PHP Using PHP version 8.3.24 (from default version in $PATH)
[PHP-FPM ] Sep 3 17:51:01 |DEBUG | RUNNER Waiting for channels (first boot) cmd="PHP-FPM"
[PHP-FPM ] Sep 3 17:51:01 |NOTICE | FPM fpm is running, pid 35844
[PHP-FPM ] Sep 3 17:51:01 |NOTICE | FPM ready to handle connections
[PHP-FPM ] Sep 3 17:51:03 |DEBUG | RUNNER Received timer message (first boot) cmd="PHP-FPM"