Jump to content

Captcha Problem


darkfreaks

Recommended Posts

oh shit i just checked the error log

 

imagepng(): supplied argument is not a valid Image resource captcha.php 56 August 30, 2007, 7:38 pm

2 Cannot modify header information - headers already sent by (output started at /home/lilysgra/public_html/lilysgraveyard/index.php:27) captcha.php 55 August 30, 2007, 7:38 pm

2 imagestring(): supplied argument is not a valid Image resource captcha.php 41 August 30, 2007, 7:38 pm

2 imageline(): supplied argument is not a valid Image resource captcha.php 35 August 30, 2007, 7:38 pm

2 imageline(): supplied argument is not a valid Image resource captcha.php 34 August 30, 2007, 7:38 pm

2 imagecolorallocate(): supplied argument is not a valid Image resource captcha.php 27 August 30, 2007, 7:38 pm

2 imagecolorallocate(): supplied argument is not a valid Image resource captcha.php 26 August 30, 2007, 7:38 pm

2 imagecreatefrompng(captcha.png) [function.imagecreatefrompng]: failed to open stream: No such file or directory captcha.php 19 August 30, 2007, 7:38 pm

2 session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/lilysgra/public_html/lilysgraveyard/index.php:27) guestbook.php 2 August 30, 2007, 7:38 pm

2 session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/lilysgra/public_html/lilysgraveyard/index.php:27) guestbook.php 2 August 30, 2007, 7:38 pm

2 imagepng(): supplied argument is not a valid Image resource captcha.php 56 August 30, 2007, 7:37 pm

2 Cannot modify header information - headers already sent by (output started at /home/lilysgra/public_html/lilysgraveyard/index.php:27) captcha.php 55 August 30, 2007, 7:37 pm

2 imagestring(): supplied argument is not a valid Image resource captcha.php 41 August 30, 2007, 7:37 pm

2 imageline(): supplied argument is not a valid Image resource captcha.php 35 August 30, 2007, 7:37 pm

2 imageline(): supplied argument is not a valid Image resource captcha.php 34 August 30, 2007, 7:37 pm

2 imagecolorallocate(): supplied argument is not a valid Image resource captcha.php 27 August 30, 2007, 7:37 pm

2 imagecolorallocate(): supplied argument is not a valid Image resource captcha.php 26 August 30, 2007, 7:37 pm

2 imagecreatefrompng(captcha.png) [function.imagecreatefrompng]: failed to open stream: No such file or directory captcha.php 19 August 30, 2007, 7:37 pm

2 session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/lilysgra/public_html/lilysgraveyard/index.php:27) guestbook.php 2 August 30, 2007, 7:37 pm

2 session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/lilysgra/public_html/lilysgraveyard/index.php:27) guestbook.php 2 August 30, 2007, 7:37 pm

2 imagepng(): supplied argument is not a valid Image resource captcha.php 56 August 30, 2007, 7:34 pm

2 Cannot modify header information - headers already sent by (output started at /home/lilysgra/public_html/lilysgraveyard/index.php:27) captcha.php 55 August 30, 2007, 7:34 pm

2 imagestring(): supplied argument is not a valid Image resource captcha.php 41 August 30, 2007, 7:34 pm

2 imageline(): supplied argument is not a valid Image resource captcha.php 35 August 30, 2007, 7:34 pm

2 imageline(): supplied argument is not a valid Image resource captcha.php 34 August 30, 2007, 7:34 pm

2 imagecolorallocate(): supplied argument is not a valid Image resource captcha.php 27 August 30, 2007, 7:34 pm

2 imagecolorallocate(): supplied argument is not a valid Image resource captcha.php 26 August 30, 2007, 7:34 pm

2 imagecreatefrompng(captcha.png) [function.imagecreatefrompng]: failed to open stream: No such file or directory captcha.php 19 August 30, 2007, 7:34 pm

2 session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/lilysgra/public_html/lilysgraveyard/index.php:27) guestbook.php 2 August 30, 2007, 7:34 pm

2 session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/lilysgra/public_html/lilysgraveyard/index.php:27) guestbook.php 2 August 30, 2007, 7:34 pm

2 imagepng(): supplied argument is not a valid Image resource captcha.php 56 August 30, 2007, 7:34 pm

2 Cannot modify header information - headers already sent by (output started at /home/lilysgra/public_html/lilysgraveyard/index.php:27) captcha.php 55 August 30, 2007, 7:34 pm

2 imagestring(): supplied argument is not a valid Image resource captcha.php 41 August 30, 2007, 7:34 pm

2 imageline(): supplied argument is not a valid Image resource captcha.php 35 August 30, 2007, 7:34 pm

2 imageline(): supplied argument is not a valid Image resource captcha.php 34 August 30, 2007, 7:34 pm

2 imagecolorallocate(): supplied argument is not a valid Image resource captcha.php 27 August 30, 2007, 7:34 pm

2 imagecolorallocate(): supplied argument is not a valid Image resource captcha.php 26 August 30, 2007, 7:34 pm

2 imagecreatefrompng(captcha.png) [function.imagecreatefrompng]: failed to open stream: No such file or directory captcha.php 19 August 30, 2007, 7:34 pm

2 session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/lilysgra/public_html/lilysgraveyard/index.php:27) guestbook.php 2 August 30, 2007, 7:34 pm

2 session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/lilysgra/public_html/lilysgraveyard/index.php:27) guestbook.php 2 August 30, 2007, 7:34 pm

 

Link to comment
Share on other sites

line 27 of /home/lilysgra/public_html/lilysgraveyard/index.php is session_start()? I don't think so...

Unless you're calling session_start() twice but I don't think it gives that error.

 

Obviously the code is loading THAT file so you need to find out where you're doing that.

 

Link to comment
Share on other sites

oops sorry im half blind today LOL

 

<?php
    // files we need to include before the <head> tag
include ("includes/settings.inc.php");
include ("includes/subs.inc.php");
include ("includes/readvals.inc.php");
include ("includes/connectdb.inc.php");
include ("includes/readsettings.inc.php");
include ("includes/initlang.inc.php");
include ("includes/readcookie.inc.php");?>

 

 

Link to comment
Share on other sites

ok i found the problem the settings file already had that code in it so i removed session_start;

 

now i gotta do the same with captcha.php

 

also done with that now the remaining ERROR:

 

imagecreatefrompng(captcha.png) [function.imagecreatefrompng]: failed to open stream: No such file or directory on line 19 of captcha.php

 

imagecolorallocate(): supplied argument is not a valid Image resource captcha.php  on line 26 captcha.php

 

imageline(): supplied argument is not a valid Image resource captcha.php line 34

 

imagestring(): supplied argument is not a valid Image resource captcha.php line 41

 

imagepng(): supplied argument is not a valid Image resource captcha.php line 56

 

 

Link to comment
Share on other sites

imagecreatefrompng(captcha.png) [function.imagecreatefrompng]: failed to open stream: No such file or directory on line 19 of captcha.php

 

No such file (the remaining errors are caused by that as well).  Check file name AND path are correct, since your's aren't.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.