Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught Error: Undefined constant "Vvveb\System\Component\SITE_ID" in docker #247

Open
JoaquinDecima opened this issue Dec 14, 2024 · 1 comment

Comments

@JoaquinDecima
Copy link

I am performing the installation on a server, when installing docker and trying to enter the site I get the following:

Warning: require(/var/www/html//vendor/autoload.php): Failed to open stream: No such file or directory in /var/www/html/system/core/startup.php on line 339

Warning: http_response_code(): Cannot set response code - headers already sent (output started at /var/www/html/system/core/startup.php:339) in /var/www/html/system/core/frontcontroller.php on line 115

Fatal error: Uncaught Error: Undefined constant "Vvveb\System\Component\SITE_ID" in /var/www/html/system/component/component.php:175 Stack trace: #0 /var/www/html/system/component/component.php(99): Vvveb\System\Component\Component->loadComponents() #1 /var/www/html/system/component/component.php(66): Vvveb\System\Component\Component->__construct(Object(Vvveb\System\Core\View), false, NULL) #2 /var/www/html/system/core/view.php(382): Vvveb\System\Component\Component::getInstance(Object(Vvveb\System\Core\View), false, NULL) #3 /var/www/html/system/core/frontcontroller.php(167): Vvveb\System\Core\View->render() #4 /var/www/html/system/core/startup.php(264): Vvveb\System\Core\FrontController::notFound(false, Array, 500) #5 [internal function]: Vvveb\System\Core\exceptionHandler(Object(Error)) #6 {main} thrown in /var/www/html/system/component/component.php on line 175

Fatal error: Uncaught ErrorException: Uncaught Error: Undefined constant "Vvveb\System\Component\SITE_ID" in /var/www/html/system/component/component.php:175 Stack trace: #0 /var/www/html/system/component/component.php(99): Vvveb\System\Component\Component->loadComponents() #1 /var/www/html/system/component/component.php(66): Vvveb\System\Component\Component->__construct(Object(Vvveb\System\Core\View), false, NULL) #2 /var/www/html/system/core/view.php(382): Vvveb\System\Component\Component::getInstance(Object(Vvveb\System\Core\View), false, NULL) #3 /var/www/html/system/core/frontcontroller.php(167): Vvveb\System\Core\View->render() #4 /var/www/html/system/core/startup.php(264): Vvveb\System\Core\FrontController::notFound(false, Array, 500) #5 [internal function]: Vvveb\System\Core\exceptionHandler(Object(Error)) #6 {main} thrown in /var/www/html/system/component/component.php:175 Stack trace: #0 /var/www/html/system/core/startup.php(329): Vvveb\System\Core\vErrorHandler(1, 'Uncaught Error:...', '/var/www/html/s...', 175) #1 [internal function]: Vvveb\System\Core\fatalErrorHandler() #2 {main} thrown in /var/www/html/system/component/component.php on line 175

Below I provide the docker compose that I am using:

services:
  db:
    image: mariadb
    restart: always
    environment:
      MYSQL_ROOT_PASSWORD: asd123
      MYSQL_DATABASE: vvvebjs
      MYSQL_USER: vvveb
      MYSQL_PASSWORD: asd123
    volumes:
      - db:/var/lib/mysql
    networks:
      - internal

  php:
    image: vvveb/vvvebcms:php8.3-fpm-alpine
    environment:
      DB_HOST: db
      DB_DATABASE: vvvebjs
      DB_USER: vvveb
      DB_PASSWORD: asd123
      DB_ENGINE: mysqli #sqlite,pgsql
    volumes:
      - vvveb-volume:/var/www/html
      - db:/var/lib/mysql
    ports:
      - "80:80"
    links:
      - db:mysql
    depends_on:
      - db
    networks:
      - internal


volumes:
  vvveb-volume:
  db:

networks:
  internal:
    driver: bridge
@JoaquinDecima JoaquinDecima changed the title Error in docker Uncaught Error: Undefined constant "Vvveb\System\Component\SITE_ID" in docker Dec 14, 2024
@givanz
Copy link
Owner

givanz commented Dec 14, 2024

Thanks for the bug report, the latest build was missing vendor/autoload.php it's now fixed, please try again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants