webgyrl Posted October 15, 2003 Posted October 15, 2003 Hey gang! Oh Help... this was working, and now, for some reason it's not auto-responding anymore. Can someone check this code and see what's missing? For some reason the auto-respond is not working for my mailing list form. this is the Config.php Code: <?php $allowed_email_recipients_array = array('natalie-brown.com','www.natalie-brown.com', 'subscribe@natalie-brown.com'); $referers = array('64.246.62.111', 'natalie-brown.com','www.natalie-brown.com'); //64.246.62.111 is IP for TCH... helps new sites work //Should not be required after propogation //But doesn't hurt $recipient = "subscribe@natalie-brown.com"; $subject = "Natalie Brown eNewsletter Subscription";//Optional, feel free to remove //redirect determines the page where visitors go //after submitting form //feel free to change to thanks.htm or whatever you want //but file must exist //Or leave it as is... blank $redirect = "http://www.natalie-brown.com/enewsletter_thanks.htm";'>http://www.natalie-brown.com/enewsletter_thanks.htm"; //$redirect = "http://www.natalie-brown.com/enewsletter_thanks.htm"; // banned emails, these will be email addresses of people // who are blocked from using the script (requested) $banlist = array ('*@somedomain.com', 'user@domain.com', 'etc@domains.com'); $header_file = "";// leave blank if you don't have a header file //$header_file = "/folder/header.php"; $footer_file = "";// leave blank if you don't have a footer file //$footer_file = "/folder/footer.php"; $css_file = "";//leave blank if you don't have a css file //$css_file = "file.css"; $banned_ext="php|phtml|cgi|pl|asp|jsp|c|cfm|shtml|exe|bat|com|"; $max_size=500;//Max size of file in Kilobytes $missing_fields_redirect = "";//optional error page for missing fields. Leave blank if unsure $env_report = 0;//Send environment variables 1=on 0=off $autoresponder = 1;//1=Send message back to visitor, 0=Do not send an autoresponse //$auto_from = "subscribe@natalie-brown.com"; $auto_subject = "Thank you for subscribing to the Natalie Brown eNewsletter"; $auto_content = "Your request to subscribe to the Natalie Brown eNewsletter has been received.\r\n"; $auto_content .= "\r\n";//Line break $auto_content .= "\r\n"; $auto_content .= "Thanks for your interest in Natalie! Feel free to join in with other Natalie Brown fans on the message board for discussion of Natalie's music, Music Business related topics and General chat. You can access the board by visiting: http://pub39.ezboard.com/bnataliebrownfanclubboard or you can join the Natalie Brown Yahoo Group by visiting this link: http://groups.yahoo.com/group/nataliebrownfanclub Natalie posts updates in both forums, so you can get the latest there. Natalie really appreciates your support. YOU make all the difference in getting the word out about Natalie and her music. It would be great if you could pass the word along to your friends about Natalie. In the month of November, we will be sending all Natalie eNewsletter subscribers a link to a special site where you will be able to download Natalie's Christmas Album, 'A Cool Christmas' free of charge. Thanks again for your support of Natalie's music!"; ?> Quote
TCH-JimE Posted October 15, 2003 Posted October 15, 2003 Nat, Do you get any error messages in the error log? Jim Quote
webgyrl Posted October 15, 2003 Author Posted October 15, 2003 Jim, Sorry for sounding blondeish... but where would I find the error log? Thanks, Nat Quote
TCH-JimE Posted October 15, 2003 Posted October 15, 2003 Nat, Login to your Cpanel (which the new update could be causing the problem) Look under stats Click on "Error Log" Jim Quote
webgyrl Posted October 15, 2003 Author Posted October 15, 2003 This is what I get: [Tue Oct 14 19:20:20 2003] [error] [client 68.45.177.165] File does not exist: /home/natalie/public_html/404.shtml [Tue Oct 14 19:20:20 2003] [error] [client 68.45.177.165] File does not exist: /home/natalie/public_html/ezboard_files/deletetopic.gif [Tue Oct 14 19:08:10 2003] [error] [client 67.201.162.95] File does not exist: /home/natalie/public_html/404.shtml [Tue Oct 14 19:08:10 2003] [error] [client 67.201.162.95] File does not exist: /home/natalie/public_html/ezboard_files/deletetopic.gif [Tue Oct 14 18:51:25 2003] [error] [client 68.71.172.159] File does not exist: /home/natalie/public_html/404.shtml [Tue Oct 14 18:51:25 2003] [error] [client 68.71.172.159] File does not exist: /home/natalie/public_html/nataliebrown/music.htm [Tue Oct 14 18:34:47 2003] [error] [client 67.201.162.95] File does not exist: /home/natalie/public_html/404.shtml [Tue Oct 14 18:34:47 2003] [error] [client 67.201.162.95] File does not exist: /home/natalie/public_html/ezboard_files/deletetopic.gif [Tue Oct 14 18:28:31 2003] [error] [client 67.201.162.95] File does not exist: /home/natalie/public_html/404.shtml [Tue Oct 14 18:28:31 2003] [error] [client 67.201.162.95] File does not exist: /home/natalie/public_html/ezboard_files/deletetopic.gif [Tue Oct 14 18:20:15 2003] [error] [client 148.100.208.93] File does not exist: /home/natalie/public_html/404.shtml [Tue Oct 14 18:20:15 2003] [error] [client 148.100.208.93] File does not exist: /home/natalie/public_html/ezboard_files/deletetopic.gif [Tue Oct 14 18:04:24 2003] [error] [client 216.175.123.140] File does not exist: /home/natalie/public_html/404.shtml [Tue Oct 14 18:04:24 2003] [error] [client 216.175.123.140] File does not exist: /home/natalie/public_html/natalie_brown/Audio/Natalie_Brown_Confused.mp3 [Tue Oct 14 17:59:04 2003] [error] [client 82.38.80.74] File does not exist: /home/natalie/public_html/404.shtml [Tue Oct 14 17:59:04 2003] [error] [client 82.38.80.74] File does not exist: /home/natalie/public_html/ezboard_files/deletetopic.gif [Tue Oct 14 17:42:26 2003] [error] [client 131.107.137.166] File does not exist: /home/natalie/public_html/404.shtml [Tue Oct 14 17:42:26 2003] [error] [client 131.107.137.166] File does not exist: /home/natalie/public_html/robots.txt [Tue Oct 14 17:29:21 2003] [error] [client 62.3.233.164] File does not exist: /home/natalie/public_html/404.shtml [Tue Oct 14 17:29:21 2003] [error] [client 62.3.233.164] File does not exist: /home/natalie/public_html/ezboard_files/deletetopic.gif [Tue Oct 14 17:05:17 2003] [error] [client 128.163.95.66] File does not exist: /home/natalie/public_html/404.shtml [Tue Oct 14 17:05:17 2003] [error] [client 128.163.95.66] File does not exist: /home/natalie/public_html/ezboard_files/deletetopic.gif [Tue Oct 14 17:05:17 2003] [error] [client 128.163.95.66] File does not exist: /home/natalie/public_html/404.shtml [Tue Oct 14 17:05:17 2003] [error] [client 128.163.95.66] File does not exist: /home/natalie/public_html/nataliebrown/artist_spotlight/noteables.gif [Tue Oct 14 17:03:42 2003] [error] [client 128.163.95.66] File does not exist: /home/natalie/public_html/404.shtml [Tue Oct 14 17:03:42 2003] [error] [client 128.163.95.66] File does not exist: /home/natalie/public_html/ezboard_files/deletetopic.gif [Tue Oct 14 17:03:42 2003] [error] [client 128.163.95.66] File does not exist: /home/natalie/public_html/404.shtml [Tue Oct 14 17:03:42 2003] [error] [client 128.163.95.66] File does not exist: /home/natalie/public_html/nataliebrown/artist_spotlight/noteables.gif [Tue Oct 14 16:33:02 2003] [error] [client 216.39.50.158] File does not exist: /home/natalie/public_html/404.shtml [Tue Oct 14 16:33:02 2003] [error] [client 216.39.50.158] File does not exist: /home/natalie/public_html/robots.txt [Tue Oct 14 16:30:34 2003] [error] [client 131.107.137.166] File does not exist: /home/natalie/public_html/404.shtml [Tue Oct 14 16:30:34 2003] [error] [client 131.107.137.166] File does not exist: /home/natalie/public_html/robots.txt [Tue Oct 14 16:24:40 2003] [error] [client 68.19.209.171] File does not exist: /home/natalie/public_html/404.shtml [Tue Oct 14 16:24:40 2003] [error] [client 68.19.209.171] File does not exist: /home/natalie/public_html/audio/realaudio/ysgtm_ra_clip.rm I have also been wondering why none of my Real Audio clips are streaming. This is a mystery to me. Thanks, Nat Quote
vendlus Posted October 15, 2003 Posted October 15, 2003 You said it stopped working?? What changed?? Did you switch servers or anything?? Quote
TCH-JimE Posted October 15, 2003 Posted October 15, 2003 Nat, 1) Get thoose missing page errors sorted, they harm your SEO ranking! 2) Submit the form, and then look at the 1st line, is it anything to do with the form itself? Sorry to ask so many questions. As it stands, the form looks fine so trying to see if there is anything else amiss Jim Quote
surefire Posted October 15, 2003 Posted October 15, 2003 The script has been updated several times. I don't know why there is a problem with your form or the code, but the latest version has lots of improvements over the one that you are using. Ultimate Form Mail Quote
webgyrl Posted October 16, 2003 Author Posted October 16, 2003 Well, 24 hours later I got the auto-responders. Maybe it was my ISP or something. What's strange is that I got the test to the email I get the newsletter subscriptions sent to right away, just the autoresponders took 24 hours to process and get to the email addies I used to test. Well, at least I know it works. I'll be sure to check that new version ASAP. About those page errors... I think they must be from someone trying to access those particular pages via bookmarks. I used to have my site as a sub site of another domain and now I have my own stuff seperate. I'm gonna go thru the errors tonight tho and see what I can fix. Thanks for the help. Nat Quote
webgyrl Posted October 16, 2003 Author Posted October 16, 2003 Hey guys- Any idea what these files would be? File does not exist: /home/natalie/public_html/robots.txt File does not exist: /home/natalie/public_html/404.shtml I'm not sure what they are and where, if anywhere, they should be. Thanks, Nat Quote
TCH-Don Posted October 16, 2003 Posted October 16, 2003 Nat, the robots.txt is a file that search engines look for to see if you do not want them to index a folder, so if you do not have one, it comes up missing. Then if you do not have an error page (404.shtml) that comes up missing. You can create a blank robots.txt file, or add to it if you like. See more about robots.txt in web site promotion And you should have an error page named 404.shtml It can be a simple page saying the page you are looking for does not exist, with a link back to the home page. See All about 404 error pages in Cpanel and Site maintenance Quote
webgyrl Posted October 16, 2003 Author Posted October 16, 2003 Turtle, Thanks for clearing that up. Should the robot.txt file contain anything specific? As for the shtml file, do I just make a regular 404 error file with the shtml extension and put it in the root folder. I don't recall ever having one, unless there was one with my last host that was a default file on the server side. Thanks again. Nat Quote
TCH-JimE Posted October 16, 2003 Posted October 16, 2003 Nat, For web robots, look here: http://www.robotstxt.org/wc/robots.html You can find what info to look at etc. Also, you can look at other peoples robot.txt files. E.g, go to googles robot file here: http://www.google.co.uk/robots.txt For error pages, I have the following set in my .htaccess: >ErrorDocument 404 Http://www.****/errors/error404.html ErrorDocument 403 Http://www.****.com/errors/error404.shtml ErrorDocument 401 Http://www.****.com/errors/error401.html Error pages need to be at least 10K in size due to a problem with IE, so stick a nice 12 K graphic in there too! Jim Quote
webgyrl Posted October 16, 2003 Author Posted October 16, 2003 Jim, Thanks a million for that info. From what I read, is it safe to assume that if I don't want to dissallow a robot from indexing or visiting any of the pages on my site I just open WordPad, create a blank robots.txt file and upload it to the root directory? Are these the same bots that harvest all the email addresses on my site and send me spam? If I want to dissallow a bot from doing that type of harvesting would I dissallow access to the contact.htm page? I'm a bit fearful of messing with my htaccess file. Is there a way to create those error pages in cPanel? If there are more detailed instructions on how to make those changes in htaccess, is there a link? I am assuming I'd create those html/shtml pages and upload them to the root directory and then make a note of that in the htaccess file? Is that correct? Thanks again. Nat Quote
TCH-Don Posted October 16, 2003 Posted October 16, 2003 Nat, the link I included above is a long but valuable discussion about 404 error pages. There were some very good ideas there contributed by many family members, that helped us to understand and make better error pages. And you will see that you do not have to mess with .htaccess just create, name 404.shtml and put in root folder, but as you will see in the discussions there are more options. Quote
webgyrl Posted October 16, 2003 Author Posted October 16, 2003 Turtle, I was just reading that info. I went to cPanel and I did change from the default page, but it's kinda simple. Gonna finish reading the thread you left. Thanks, Nat Quote
TCH-Don Posted October 16, 2003 Posted October 16, 2003 Be sure as Jim mentioned to make it at least 10k, you can make it look like your home page with links too. Quote
webgyrl Posted October 16, 2003 Author Posted October 16, 2003 Turtle, Just working on the new pages. Do I have to put the code into the cPanel Custom Error Pages code box or can I just upload the pages to the root directory? I noticed some people made 'error' folders and put the error pages in there. Is that better? Also, for the life of me I can't find my htaccess file. I checked at the vti folders etc, but it's not there. Where can I find it. Sorry for all the silly questions... I'm working on very little sleep these days trying to wrap this Christmas album in time. There are not enough hours in the day! Thanks, Nat Quote
TCH-Don Posted October 16, 2003 Posted October 16, 2003 Nat, I just used ftp to put the page in the root folder. As to not seeing the .htacces file which is in the root folder, your ftp program may not show hidden files. Mine did not, so I found another. You can see it using cpanel file manager, but I did not change mine, and it works, LOL Quote
webgyrl Posted October 16, 2003 Author Posted October 16, 2003 Oh OK. I am using Dreamweaver FTP so perhaps it doesn't show hidden files. I'll have to see if I can change that. Do I upload all the error pages as both HTML and SHTML files or just SHTML and the 404 as HTML and SHTML. I'm doing custom pages for 400, 401, 403, 404 and 500 Errors. Thanks again Nat Quote
TCH-Don Posted October 16, 2003 Posted October 16, 2003 Just shtml extension if DW will not use that extension, use html and then use cpanel file manager to rename. Note we are talking about just one page here 404.shtml which is the error page for file not found. I did not bother with the other error pages. Quote
webgyrl Posted October 16, 2003 Author Posted October 16, 2003 OK cool. I just uploaded both SHTML and HTML versions of all the error pages. I figured I just customize them all. I'll go now and take down the HTML versions if they are redundant. Thanks a million Turtle... didn't mean to make you do so much handholding today. I appreciate the help. I really must get some sleep!! All I hear are dayum Christmas chimes and sleighbells in my head! LOL Nat Quote
TCH-Don Posted October 16, 2003 Posted October 16, 2003 Looks good, when you check stats for 404 you will know I looked , LOL have a nice rest. Quote
webgyrl Posted October 16, 2003 Author Posted October 16, 2003 Thanks Turtle The pages are simple for now. When I have more time, I'll make them less boring! LOL See ya Quote
TCH-JimE Posted October 16, 2003 Posted October 16, 2003 Nice one! I have a seperate error folder that i refer ALL subdomains too, just makes life easier! Jim Quote
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.