there seriously is no error other than this:
php | NOTICE: PHP message: PHP Warning: Undefined array key 1 in /var/www/html/wp-includes/vars.php on line 32
php | NOTICE: PHP message: PHP Warning: Undefined array key 1 in /var/www/html/wp-includes/vars.php on line 32
php | NOTICE: PHP message: PHP Warning: Undefined array key 1 in /var/www/html/wp-includes/vars.php on line 32
php | - - 17/Mar/2022:16:53:59 +0000 "GET " 302
webserver | 2022/03/17 16:53:59 [error] 25#25: *741 FastCGI sent in stderr: "PHP message: PHP Warning: Undefined array key 1 in /var/www/html/wp-includes/vars.php on line 32" while reading response header from upstream, client: ***, server: website.com, request: "GET /backend-panel/ HTTP/2.0", upstream: "fastcgi://unix:/var/run/php-socket.sock:", host: "website.com", referrer: "https://website.com/"
webserver | *** - - [17/Mar/2022:16:53:59 +0000] "GET /backend-panel/ HTTP/2.0" 302 0 "https://website.com/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.102 Safari/537.36"
php | - - 17/Mar/2022:16:53:59 +0000 "GET " 200
webserver | 2022/03/17 16:54:00 [error] 24#24: *790 FastCGI sent in stderr: "PHP message: PHP Warning: Undefined array key 1 in /var/www/html/wp-includes/vars.php on line 32" while reading response header from upstream, client: ***, server: website.com, request: "GET /ajax?action=buddyboss_theme_get_header_notifications HTTP/2.0", upstream: "fastcgi://unix:/var/run/php-socket.sock:", host: "website.com", referrer: "https://website.com/"
php | - - 17/Mar/2022:16:53:59 +0000 "GET " 200
webserver | *** - - [17/Mar/2022:16:54:00 +0000] "GET /ajax?action=buddyboss_theme_get_header_notifications HTTP/2.0" 200 188 "https://website.com/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.102 Safari/537.36"
webserver | 2022/03/17 16:54:00 [error] 25#25: *745 FastCGI sent in stderr: "PHP message: PHP Warning: Undefined array key 1 in /var/www/html/wp-includes/vars.php on line 32" while reading response header from upstream, client: ***, server: website.com, request: "GET /ajax?action=buddyboss_theme_get_header_unread_messages HTTP/2.0", upstream: "fastcgi://unix:/var/run/php-socket.sock:", host: "website.com", referrer: "https://website.com/"
webserver | *** - - [17/Mar/2022:16:54:00 +0000] "GET /ajax?action=buddyboss_theme_get_header_unread_messages HTTP/2.0" 200 153 "https://website.com/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.102 Safari/537.36"
php | - - 17/Mar/2022:16:54:00 +0000 "GET " 200
webserver | *** - - [17/Mar/2022:16:54:01 +0000] "GET / HTTP/2.0" 200 57831 "https://website.com/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.102 Safari/537.36"
key:
*** = an ip address
i have seriously been looking for errors for 5 days and cant find any that lead anywhere but useless (due to the fact it has been patched) or already tried advice. i wish i knew more information but i honestly dont nor cant find any (as i use docker all error/access logs are put here.) but all it tells me is that something is wrong with wp-includes/vars.php and specifically the part where it tries to see if your admin or not. (the if ( is_admin() ) {
) everything else works but the admin panels. The only thing at this point is it either cloudflare or is it wordpress and i would say from the fact that the requests are getting to my server its not cloudflare. so than its wordpress and the only time this error appears is when the paths are changed by the plugin.
nginx config (with anything hidden or changed to still represent and do the same thing without giving my setup away):
website1.com.conf:
KEY:
*** = unrelated and working file path
server {
listen 0.0.0.0:443 ssl http2 reuseport;
server_name website.com www.website.com;
set $base /var/www/html;
root /var/www/html
# SSL
ssl_certificate /etc/letsencrypt/live/website.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/website.com/privkey.pem;
ssl_trusted_certificate /etc/letsencrypt/live/website.com/chain.pem;
proxy_busy_buffers_size 512k;
proxy_buffers 4 512k;
proxy_buffer_size 256k;
fastcgi_buffers 16 256k;
fastcgi_buffer_size 256k;
# security
include nginxconfig.io/security.conf; # possibly affects but highly doubt it
# index.php
index index.php;
# index.php fallback
location / {
try_files $uri $uri/ /index.php?$query_string;
}
include /var/www/html/hidemywpghost.conf;
# additional config
include nginxconfig.io/general.conf; # does not block anything relating to this
include nginxconfig.io/wordpress.conf; # does not block anything relating to this
location ~* /wp-content/***/***/ {
if ( $upstream_http_x_accel_redirect = "" ) {
return 403;
}
internal;
}
location ~* /wp-content/***/***/ {
if ( $upstream_http_x_accel_redirect = "" ) {
return 403;
}
internal;
}
location ~* /wp-content/***/***/ {
if ( $upstream_http_x_accel_redirect = "" ) {
return 403;
}
internal;
}
location ~* /wp-content/***/***/ {
autoindex off;
}
location ~* /wp-content/***/***/ {
autoindex off;
}
location ~* /wp-content/***/***/ {
autoindex off;
}
# handle .php
location ~ \.php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php-socket.sock;
fastcgi_index index.php;
fastcgi_param PHP_VALUE "upload_max_filesize = 5120M \n post_max_size=5124M"; # only temporary and most people cant utilize anyways since it was just to ensure no bottle necks is not there in current config anymore.
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME /var/www/html$fastcgi_script_name; #is like this because it was being broken with finding the core filepath
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_intercept_errors on;
}
include nginxconfig.io/letsencrypt.conf;
}
website2:
very similar to the one above
security.conf:
will probrably be changed soon but prob after this is fixed
add_header X-Frame-Options "SAMEORIGIN" always;
add_header X-XSS-Protection "1; mode=block" always;
add_header X-Content-Type-Options "nosniff" always;
add_header Referrer-Policy "no-referrer-when-downgrade" always;
add_header Permissions-Policy "interest-cohort=()" always;
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" always;
# . files
location ~ /\.(?!well-known) {
deny all;
}
NOTE: i am not worried with sharing this configs as they are docker containers with different paths but work perfectly normally as if they were the orginal (and yes i even did try changing the paths back to just /var/www/html and this bug still exists)