Note that there are some explanatory texts on larger screens.

plurals
  1. POFailed to generate captcha image, content has already been output
    text
    copied!<p>i m using <a href="http://www.phpcaptcha.org/" rel="nofollow">secureimage</a> solution to generate captcha code</p> <p>i have this error on chrom console </p> <blockquote> <p>Resource interpreted as Image but transferred with MIME type text/html</p> </blockquote> <p>and when entring on this url directly used as image src</p> <blockquote> <p>securimage_show.php?sid=fa5e1eb19c3a534885632e</p> </blockquote> <p>i have this error</p> <blockquote> <p>Failed to generate captcha image, content has already been output. This is most likely due to misconfiguration or a PHP error was sent to the browse</p> </blockquote> <p>someone have idea ?</p> <p>Note: it works for me in localhost wampserver but not on remote server</p> <p>Edit:</p> <p>the code from the captcha opensource code generating php errors :</p> <pre><code> protected function output() { if ($this-&gt;canSendHeaders() || $this-&gt;send_headers == false) { if ($this-&gt;send_headers) { // only send the content-type headers if no headers have been output // this will ease debugging on misconfigured servers where warnings // may have been output which break the image and prevent easily viewing // source to see the error. header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); header("Last-Modified: " . gmdate("D, d M Y H:i:s") . "GMT"); header("Cache-Control: no-store, no-cache, must-revalidate"); header("Cache-Control: post-check=0, pre-check=0", false); header("Pragma: no-cache"); } switch ($this-&gt;image_type) { case self::SI_IMAGE_JPEG: if ($this-&gt;send_headers) header("Content-Type: image/jpeg"); imagejpeg($this-&gt;im, null, 90); break; case self::SI_IMAGE_GIF: if ($this-&gt;send_headers) header("Content-Type: image/gif"); imagegif($this-&gt;im); break; default: if ($this-&gt;send_headers) header("Content-Type: image/png"); imagepng($this-&gt;im); break; } } else { echo '&lt;hr /&gt;&lt;strong&gt;' .'Failed to generate captcha image, content has already been ' .'output.&lt;br /&gt;This is most likely due to misconfiguration or ' .'a PHP error was sent to the browser.&lt;/strong&gt;'; } imagedestroy($this-&gt;im); restore_error_handler(); if (!$this-&gt;no_exit) exit; } </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload