cypht icon indicating copy to clipboard operation
cypht copied to clipboard

πŸ› [Bug] autoload.php not found during install

Open Node815 opened this issue 5 months ago β€’ 1 comments
trafficstars

πŸ› 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

Node815 avatar Jun 11 '25 18:06 Node815

@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.

Shadow243 avatar Jun 19 '25 12:06 Shadow243

@Node815 We need you :-)

marclaporte avatar Aug 20 '25 12:08 marclaporte

I will retry later tonight and follow back up.

Node815 avatar Aug 20 '25 18:08 Node815

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

Node815 avatar Aug 20 '25 23:08 Node815

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

marclaporte avatar Aug 25 '25 12:08 marclaporte