php - Wordpress - GET parameters not working with NGINX

I have a WordPress running on nginx (with PHP-FPM), 4 sites (4 virtualhosts), everything works fine except that the GET parameters (for example, when I click on a video to request it), which despite appearing at the top with the URL, does not work. It is as if in the backend no parameters were passed.
Example, i click on a video, and the request is supouse to work (with a request like this): https://example.com/wp-content/themes/kdi-ecommerce/templates/movil-player.php?source=https://d57jf46hd36g.cloudfront.net/videos/KDIVideo/KH8JgVIDEO.m3u8
But it does not. On my location block (which is in /nginx/snippets/wordpress.conf) i have:
location / {
try_files $uri $uri/ /index.php?$args;
}
Ihave tried with:
try_files $uri $uri/ /index.php?$query_string;
try_files $uri $uri/ /index.php?$request_uri;
On the virtualhosts i have:
server {
listen 80;
server_name exaple.com www.example.com;
root /usr/share/nginx/html/domain-folder/;
index index.php;
include /etc/nginx/snippets/wordpress.conf;
include /etc/nginx/default.d/*.conf;
include fastcgi-cache.conf;
location ~* .(js|jpg|jpeg|gif|png|css|tgz|gz|rar|bz2|doc|pdf|ppt|tar|wav|bmp|rtf|swf|ico|flv|txt|woff|woff2|svg)$ {
etag on;
if_modified_since exact;
add_header Pragma "public";
add_header Cache-Control "public, no-transform";
}
I don't know if i have to modify the nginx.conf or other configuration file.
Share solution ↓
Additional Information:
Link To Answer People are also looking for solutions of the problem: cannot access offset of type string on string
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.