[GH-ISSUE #1545] 🐛 [Bug] autoload.php not found during install #681

Closed
opened 2026-02-25 21:35:39 +03:00 by kerem · 5 comments
Owner

Originally created by @Node815 on GitHub (Jun 11, 2025).
Original GitHub issue: https://github.com/cypht-org/cypht/issues/1545

🐛 Bug

Running the config_gen.php script fails to complete. The following error occurs:

PHP Warning:  require(/usr/local/share/cypht/vendor/autoload.php): Failed to open stream: No such file or directory in /usr/local/share/cypht/scripts/config_gen.php on line 21
PHP Fatal error:  Uncaught Error: Failed opening required '/usr/local/share/cypht/vendor/autoload.php' (include_path='.:/usr/share/php') in /usr/local/share/cypht/scripts/config_gen.php:21
Stack trace:
#0 {main}
  thrown in /usr/local/share/cypht/scripts/config_gen.php on line 21

As you can see below, the vendor directory does not exist, nor does the source from this site show one which I could use:

/usr/local/share/cypht# ls -la
total 284
drwxr-xr-x 12 root root   4096 Jun 11 18:25 .
drwxr-xr-x  7 root root   4096 Jun 11 18:12 ..
-rw-r--r--  1 root root    113 May 14 12:44 .coveralls.yml
-rw-r--r--  1 root root     12 May 14 12:44 .dockerignore
-rw-r--r--  1 root root   5201 Jun 11 18:23 .env
-rw-r--r--  1 root root   4992 May 14 12:44 .env.example
drwxr-xr-x  5 root root   4096 May 14 12:44 .github
-rw-r--r--  1 root root    480 May 14 12:44 .gitignore
drwxr-xr-x  2 root root   4096 May 14 12:44 .travis
-rw-r--r--  1 root root   1804 May 14 12:44 .travis.yml
-rw-r--r--  1 root root    267 May 14 12:44 CONTRIBUTING.md
-rw-r--r--  1 root root   8599 May 14 12:44 INSTALL
-rw-r--r--  1 root root  26530 May 14 12:44 LICENSE
-rw-r--r--  1 root root   1219 May 14 12:44 Makefile
-rw-r--r--  1 root root   2278 May 14 12:44 README.md
-rw-r--r--  1 root root    166 May 14 12:44 RELEASE_NOTES
-rw-r--r--  1 root root   2751 May 14 12:44 composer.json
-rw-r--r--  1 root root 135286 May 14 12:44 composer.lock
drwxr-xr-x  2 root root   4096 May 14 12:44 config
drwxr-xr-x  2 root root   4096 May 14 12:44 docker
-rw-r--r--  1 root root   1173 May 14 12:44 docker-compose.dev.yaml
-rw-r--r--  1 root root   1628 May 14 12:44 index.php
drwxr-xr-x  2 root root   4096 May 14 12:44 language
drwxr-xr-x  2 root root   4096 May 14 12:44 lib
drwxr-xr-x 39 root root   4096 May 14 12:44 modules
drwxr-xr-x  2 root root   4096 May 14 12:44 scripts
drwxr-xr-x  4 root root   4096 May 14 12:44 tests
drwxr-xr-x  2 root root   4096 May 14 12:44 third_party
/usr/local/share/cypht# 

Version & Environment

Cypht
Rev: ]v2.4.2

OS: Debian 12

