darkfreaks Posted August 30, 2007 Author Share Posted August 30, 2007 it still wont submit ??? Quote Link to comment https://forums.phpfreaks.com/topic/67362-captcha-problem/page/2/#findComment-338085 Share on other sites More sharing options...
darkfreaks Posted August 30, 2007 Author Share Posted August 30, 2007 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 Quote Link to comment https://forums.phpfreaks.com/topic/67362-captcha-problem/page/2/#findComment-338089 Share on other sites More sharing options...
teng84 Posted August 30, 2007 Share Posted August 30, 2007 thas what im telling you a while ago i you should get error out of that code now try to put session start at the top most of the page then discuss the remaining error Quote Link to comment https://forums.phpfreaks.com/topic/67362-captcha-problem/page/2/#findComment-338105 Share on other sites More sharing options...
darkfreaks Posted August 30, 2007 Author Share Posted August 30, 2007 thats the thing it is at the topmost of the page. ill clear my log and see what i get. Quote Link to comment https://forums.phpfreaks.com/topic/67362-captcha-problem/page/2/#findComment-338119 Share on other sites More sharing options...
darkfreaks Posted August 31, 2007 Author Share Posted August 31, 2007 on the guestbook page alone i get: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/lilysgra/public_html/lilysgraveyard/index.php:27) Quote Link to comment https://forums.phpfreaks.com/topic/67362-captcha-problem/page/2/#findComment-338122 Share on other sites More sharing options...
Jessica Posted August 31, 2007 Share Posted August 31, 2007 Obviously it's not the first thing than. What is on line 27 of index.php? Quote Link to comment https://forums.phpfreaks.com/topic/67362-captcha-problem/page/2/#findComment-338134 Share on other sites More sharing options...
darkfreaks Posted August 31, 2007 Author Share Posted August 31, 2007 wtf its interfering with a totally different file in my root folder? the index.php in the root folder is for a different site. Quote Link to comment https://forums.phpfreaks.com/topic/67362-captcha-problem/page/2/#findComment-338136 Share on other sites More sharing options...
Jessica Posted August 31, 2007 Share Posted August 31, 2007 Oh for pete's sake. Look at the error. Quote Link to comment https://forums.phpfreaks.com/topic/67362-captcha-problem/page/2/#findComment-338137 Share on other sites More sharing options...
darkfreaks Posted August 31, 2007 Author Share Posted August 31, 2007 i did? line 27 of that file is session_start; but why is it erroring? its in the root folder for crying out loud. not my guestbook folder. Quote Link to comment https://forums.phpfreaks.com/topic/67362-captcha-problem/page/2/#findComment-338139 Share on other sites More sharing options...
Jessica Posted August 31, 2007 Share Posted August 31, 2007 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. Quote Link to comment https://forums.phpfreaks.com/topic/67362-captcha-problem/page/2/#findComment-338143 Share on other sites More sharing options...
darkfreaks Posted August 31, 2007 Author Share Posted August 31, 2007 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");?> Quote Link to comment https://forums.phpfreaks.com/topic/67362-captcha-problem/page/2/#findComment-338148 Share on other sites More sharing options...
darkfreaks Posted August 31, 2007 Author Share Posted August 31, 2007 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 Quote Link to comment https://forums.phpfreaks.com/topic/67362-captcha-problem/page/2/#findComment-338157 Share on other sites More sharing options...
darkfreaks Posted August 31, 2007 Author Share Posted August 31, 2007 anyone? Quote Link to comment https://forums.phpfreaks.com/topic/67362-captcha-problem/page/2/#findComment-338399 Share on other sites More sharing options...
AndyB Posted August 31, 2007 Share Posted August 31, 2007 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. Quote Link to comment https://forums.phpfreaks.com/topic/67362-captcha-problem/page/2/#findComment-338466 Share on other sites More sharing options...
darkfreaks Posted August 31, 2007 Author Share Posted August 31, 2007 ok what do i put for $captcha = imagecreatefrompng("captcha.png"); i have the background picture in the same folder. i dont see how the path could be wrong. Quote Link to comment https://forums.phpfreaks.com/topic/67362-captcha-problem/page/2/#findComment-338728 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.