mucchina74 Posted April 29, 2020 Share Posted April 29, 2020 (edited) Hello! I'm building a new prestashop site. I have the Cash On Delivery as only possible payment method. When the user clicks on "Order with need of payment" I get and HTTP Error 500, even if the order is correctly visible in the admin site, and the same error occurs when I try to resend the email from the admin site. The site URL involved is /module/ps_cashondelivery/validation For the URL at admin level giving the same error, please look at the attached screenhot. The email sending apparently is not the issue because the test email works fine. Did some of you experience the same issue or can some of you help me on this? The prestashop version is the 1.7.6.5. Enabling the debug mode, here is the error: (1/1) UndefinedFunctionException Attempted to call function "idn_to_ascii" from the global namespace. in Mail.php line 901 at MailCore::toPunycode('[email protected]')in Mail.php line 323 at MailCore::send(2, 'preparation', 'Preparazione in corso', array('{lastname}' => 'Palermo', '{firstname}' => 'Andrea', '{id_order}' => 12, '{order_name}' => 'GCZVERXOR', '{followup}' => '', '{shipping_number}' => '', '{total_paid}' => '2,50 €'), '[email protected]', 'Andrea Palermo', '[email protected]', 'LauraShop', null, null, '/web/htdocs/www.raffaellaziglioli.it/home/laura3/mails/', false, 1)in OrderHistory.php line 552 at OrderHistoryCore->sendEmail(object(Order), array())in OrderHistory.php line 468 at OrderHistoryCore->addWithemail(true, array())in PaymentModule.php line 557 at PaymentModuleCore->validateOrder(12, '3', 2.5, 'Pagamento in contrassegno', null, array(), null, false, 'd0935202d90cd7d8b7732500651439ea')in validation.php line 57 at Ps_CashondeliveryValidationModuleFrontController->postProcess()in Controller.php line 281 at ControllerCore->run()in Dispatcher.php line 515 at DispatcherCore->dispatch()in index.php line 28 Many thanks in advance! Raffaella Edited May 2, 2020 by mucchina74 (see edit history) Link to comment Share on other sites More sharing options...
JBW Posted April 30, 2020 Share Posted April 30, 2020 This function is part of the INTL PHP extension - you have to activate it through your webhoster panel or php.ini or contact your hoster to do so. 1 Link to comment Share on other sites More sharing options...
mucchina74 Posted May 2, 2020 Author Share Posted May 2, 2020 Many thanks JBW! That solved the issue! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now