Skip to content
New issue

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

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

Already on GitHub? # to your account

Warning: require_once(/bot/vendor/autoload.php) #3

Open
talesam opened this issue Jul 25, 2022 · 5 comments
Open

Warning: require_once(/bot/vendor/autoload.php) #3

talesam opened this issue Jul 25, 2022 · 5 comments
Labels
question Further information is requested

Comments

@talesam
Copy link

talesam commented Jul 25, 2022

I opened the browser with the files inside, on a web server, this is common to happen and after I activate it in Flarum does it work or is there something to be done?


Warning: require_once(/bot/vendor/autoload.php): Failed to open stream: No such file or directory in /bot/index.php on line 3

Fatal error: Uncaught Error: Failed opening required '/bot/vendor/autoload.php' (include_path='.:/usr/local/lib/php') in /bot/index.php:3 Stack trace: #0 {main} thrown in /bot/index.php on line 3
@jtojnar
Copy link
Member

jtojnar commented Jul 25, 2022

Did you follow the fourth step in the installation instructions?

https://github.com/ogioncz/flarum-webhooks-telegram-bridge#how-to-use

@jtojnar jtojnar added the question Further information is requested label Jul 25, 2022
@talesam
Copy link
Author

talesam commented Jul 25, 2022

Yes, I created a container:

My Dockerfile

FROM php:8-alpine
LABEL version="0.0.1" description="Projeto flarum-webhooks-telegram-bridge" maintainer="Tales A. Mendonça<talesam@gmail.com>"

# Diretório de trabalho
WORKDIR /bot

# Instala programas necessários para o funcionamento
RUN apk update && \
    apk add --no-cache \
    git zip unzip p7zip 

# Clona o repositório
RUN git clone https://github.com/ogioncz/flarum-webhooks-telegram-bridge.git /bot 

# Instala o composer
RUN cd /bot && curl -sS https://getcomposer.org/installer | php -- \
    --install-dir=/usr/bin --filename=composer && composer install

# Copia o arquivo de configuração
COPY config.php /bot/

# Executa o servidor web
CMD ["php", "-S", "0.0.0.0:80","-t","/bot/","index.php"]

@talesam
Copy link
Author

talesam commented Jul 25, 2022

I will review the container settings.

The container is correct, you can check inside if you want... or even test..
https://hub.docker.com/r/talesam/flarum-webhooks-telegram-bridge

@jtojnar
Copy link
Member

jtojnar commented Jul 25, 2022

https://hub.docker.com/r/talesam/flarum-webhooks-telegram-bridge gives me 404. Not sure how to check the container contents without building it. Do you have /bot/vendor/autoload.php file then? It should be created by the composer install command.

@talesam
Copy link
Author

talesam commented Jul 25, 2022

There is no such directory, I will run the commands separately and test one by one.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants