XF 2.2 Error email / proc_open activated

cosmin85

Active member
Hi,
I have a shared hosting where i installed xf 2.2 and i get this errors on admin panel .
The proc__open are enabled , also i have disable it for test , still get it with every sended email .
The email are sent , but i get that error always . Any form to get this works without errors ?

PS
Is a fresh install , no addons , no themes.


Code:
ErrorException: Email to info@******.com failed: [E_WARNING] proc_close() has been disabled for security reasons
src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php:107


Code:
#0 [internal function]: XF::handlePhpError(2, '[E_WARNING] pro...', '/var/home/foroc...', 107, Array)
#1 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php(107): proc_close(Resource id #190)
#2 src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/SendmailTransport.php(132): Swift_Transport_StreamBuffer->terminate()
#3 src/XF/Mail/Mailer.php(304): Swift_Transport_SendmailTransport->send(Object(Swift_Message), Array)
#4 src/XF/Mail/Mail.php(404): XF\Mail\Mailer->send(Object(Swift_Message), Object(Swift_SendmailTransport), NULL, false)
#5 src/XF/Admin/Controller/Tools.php(278): XF\Mail\Mail->send(Object(Swift_SendmailTransport), false)
#6 src/XF/Mvc/Dispatcher.php(350): XF\Admin\Controller\Tools->actionTestEmail(Object(XF\Mvc\ParameterBag))
#7 src/XF/Mvc/Dispatcher.php(257): XF\Mvc\Dispatcher->dispatchClass('XF:Tools', 'TestEmail', Object(XF\Mvc\RouteMatch), Object(XF\Admin\Controller\Tools), NULL)
#8 src/XF/Mvc/Dispatcher.php(113): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(XF\Admin\Controller\Tools), NULL)
#9 src/XF/Mvc/Dispatcher.php(55): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#10 src/XF/App.php(2326): XF\Mvc\Dispatcher->run()
#11 src/XF.php(488): XF\App->run()
#12 admin.php(13): XF::runApp('XF\\Admin\\App')
#13 {main}

Code:
array(4) {
  ["url"] => string(27) "/admin.php?tools/test-email"
  ["referrer"] => string(54) "https://******.com/admin.php?tools/test-email"
  ["_GET"] => array(1) {
    ["tools/test-email"] => string(0) ""
  }
  ["_POST"] => array(2) {
    ["email"] => string(24) "info@******.com"
    ["_xfToken"] => string(8) "********"
  }
}
 
Last edited:
This:
Your host has disabled the proc_close function, though oddly, presumably not the proc_open function, which really makes no sense.

You should contact them to see if they'll enable it. If they don't, the only recommendations would be to use SMTP to send mails or a different host that doesn't arbitrarily limit legitimate/useful PHP functions.
 
Top Bottom