Originally created by @Node815 on GitHub (Jun 11, 2025). Original GitHub issue: https://github.com/cypht-org/cypht/issues/1545 <!-- You can find the latest issue templates here https://github.com/ulfgebhardt/issue-templates --> ## 🐛 Bug Running the config_gen.php script fails to complete. The following error occurs: ``` PHP Warning: require(/usr/local/share/cypht/vendor/autoload.php): Failed to open stream: No such file or directory in /usr/local/share/cypht/scripts/config_gen.php on line 21 PHP Fatal error: Uncaught Error: Failed opening required '/usr/local/share/cypht/vendor/autoload.php' (include_path='.:/usr/share/php') in /usr/local/share/cypht/scripts/config_gen.php:21 Stack trace: #0 {main} thrown in /usr/local/share/cypht/scripts/config_gen.php on line 21 ``` As you can see below, the vendor directory does not exist, nor does the source from this site show one which I could use: ``` /usr/local/share/cypht# ls -la total 284 drwxr-xr-x 12 root root 4096 Jun 11 18:25 . drwxr-xr-x 7 root root 4096 Jun 11 18:12 .. -rw-r--r-- 1 root root 113 May 14 12:44 .coveralls.yml -rw-r--r-- 1 root root 12 May 14 12:44 .dockerignore -rw-r--r-- 1 root root 5201 Jun 11 18:23 .env -rw-r--r-- 1 root root 4992 May 14 12:44 .env.example drwxr-xr-x 5 root root 4096 May 14 12:44 .github -rw-r--r-- 1 root root 480 May 14 12:44 .gitignore drwxr-xr-x 2 root root 4096 May 14 12:44 .travis -rw-r--r-- 1 root root 1804 May 14 12:44 .travis.yml -rw-r--r-- 1 root root 267 May 14 12:44 CONTRIBUTING.md -rw-r--r-- 1 root root 8599 May 14 12:44 INSTALL -rw-r--r-- 1 root root 26530 May 14 12:44 LICENSE -rw-r--r-- 1 root root 1219 May 14 12:44 Makefile -rw-r--r-- 1 root root 2278 May 14 12:44 README.md -rw-r--r-- 1 root root 166 May 14 12:44 RELEASE_NOTES -rw-r--r-- 1 root root 2751 May 14 12:44 composer.json -rw-r--r-- 1 root root 135286 May 14 12:44 composer.lock drwxr-xr-x 2 root root 4096 May 14 12:44 config drwxr-xr-x 2 root root 4096 May 14 12:44 docker -rw-r--r-- 1 root root 1173 May 14 12:44 docker-compose.dev.yaml -rw-r--r-- 1 root root 1628 May 14 12:44 index.php drwxr-xr-x 2 root root 4096 May 14 12:44 language drwxr-xr-x 2 root root 4096 May 14 12:44 lib drwxr-xr-x 39 root root 4096 May 14 12:44 modules drwxr-xr-x 2 root root 4096 May 14 12:44 scripts drwxr-xr-x 4 root root 4096 May 14 12:44 tests drwxr-xr-x 2 root root 4096 May 14 12:44 third_party /usr/local/share/cypht# ``` ### Version & Environment Cypht Rev: ]v2.4.2 <!-- Specify your OS and OS Version here if the issue is (most likely) platform dependent. --> OS: Debian 12
kerem 2026-02-25 21:35:39 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@Shadow243 commented on GitHub (Jun 19, 2025):

@Node815 Thanks for reporting this issue. The error indicates that the vendor/autoload.php file is missing, which usually means that the dependencies have not been installed yet.

To help diagnose this, could you please confirm:

  • Are you running this inside a Docker container or on a local machine?
  • If locally, did you run composer install successfully before running the config_gen.php script?
  • Did composer install produce any errors or warnings?

Normally, if composer install runs without problems, the vendor directory (including autoload.php) should be created. If you’re running in Docker, the Dockerfile or entrypoint script should handle this during build or startup.

Let me know these details so I can assist you further.

<!-- gh-comment-id:2988026546 --> @Shadow243 commented on GitHub (Jun 19, 2025): @Node815 Thanks for reporting this issue. The error indicates that the `vendor/autoload.php` file is missing, which usually means that the dependencies have not been installed yet. To help diagnose this, could you please confirm: - Are you running this inside a Docker container or on a local machine? - If locally, did you run `composer install` successfully before running the `config_gen.php` script? - Did `composer install` produce any errors or warnings? Normally, if `composer install` runs without problems, the `vendor` directory (including `autoload.php`) should be created. If you’re running in Docker, the Dockerfile or entrypoint script should handle this during build or startup. Let me know these details so I can assist you further.
Author
Owner

@marclaporte commented on GitHub (Aug 20, 2025):

@Node815 We need you :-)

<!-- gh-comment-id:3206189160 --> @marclaporte commented on GitHub (Aug 20, 2025): @Node815 We need you :-)
Author
Owner

@Node815 commented on GitHub (Aug 20, 2025):

I will retry later tonight and follow back up.

<!-- gh-comment-id:3207575951 --> @Node815 commented on GitHub (Aug 20, 2025): I will retry later tonight and follow back up.
Author
Owner

@Node815 commented on GitHub (Aug 20, 2025):

I installed via Docker and am testing it now, so far, no issues, but I will keep you posted.

<!-- gh-comment-id:3208458334 --> @Node815 commented on GitHub (Aug 20, 2025): I installed via Docker and am testing it now, so far, no issues, but I will keep you posted.
Author
Owner

@marclaporte commented on GitHub (Aug 25, 2025):

Ok, closing for now. Please reopen this issue if same / closely related issue emerges.

<!-- gh-comment-id:3220113792 --> @marclaporte commented on GitHub (Aug 25, 2025): Ok, closing for now. Please reopen this issue if same / closely related issue emerges.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/cypht#681
No description provided.