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

Error loading Requests.php file in WordPress Docker container #359

Open
KKTRKKT opened this issue Jun 22, 2023 · 0 comments
Open

Error loading Requests.php file in WordPress Docker container #359

KKTRKKT opened this issue Jun 22, 2023 · 0 comments

Comments

@KKTRKKT
Copy link

KKTRKKT commented Jun 22, 2023

I encountered an error while running the WordPress Docker container with the following setup:

Operating System: Windows 10
Docker Compose Version: 1.29
WordPress Version: lastest
The error message I received is as follows:

[21-Jun-2023 07:49:53 UTC] PHP Warning:  require_once(/var/www/html/wp-includes/Requests/src/Requests.php): Failed to open stream: No such file or directory in /var/www/html/wp-includes/class-requests.php on line 33
[21-Jun-2023 07:49:53 UTC] PHP Fatal error:  Uncaught Error: Failed opening required '/var/www/html/wp-includes/Requests/src/Requests.php' (include_path='.:/usr/local/lib/php') in /var/www/html/wp-includes/class-requests.php:33
Stack trace:
#0 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/IncludeRequestsAutoloader.php(77): require_once()
#1 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/bootstrap.php(83): WP_CLI\Bootstrap\IncludeRequestsAutoloader->process(Object(WP_CLI\Bootstrap\BootstrapState))
#2 phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/wp-cli.php(32): WP_CLI\bootstrap()
#3 phar:///usr/local/bin/wp/php/boot-phar.php(20): include('phar:///usr/loc...')
#4 /usr/local/bin/wp(4): include('phar:///usr/loc...')
#5 {main}
  thrown in /var/www/html/wp-includes/class-requests.php on line 33

I have followed the provided Dockerfile to set up the wp-headless service, but it seems that the Requests.php file is missing from the /var/www/html/wp-includes directory.

I have tried stopping and removing the wp-headless container, and then recreating it using the docker-compose up -d wp-headless command, but the issue persists.

I would appreciate any guidance or suggestions on how to resolve this error and successfully run the WordPress Docker container.

Thank you for your assistance.

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

1 participant