Script Üye Olurken Hata Veriyor
-
bir script kuurdum üye olurken bu hatayı alıyorum host şirketi escapeshellcmd fonksiyonu açmıyor bu fonsiyonla shell atılıyormuş bu hatayı nasıl düzeltirim başka yolu yokmu bu konuda yardımcı olacak mürid aroyorum
Hata: escapeshellcmd () güvenlik nedeniyle devre dışı bırakıldı
bu hatanın düzeltebileceğim bir link var ama ingilizce olduğu için anlamadım
https://github.com/PHPMailer/PHPMailer/issues/966
flybatwin tarafından 06/Kas/19 21:04 tarihinde düzenlenmiştir -
Bu methodu kullanırsanız escapeshellcmd kullanmadan işlem yaptırabilirsiniz diyor;
$mail->isSMTP();
Kullandığınız kodları ve aldığınız hatayı da paylaşsaydınız daha iyi olurdu.
-
bu hatayı alıyorum hocam mail ile üye olurken
{
"url": "/index.php?r=user%2Fauth%2Flogin",
"status": 500,
"response": "<pre>PHP Warning 'yii\\base\\ErrorException' with message 'escapeshellcmd() has been disabled for security reasons' \n\nin /home/r1owmyjd/public_html/protected/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/MailTransport.php:259\n\nStack trace:\n#0 [internal function]: yii\\base\\ErrorHandler->handleError(2, 'escapeshellcmd(...', '/home/r1owmyjd/...', 259, Array)\n#1 /home/r1owmyjd/public_html/protected/vendor/swiftmailer/swiftmailer/lib/classes/Swift...",
"textStatus": "error",
"xhr": {
"readyState": 4,
"responseText": "<pre>PHP Warning 'yii\\base\\ErrorException' with message 'escapeshellcmd() has been disabled for security reasons' \n\nin /home/r1owmyjd/public_html/protected/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/MailTransport.php:259\n\nStack trace:\n#0 [internal function]: yii\\base\\ErrorHandler->handleError(2, 'escapeshellcmd(...', '/home/r1owmyjd/...', 259, Array)\n#1 /home/r1owmyjd/public_html/protected/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/MailTransport.php(259): escapeshellcmd('admin@r1o.net')\n#2 /home/r1owmyjd/public_html/protected/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/MailTransport.php(288): Swift_Transport_MailTransport->_isShellSafe('admin@r1o.net')\n#3 /home/r1owmyjd/public_html/protected/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/MailTransport.php(176): Swift_Transport_MailTransport->_formatExtraParams('-f%s', 'admin@r1o.net')\n#4 /home/r1owmyjd/public_html/protected/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mailer.php(85): Swift_Transport_MailTransport->send(Object(Swift_Message), Array)\n#5 /home/r1owmyjd/public_html/protected/vendor/yiisoft/yii2-swiftmailer/Mailer.php(146): Swift_Mailer->send(Object(Swift_Message))\n#6 /home/r1owmyjd/public_html/protected/humhub/components/mail/Mailer.php(117): yii\\swiftmailer\\Mailer->sendMessage(Object(humhub\\components\\mail\\Message))\n#7 /home/r1owmyjd/public_html/protected/vendor/yiisoft/yii2/mail/BaseMailer.php(263): humhub\\components\\mail\\Mailer->sendMessage(Object(humhub\\components\\mail\\Message))\n#8 /home/r1owmyjd/public_html/protected/vendor/yiisoft/yii2/mail/BaseMessage.php(49): yii\\mail\\BaseMailer->send(Object(humhub\\components\\mail\\Message))\n#9 /home/r1owmyjd/public_html/protected/humhub/modules/user/models/Invite.php(148): yii\\mail\\BaseMessage->send()\n#10 /home/r1owmyjd/public_html/protected/humhub/modules/user/models/Invite.php(122): humhub\\modules\\user\\models\\Invite->sendInviteMail()\n#11 /home/r1owmyjd/public_html/protected/humhub/modules/user/controllers/AuthController.php(90): humhub\\modules\\user\\models\\Invite->selfInvite()\n#12 [internal function]: humhub\\modules\\user\\controllers\\AuthController->actionLogin()\n#13 /home/r1owmyjd/public_html/protected/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array)\n#14 /home/r1owmyjd/public_html/protected/vendor/yiisoft/yii2/base/Controller.php(157): yii\\base\\InlineAction->runWithParams(Array)\n#15 /home/r1owmyjd/public_html/protected/vendor/yiisoft/yii2/base/Module.php(528): yii\\base\\Controller->runAction('login', Array)\n#16 /home/r1owmyjd/public_html/protected/vendor/yiisoft/yii2/web/Application.php(103): yii\\base\\Module->runAction('user/auth/login', Array)\n#17 /home/r1owmyjd/public_html/protected/vendor/yiisoft/yii2/base/Application.php(386): yii\\web\\Application->handleRequest(Object(humhub\\components\\Request))\n#18 /home/r1owmyjd/public_html/index.php(25): yii\\base\\Application->run()\n#19 {main}</pre>",
"status": 500,
"statusText": "error"
},
"dataType": "html",
"html": "<pre>PHP Warning 'yii\\base\\ErrorException' with message 'escapeshellcmd() has been disabled for security reasons' \n\nin /home/r1owmyjd/public_html/protected/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/MailTransport.php:259\n\nStack trace:\n#0 [internal function]: yii\\base\\ErrorHandler->handleError(2, 'escapeshellcmd(...', '/home/r1owmyjd/...', 259, Array)\n#1 /home/r1owmyjd/public_html/protected/vendor/swiftmailer/swiftmailer/lib/classes/Swift...",
"error": {},
"errorThrown": "",
"validationError": false
} -
buraya kodlari koymak cok zor dimi amk? muneccim yarragi mi yedik ki senin hata veren kodlarini bilelimde yorum yapalim?
-
AbdullahAzad bunu yazdı
buraya kodlari koymak cok zor dimi amk? muneccim yarragi mi yedik ki senin hata veren kodlarini bilelimde yorum yapalim?
koydum hocam kodu
-
oku burayi https://github.com/swiftmailer/swiftmailer/issues/844
-
AbdullahAzad bunu yazdı
buraya kodlari koymak cok zor dimi amk? muneccim yarragi mi yedik ki senin hata veren kodlarini bilelimde yorum yapalim?
Hocam adama ne sövüyorsun medenice kodlari koymasini rica etsen yeterli degil mi ?
-
Reskam bunu yazdıAbdullahAzad bunu yazdı
buraya kodlari koymak cok zor dimi amk? muneccim yarragi mi yedik ki senin hata veren kodlarini bilelimde yorum yapalim?
Hocam adama ne sövüyorsun medenice kodlari koymasini rica etsen yeterli degil mi ?
hangi kufur adama itafen yazilmis bi soylesene?
sene 2019 kod koyar misiniz sehzademiz dememize gerek var mi?
-
kodlarla okadar uraştım olmadı hocam
-
$mail->isSMTP();
bunu ekliyecem ama hangi php dosyasına koyacam bulamadım -
Hocam kullandığınız kodları code share sitelerinden birinde paylaşıp linkini eklerseniz daha rahat yardımcı oluruz.
Görmediğimiz bir kod için birşey diyemeyiz.