Title: Primary script unknown
Last modified: August 31, 2016

---

# Primary script unknown

 *  Resolved [OlafKS](https://wordpress.org/support/users/olafks/)
 * (@olafks)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/primary-script-unknown/)
 * Hi. I have found something interesting today in my logs. Error:
 * 2016/01/19 19:23:05 [error] 13665#0: *7241 FastCGI sent in stderr: “Primary script
   unknown” while reading response header from upstream, client: *here was ip*, 
   server: *servername*, request: “GET /wp-content/plugins/wpdiscuz/captcha/captcha.
   php?comm_id=1045-118393 HTTP/1.1”, upstream: “fastcgi://unix:/var/www/php-fpm/
   username.sock:”
 * I receive this error every 2 minutes… and most interresting is that plugin works
   fine… and captcha is disabled for all visitors.
 * but I really don’t like additional errors in error.log 🙂 so maybe any ideas 
   how to fix this?
 * [https://wordpress.org/plugins/wpdiscuz/](https://wordpress.org/plugins/wpdiscuz/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [OlafKS](https://wordpress.org/support/users/olafks/)
 * (@olafks)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/primary-script-unknown/#post-6961890)
 * In fact – there is no folder “captcha” in wpdiscuz folder… and I don’t see it
   in archive with plugin files. Seems that it was removed but one of the scripts
   is looking for it…
 *  Plugin Author [gVectors Team](https://wordpress.org/support/users/gvectors-team/)
 * (@gvectors-team)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/primary-script-unknown/#post-6961904)
 * wpDiscuz doesn’t have wpdiscuz/captcha/ folder. The error message “primary script
   unknown” is always related to a wrongly set SCRIPT_FILENAME in the nginx fastcgi_param
   directive.
 * More info here:
    [http://serverfault.com/questions/517190/nginx-1-fastcgi-sent-in-stderr-primary-script-unknown/#answer-517327](http://serverfault.com/questions/517190/nginx-1-fastcgi-sent-in-stderr-primary-script-unknown/#answer-517327)
 * Please deactivate and delete wpDiscuz plugin, then install it again. After installation
   please go to wpDiscuz Settings > Show/Hide Tab and set the “Captcha generation
   type” to “use WordPress session”.
 *  Thread Starter [OlafKS](https://wordpress.org/support/users/olafks/)
 * (@olafks)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/primary-script-unknown/#post-6961926)
 * Oh, my bad – found an issue – this error appears when somebody is trying to open
   not existing php file. I found other Primary script unknown errors for /admin/
   index.php etc… seems like somebody is loking for vulnerabilities.
    added try_files
   $uri =404; to nginx config and everything is ok now. Sorry for disturbing and
   thanks for help 🙂

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Primary script unknown’ is closed to new replies.

 * ![](https://ps.w.org/wpdiscuz/assets/icon-256x256.png?rev=1076265)
 * [Comments - wpDiscuz](https://wordpress.org/plugins/wpdiscuz/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpdiscuz/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpdiscuz/)
 * [Active Topics](https://wordpress.org/support/plugin/wpdiscuz/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpdiscuz/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpdiscuz/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [OlafKS](https://wordpress.org/support/users/olafks/)
 * Last activity: [10 years, 4 months ago](https://wordpress.org/support/topic/primary-script-unknown/#post-6961926)
 * Status: resolved