![]() |
PHP Problem
Hey guys I created a login interface for my site. Now the only problem is I am getting this message from everyone that has tried to register.
"We apologize but there has been a problem sending your email, possibly due to high network congestion. <br><br>Please wait for this page to redirect you to the Login page where you can choose to have your activation details resent. If it does not please use the link provided below." What could be the possible php problems that are not allowing anyone to register? I have no support from the host so by going through the php setup I see only one thing that could be the source which is "$cfg['Servers'][$i]['']" Thing is with the php script I am using there is no config.php. Anyone that has any idea seriously hit me up icq style. |
better tell what script name in question and maybe you find someone who dealt with this script.
|
could be due to a ' time-out " ... try to see if you can increase that value, if you find it.
As said above, name and url of script could help, as well as your php.ini file |
well the script is authsuite ....http://www.bespoke-software-solutions.co.uk/
the user management sys |
Have no clue. I could help if I could see some source code.
|
mail settings in the script or on the server are most likely not configured incorrectly... but without seeing the script, it's pretty hard to debug what the problem is...
|
if any of you guys would like to take a look hit me up on icq im on now
|
when looking at the mysql database with my host i get this problem occuring
"PMA Database ... not OK[ Documentation ] General relation features Disabled" now when looking at the documentation i see this " $cfg['Servers'][$i]['pmadb'] string The name of the database containing the linked-tables infrastructure. See the Linked-tables infrastructure section in this document to see the benefits of this infrastructure, and for a quick way of creating this database and the needed tables. If you are the only user of this phpMyAdmin installation, you can use your current database to store those special tables; in this case, just put your current database name in $cfg['Servers'][$i]['pmadb']. For a multi-user installation, set this parameter to the name of your central database containing the linked-tables infrastructure. " if anyone knows this stuff please help me out and message me on icq |
Linked-tables infrastructure (PMA Database) has nothing to do with your problem. Linked-tables is the feature of phpMyAdmin with which you can leave comments for tables and field columns as well as pull data with foreign keys from several tables for visual disply only through phpmyadmin interface.
problem lays somewhere outside of phpmyadmin scripts, in actual scripts that used for registration, as woj said probably something with mail config in those scripts, but its impossible to tell anything from that error your getting. this could also be if you're on a shared hosting and local smtp server is out of your reach or simply disabled, again this is just a guess. |
i appreciate the help so far guys
with all the different php files i dont have a mail or a config php file just an activate, recoverpword and sndactivate php files that have something to do with mail. but the strings dont show anything for my email to send out anything there is a string for C_EMAIL which is the customer email address "$sql = mysql_query("SELECT C_EMAIL, C_USER_NAME, C_MAIL_TYPE FROM customer where C_KEY = '$cookie'", $link); $num = mysql_num_rows($sql); if($num != 0) { while($row = mysql_fetch_array($sql)) { $email = ($row["C_EMAIL"]); $username = ($row["C_USER_NAME"]); $type = ($row["C_MAIL_TYPE"]); " |
bump dude
|
Post the part where it does mail
Also, what host? Dedicated or Virtual? |
its a dedicated host ...
$headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; $headers .= 'From: [email protected]' . "\r\n"; $snd = mail($email, $regard, $htmlMail, $headers); if($snd) { setcookie("key:", $cookie, time()-86400); $msg = ("Your user details have been sent to your email account for future reference. Please ensure you keep these details safe as without them you cannot caccess your account<br><br>This page will automatically redirect you to the Login page in 5 seconds. If it does not please use the link provided below."); mysql_close($link); } else { setcookie("key:", $cookie, time()-86400); $msg = ("We apologize but there has been a problem sending your email, possibly due to high network congestion. Your password has been updated and is <br><b>$pword</b><br><br>Please wait for this page to redirect you to the Login page. If it does not please use the link provided below."); mysql_close($link); } } else is one part where mail is mentioned and "if($num != 0) { while($row = mysql_fetch_array($sql)) { $email = ($row["C_EMAIL"]); $username = ($row["C_USER_NAME"]); $type = ($row["C_MAIL_TYPE"]); and else { setcookie("key:", $cookie, time()-86400); $msg = ("We apologize but there has been a problem sending your email, possibly due to high network congestion. <br><br>Please wait for this page to redirect you to the Login page where you can choose to have your activation details resent. If it does not please use the link provided below."); mysql_close($link); } } else when anyone tries to register but without the php tags just the we apologize etc etc but i do not see a line for my email to send from...should there be a line that has $email? now i did find this on the insert.php script if(($error == 0) && ($email != $chkEmail)) // error checking |
from original post error is related to this line "$msg = ("We apologize but there has been a problem sending your email...." in you last post
that happens in the Else statement of if($snd)... so something is not working with that variable which represents $snd = mail($email, $regard, $htmlMail, $headers); as far as we know $headers are there, but have no idea what are $email, $regard and $htmlMail actually are in $snd=mail(...) line either not everything gets to that mail function or smtp is not configed right, find on the net simple mail() example or even from php manual make a saparate php file and test if that works correctly, if you can actually send an email with mail() function, this way you'll know if its smtp or something with the script... sorry can't provide mail() sample myself right now good luck! |
make sure you have imap installed on your server.
|
under $snd=
add Code:
echo "$email<br>$regard<br>$htmlMail<br>$headers"; what version of PHP are you using? |
i dont see imap installed anywhere
how do i go about getting imap installed? and i us godaddy for my hosting and when it comes down to it i cant tell if its 4.1 php or 5.0 php nonetheless i stated i had a dedicated server but its virtual I HATE GODADDY I just got off the phone with them and they are of no help. just renewed hosting with these fucks and the support i get is horrible. |
getting the same error
now i just looked at the whole hosting issue and noticed something the rep failed to tell me. i think i dont even have php because i see cgi-b and mysql 4.1 but nothing about php the php hosting options have perl this is fustrating |
I am sure that GoDaddy has php installed ... Come on ...
to see what librairies are installed, v=create a text file with this: PHP Code:
Uplaode it to your server. You should get a page like: http://www.pdgcash.com/phpinfo.php The script you use doesn't need any unusual components. |
if you browse to a PHP page and it asks you to save it, you dont have PHp installed. If you can see the page fine to register, you must have PHP installed.
Whether you have a dedicated server or not, (sounds more like you have a VPS) you should have no issues adding the lines above to see what they output so you know what is failing and what the error is as you are putting the mail failure response into a variable. From what I remember, it is usually a problem with headers with Godaddy. try changing Code:
$headers = 'MIME-Version: 1.0' . "\r\n"; Code:
$headers = 'MIME-Version: 1.0' . "\r\n"; |
changed the $headers but same problem
its unreal if any of u guys want to take a look just icq me this is driving me crazy |
and thanx for the phpinfo.php info
i found out i have php 4.4.1 or such thanx man |
unless your running php 5 you need imap installed. if you are running 5 then you need to enable imap. by default it is not installed
|
It sounds like most likely the PHP settings for sending mail ay be messed up,
but I wouldn't spend much more time on that script anyway. Anyone can log in through that script and get into your members' area without signing up with a very simple attack that any script kiddie knows. They just enter this information and get right in: user: ' OR 1=1 pass: ' OR 1=1 You might want to go with a real security system like you see succesful professional webmasters using, such as Strongbox. |
where do i get imap from?
and strongbox....man that costs money. If i get sponsors that donate to the website then i can think about spending money other than that it will have to work and simple people that like to browse photos arent thinking of php scripting and how to breach security |
Quote:
If not: - change script to a simple .htaccess file or - change host If you want a free trial of 7 days, hit me up ... on ICQ or email |
|
great no IMAP is even on the info.php
just great i would switch but I just spent money renewing with godaddy and that is alot of stuff to move over |
this does not make me a happy camper
|
Quote:
If you want , I will give you a free month. Move your stuff , test it out, make up your mind ... After 30days, you will know what is best for YOU ... I can help moving your stuff, but I doubt you have SSH or a compatible Control Panel. Then you need to move manually, dumping the databases, re-installing the scripts and so on. If interested, drop me an email at pierre -AT- pdghosting.com. But that wont be done tonight... |
add error_reporting(E_ALL); at the top of your page, just below the opening php tag <?php or <?, try to run through it all and see if it displays any different errors
|
Also just to add, imap has nothing to do with it... php's mail function uses sendmail
|
not sure why some people mention imap here, i wouldn't get puzzled over it.
Quote:
Quote:
also see if display_errors is on or not (thats for debugging useful to see what might be a problem with php code) if its off you might want to put error_reporting(E_ALL); in php code of a file that handles submitted registrations for time being (that's the file that is being called by <form's action attribute) |
thanks guys
all the help is appreciated |
Why not just contact the host? If they are any good, they will look into the problem, and at the very least will offer some advice on how to solve it... or perhaps offer a few bucks, and I'm sure some tech person from here would be willing to check it out....
|
well i contacted godaddy and they provide NO SUPPORT at all. I have been working on the script. If i had the change id get someone to do it for me but I am pretty sure I will have it up in a few weeks after doing trial and error troubleshooting. Godaddy does not install IMAP at all according to two techs I talked to. PDG hosting I appreciate the offer but at the moment moving everything I cant risk while I am trying to get sponsors to pick up the website.
I appreciate all the help I have gotten here. |
I Fucking Got It
I Got It It Works Bwaaaaaaaaaahahahahahahaahahahaahahahahahaha Thanx To You Guys |
probably a mail setting on the box if it was never working.
|
nah it was the php.ini
|
All times are GMT -7. The time now is 11:19 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123