PHP Problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • LouisianaGuys
    Confirmed User
    • Apr 2007
    • 227

    #1

    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.

    444344622
  • Serge Litehead
    Confirmed User
    • Dec 2002
    • 5190

    #2
    better tell what script name in question and maybe you find someone who dealt with this script.

    Comment

    • directfiesta
      Too lazy to set a custom title
      • Oct 2002
      • 30135

      #3
      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
      I know that Asspimple is stoopid ... As he says, it is a FACT !

      But I can't figure out how he can breathe or type , at the same time ....

      Comment

      • LouisianaGuys
        Confirmed User
        • Apr 2007
        • 227

        #4
        well the script is authsuite ....http://www.bespoke-software-solutions.co.uk/

        the user management sys

        444344622

        Comment

        • Nookster
          Confirmed IT Professional
          • Nov 2005
          • 3744

          #5
          Have no clue. I could help if I could see some source code.
          The Best Affiliate Software, Ever.

          Comment

          • woj
            <&(©¿©)&>
            • Jul 2002
            • 47882

            #6
            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...
            Custom Software Development, email: woj#at#wojfun#.#com to discuss details or skype: wojl2000 or gchat: wojfun or telegram: wojl2000
            Affiliate program tools: Hosted Galleries Manager Banner Manager Video Manager
            Wordpress Affiliate Plugin Pic/Movie of the Day Fansign Generator Zip Manager

            Comment

            • LouisianaGuys
              Confirmed User
              • Apr 2007
              • 227

              #7
              if any of you guys would like to take a look hit me up on icq im on now

              444344622

              Comment

              • LouisianaGuys
                Confirmed User
                • Apr 2007
                • 227

                #8
                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

                444344622

                Comment

                • Serge Litehead
                  Confirmed User
                  • Dec 2002
                  • 5190

                  #9
                  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.

                  Comment

                  • LouisianaGuys
                    Confirmed User
                    • Apr 2007
                    • 227

                    #10
                    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"]);
                    "

                    444344622

                    Comment

                    • techtony
                      Confirmed User
                      • Jun 2007
                      • 668

                      #11
                      bump dude
                      The Freak and Geek Show
                      The F&G Network The F&G Shop

                      ICQ# 486382410

                      Comment

                      • 4Pics
                        Confirmed User
                        • Dec 2001
                        • 7952

                        #12
                        Post the part where it does mail

                        Also, what host? Dedicated or Virtual?

                        Comment

                        • LouisianaGuys
                          Confirmed User
                          • Apr 2007
                          • 227

                          #13
                          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

                          444344622

                          Comment

                          • Serge Litehead
                            Confirmed User
                            • Dec 2002
                            • 5190

                            #14
                            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!

                            Comment

                            • Baal.PitBull
                              Confirmed User
                              • Aug 2007
                              • 205

                              #15
                              make sure you have imap installed on your server.
                              I'll fly a sig when I get damn good and ready..

                              Grab your dick and double click..

                              Comment

                              • jimbona
                                Confirmed User
                                • Jan 2007
                                • 190

                                #16
                                under $snd=
                                add
                                Code:
                                echo "$email<br>$regard<br>$htmlMail<br>$headers";
                                echo $snd;
                                see what values are returned, if any are blank then it wont send the mail.
                                what version of PHP are you using?
                                Thanks
                                Paul
                                Thunder-Ball.net - Member

                                Comment

                                • LouisianaGuys
                                  Confirmed User
                                  • Apr 2007
                                  • 227

                                  #17
                                  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.

                                  444344622

                                  Comment

                                  • LouisianaGuys
                                    Confirmed User
                                    • Apr 2007
                                    • 227

                                    #18
                                    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

                                    444344622

                                    Comment

                                    • directfiesta
                                      Too lazy to set a custom title
                                      • Oct 2002
                                      • 30135

                                      #19
                                      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:
                                      <?php phpinfo(); ?>
                                      and name it phpinfo.php

                                      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.
                                      I know that Asspimple is stoopid ... As he says, it is a FACT !

                                      But I can't figure out how he can breathe or type , at the same time ....

                                      Comment

                                      • jimbona
                                        Confirmed User
                                        • Jan 2007
                                        • 190

                                        #20
                                        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";
                                        $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
                                        $headers .= 'From: [email protected]' . "\r\n";
                                        to
                                        Code:
                                        $headers = 'MIME-Version: 1.0' . "\r\n";
                                        $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
                                        $headers .= 'From: [email protected] <[email protected]>' . "\r\n";
                                        as the header isnt fully valid.
                                        Thanks
                                        Paul
                                        Thunder-Ball.net - Member

                                        Comment

                                        • LouisianaGuys
                                          Confirmed User
                                          • Apr 2007
                                          • 227

                                          #21
                                          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

                                          444344622

                                          Comment

                                          • LouisianaGuys
                                            Confirmed User
                                            • Apr 2007
                                            • 227

                                            #22
                                            and thanx for the phpinfo.php info
                                            i found out i have php 4.4.1 or such

                                            thanx man

                                            444344622

                                            Comment

                                            • Baal.PitBull
                                              Confirmed User
                                              • Aug 2007
                                              • 205

                                              #23
                                              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
                                              I'll fly a sig when I get damn good and ready..

                                              Grab your dick and double click..

                                              Comment

                                              • raymor
                                                Confirmed User
                                                • Oct 2002
                                                • 3745

                                                #24
                                                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.
                                                For historical display only. This information is not current:
                                                support&#64;bettercgi.com ICQ 7208627
                                                Strongbox - The next generation in site security
                                                Throttlebox - The next generation in bandwidth control
                                                Clonebox - Backup and disaster recovery on steroids

                                                Comment

                                                • LouisianaGuys
                                                  Confirmed User
                                                  • Apr 2007
                                                  • 227

                                                  #25
                                                  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

                                                  444344622

                                                  Comment

                                                  • directfiesta
                                                    Too lazy to set a custom title
                                                    • Oct 2002
                                                    • 30135

                                                    #26
                                                    Originally posted by LouisianaGuys
                                                    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
                                                    Imap is compiled by the host ... All my virtual servers have that ... Ask godaddy if it is active by default.

                                                    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
                                                    I know that Asspimple is stoopid ... As he says, it is a FACT !

                                                    But I can't figure out how he can breathe or type , at the same time ....

                                                    Comment

                                                    • directfiesta
                                                      Too lazy to set a custom title
                                                      • Oct 2002
                                                      • 30135

                                                      #27
                                                      Look at YOUR phpinfo.php ... it should say ...
                                                      It does on mine:

                                                      http://www.pdgcash.com/phpinfo.php
                                                      I know that Asspimple is stoopid ... As he says, it is a FACT !

                                                      But I can't figure out how he can breathe or type , at the same time ....

                                                      Comment

                                                      • LouisianaGuys
                                                        Confirmed User
                                                        • Apr 2007
                                                        • 227

                                                        #28
                                                        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

                                                        444344622

                                                        Comment

                                                        • LouisianaGuys
                                                          Confirmed User
                                                          • Apr 2007
                                                          • 227

                                                          #29
                                                          this does not make me a happy camper

                                                          444344622

                                                          Comment

                                                          • directfiesta
                                                            Too lazy to set a custom title
                                                            • Oct 2002
                                                            • 30135

                                                            #30
                                                            Originally posted by LouisianaGuys
                                                            great no IMAP is even on the info.php

                                                            just great

                                                            i wouays, d switch but I just spent money renewing with godaddy and that is aloto f stuff to move over
                                                            Time is money... so don't lose your time... Today, you have this problem, tomorrow another ( Imagemagick, zend optimizer, curl, etc ...)

                                                            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...
                                                            I know that Asspimple is stoopid ... As he says, it is a FACT !

                                                            But I can't figure out how he can breathe or type , at the same time ....

                                                            Comment

                                                            • GeXus
                                                              Confirmed User
                                                              • May 2003
                                                              • 3320

                                                              #31
                                                              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

                                                              Comment

                                                              • GeXus
                                                                Confirmed User
                                                                • May 2003
                                                                • 3320

                                                                #32
                                                                Also just to add, imap has nothing to do with it... php's mail function uses sendmail

                                                                Comment

                                                                • Serge Litehead
                                                                  Confirmed User
                                                                  • Dec 2002
                                                                  • 5190

                                                                  #33
                                                                  not sure why some people mention imap here, i wouldn't get puzzled over it.


                                                                  Originally posted by LouisianaGuys
                                                                  well the script is authsuite ....http://www.bespoke-software-solutions.co.uk/

                                                                  the user management sys
                                                                  just to clarify if you followed all of the instructions for the script
                                                                  INSTRUCTIONS FOR USE:
                                                                  In order for you to use these scripts you must have access to a MySQL dB and have a PHP parser.
                                                                  -------
                                                                  1. Use the sql script create_cus_table.sql to create the customer_db and customer table. If you already have a database remove the first two lines of the script as otherwise you create a new dB. If you use your own dB (and not the pre-defined customer_db one) you will have to edit the database name on all scripts which access the database.
                                                                  -------
                                                                  2. Edit the database connection string so it contains your dB login details ON ALL PHP PAGES WHICH CONNECT TO THE DATABASE.
                                                                  -------
                                                                  3. Copy all files from the 'files' folder to the root directory of your site.
                                                                  -------
                                                                  4. Customise the outgoing emails to your taste in the activate.php, recoverpword.php and sndactivate.php files.
                                                                  -------
                                                                  5. Update styles / CSS as required.
                                                                  -------
                                                                  6. Customise error messages and forms to your tastes
                                                                  -------
                                                                  7. On all pages you wish to restrict to member access only, copy the php code from lobby.php and insert it at the top of your document(s). This code checks to make sure the user has the required cookie (issued during login) and resets it for 5 minutes if they do. This means that a user has 5 minutes to perform an action before the cookie and their session expires and they have to log in again. By adding this code to all pages within the 'restricted zone' you will prevent people without the cookie from viewing them as they are instantly redirected to the cookie error page.
                                                                  since you have phpinfo thingie handy check if SMTP present there, if not it won't send mail, if yes look for "disable_functions" see if mail is in there

                                                                  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)

                                                                  Comment

                                                                  • LouisianaGuys
                                                                    Confirmed User
                                                                    • Apr 2007
                                                                    • 227

                                                                    #34
                                                                    thanks guys
                                                                    all the help is appreciated

                                                                    444344622

                                                                    Comment

                                                                    • woj
                                                                      <&(©¿©)&>
                                                                      • Jul 2002
                                                                      • 47882

                                                                      #35
                                                                      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....
                                                                      Custom Software Development, email: woj#at#wojfun#.#com to discuss details or skype: wojl2000 or gchat: wojfun or telegram: wojl2000
                                                                      Affiliate program tools: Hosted Galleries Manager Banner Manager Video Manager
                                                                      Wordpress Affiliate Plugin Pic/Movie of the Day Fansign Generator Zip Manager

                                                                      Comment

                                                                      • LouisianaGuys
                                                                        Confirmed User
                                                                        • Apr 2007
                                                                        • 227

                                                                        #36
                                                                        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.

                                                                        444344622

                                                                        Comment

                                                                        • LouisianaGuys
                                                                          Confirmed User
                                                                          • Apr 2007
                                                                          • 227

                                                                          #37
                                                                          I Fucking Got It
                                                                          I Got It

                                                                          It Works
                                                                          Bwaaaaaaaaaahahahahahahaahahahaahahahahahaha


                                                                          Thanx To You Guys

                                                                          444344622

                                                                          Comment

                                                                          • tg989
                                                                            Registered User
                                                                            • Jun 2007
                                                                            • 89

                                                                            #38
                                                                            probably a mail setting on the box if it was never working.
                                                                            there are 10 types of people in the world, those who understand binary, and those who don't.

                                                                            Comment

                                                                            • LouisianaGuys
                                                                              Confirmed User
                                                                              • Apr 2007
                                                                              • 227

                                                                              #39
                                                                              nah it was the php.ini

                                                                              444344622

                                                                              Comment

                                                                              Working...