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

Francis Daly francis at daoine.org
Sat Dec 21 20:37:03 UTC 2019

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


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.


Francis Daly        francis at daoine.org

More information about the nginx mailing list