Closed acalvino4 closed 2 years ago
I enabled debugging - here is the stack trace
[06-Oct-2021 04:05:11 UTC] PHP Fatal error: Uncaught TypeError: preg_replace(): Argument #3 ($subject) must be of type array|string, bool given in /var/www/html/wp-content/plugins/satispress/src/Provider/RequestHandler.php:149
Stack trace:
#0 /var/www/html/wp-content/plugins/satispress/src/Provider/RequestHandler.php(149): preg_replace()
#1 /var/www/html/wp-content/plugins/satispress/src/Provider/RequestHandler.php(162): SatisPress\Provider\RequestHandler->send_header()
#2 /var/www/html/wp-content/plugins/satispress/src/Provider/RequestHandler.php(102): SatisPress\Provider\RequestHandler->send_headers()
#3 /var/www/html/wp-includes/class-wp-hook.php(303): SatisPress\Provider\RequestHandler->dispatch()
#4 /var/www/html/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters()
#5 /var/www/html/wp-includes/plugin.php(518): WP_Hook->do_action()
#6 /var/www/html/wp-includes/class-wp.php(388): do_action_ref_array()
#7 /var/www/html/wp-includes/class-wp.php(750): WP->parse_request()
#8 /var/www/html/wp-includes/functions.php(1291): WP->main()
#9 /var/www/html/wp-blog-header.php(16): wp()
#10 /var/www/html/index.php(17): require('...')
And here is the relevant part of my composer.json
{
"repositories": [
{
"type": "composer",
"url": "https://wpackagist.org",
"only": ["wpackagist-plugin/*", "wpackagist-theme/*"]
}, {
"type": "composer",
"url": "https://<sitename>/satispress/"
}
],
"require": {
"php": ">=7.4",
"composer/installers": "^1.0.1",
"roots/wordpress": "^5.8.1",
"wpackagist-plugin/acf-extended": "^0.8.8.6",
"wpackagist-plugin/post-snippets": "^3.0",
...more packages from wpackagist...
"gem-satispress/acfml": "^1.6.1",
"gem-satispress/advanced-custom-fields-pro": "^5.10.2",
...more packages from satispress server...
"require-dev": {
"squizlabs/php_codesniffer": "^3.6.0",
"roave/security-advisories": "dev-master"
},
"config": {
"optimize-autoloader": true,
"preferred-install": "dist"
},
"minimum-stability": "dev",
"prefer-stable": true,
...
}
Turns out this is the exact same issue reported in https://github.com/cedaro/satispress/issues/165. Downgrading my Satispress server to php 7.4 fixed the issue.
After setting up a satispress server, running
composer install
, and being authenticated, I am running into the error in the title:[Composer\Downloader\TransportException] The <filename> file could not be downloaded (HTTP/1.1 500 Internal Server Error)
I have disabled all plugins besides satispress.
Here is the output of
composer diagnose
:Here is my apache config:
Looking at my apache error log, there are many of the following error: