emmerick Posted April 21, 2010 Share Posted April 21, 2010 Hello everybody I am having a little problem with the contact form, when sending an error message appearsequal 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 More sharing options...
tomerg3 Posted April 21, 2010 Share Posted April 21, 2010 Try adding @ in front of line 169 in the file, it will not show the error.If everything works fine except the error showing, it should be fine. Link to comment Share on other sites More sharing options...
emmerick Posted April 21, 2010 Author Share Posted April 21, 2010 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.phpThanksLine 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 More sharing options...
Recommended Posts