Welcome! Log In Create A New Profile

Advanced

Re: Wordpress not able to display theme properly - FastCGI sent in stderr: "Primary script unknown"

Francis Daly
December 21, 2019 03:38PM
On Sat, Dec 21, 2019 at 07:58:50AM -0500, vikask wrote:

Hi there,

The request getting to nginx is:

> /stage/%20https://fp-academy.in/stage/wp-content/uploads/2019/11/hp_slider_bg.jpg

That is almost certainly wrong. The request probably should be just

/stage/wp-content/uploads/2019/11/hp_slider_bg.jpg

Do things work if you just request that url?


> <img width="1600"
> height="850"
> src="https://fp-academy.in/stage/wp-content/uploads/2019/11/hp_slider_bg.jpg"
> class="ls-bg" alt=""
> srcset="%20https://fp-academy.in/stage/wp-content/uploads/2019/11/hp_slider_bg.jpg

Edit that (and the rest of this "srcset" collection) and replace the
%20 before each https:// with just a space.

(And if this content is generated -- edit whatever the source is so that
when this content is generated, there is no %20 at the start of a url.)

> 1600w,
> %20https://fp-academy.in/stage/wp-content/uploads/2019/11/hp_slider_bg-300x159.jpg
> 300w,
> %20https://fp-academy.in/stage/wp-content/uploads/2019/11/hp_slider_bg-768x408.jpg
> 768w,
> %20https://fp-academy.in/stage/wp-content/uploads/2019/11/hp_slider_bg-1030x547.jpg
> 1030w,
> %20https://fp-academy.in/stage/wp-content/uploads/2019/11/hp_slider_bg-1500x797.jpg
> 1500w,
> %20https://fp-academy.in/stage/wp-content/uploads/2019/11/hp_slider_bg-705x375.jpg
> 705w" sizes="(max-width: 1600px) 100vw, 1600px" />

It may be that your nginx config works as it should, already.

Cheers,

f
--
Francis Daly francis@daoine.org
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Re: Wordpress not able to display theme properly - FastCGI sent in stderr: "Primary script unknown"

Francis Daly December 21, 2019 05:34AM

Re: Wordpress not able to display theme properly - FastCGI sent in stderr: "Primary script unknown"

vikask December 21, 2019 07:58AM

Re: Wordpress not able to display theme properly - FastCGI sent in stderr: "Primary script unknown"

Francis Daly December 21, 2019 03:38PM

Re: Wordpress not able to display theme properly - FastCGI sent in stderr: "Primary script unknown"

vikask December 22, 2019 09:43AM

Re: Wordpress not able to display theme properly - FastCGI sent in stderr: "Primary script unknown"

Francis Daly December 30, 2019 07:58AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 251
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready