Jump to content

Error Contact Form


Recommended Posts

Hello everybody I am having a little problem with the contact form, when sending an error message appears
equal to the picture below:

Warning: getmypid() has been disabled for security reasons in /home/vol1000/if_5372497/htdocs/tools/swift/Swift/Message.php on line 169


!http://img227.imageshack.us/img227/5913/errorz.jpg!

NOTE: For the record the message arrives ok in the mail, more on the store page is showing this error.

Link to comment
Share on other sites

Hi friend, I tried to do this, the more it stays the same error. I'm putting down the piece of code that is inside the file message.php
Thanks
Line 169 is the line that says "pid" => getmypid ()


/**
  * Create a RFC 2822 compliant message id, optionally based upon $idstring.
  * The message ID includes information about the current time, the server and some random characters.
  * @param string An optional string the base the ID on
  * @return string The generated message ID, including the <> quotes.
  * @author Cristian Rodriguez 
  */
 public function generateId($idstring=null)
 {
   $midparams =  array(
     "utctime" => gmstrftime("%Y%m%d%H%M%S"),
     "pid" => getmypid(),
     "randint" => mt_rand(),
     "customstr" => (preg_match("/^(?      "hostname" => (isset($_SERVER["SERVER_NAME"]) ? $_SERVER["SERVER_NAME"] : php_uname("n")),
   );
   $this->setId(vsprintf("<%s.%d.%d.%s@%s>", $midparams));
   return $this->getId();
 }
 /**
  * Get the generated message ID for this message, including the <> quotes.
  * If generated automatically, or using generateId() this method returns a RFC2822 compliant Message-ID.
  * @return string
  * @author Cristian Rodriguez 

Link to comment
Share on other sites

×
×
  • Create New...