sahilsaid Posted February 16, 2010 Share Posted February 16, 2010 Hi I really need help very quickly I have a error on my checkoput page when paypal express checkout button is clicked here is teh eroor: Fatal error: Call to undefined function htmlentitydecode() in /home/thechea6/public_html/includes/modules/payment/paypal_wpp.php on line 636 Here is the fuunction that is giving the error htmlspecialchars(htmlentitydecode(tep_href_link(basename($_SERVER['SCRIPT_NAME']),'action=express_checkout', 'SSL'))); $order_info['PAYPAL_CANCEL_URL'] = htmlspecialchars(htmlentitydecode(tep_href_link($redirect_path, $redirect_attr, 'SSL'))); Please tell me what to do to solve this problem. IO searched on internet for long time and couldn't find anything therefore I have created a new topic. Dont delte it please moderator. Quote Link to comment Share on other sites More sharing options...
yama Posted February 17, 2010 Share Posted February 17, 2010 htmlentitydecode should be changed to html_entity_decode In paypal_wpp.php change these lines: $order_info['PAYPAL_RETURN_URL'] = htmlspecialchars(htmlentitydecode(tep_href_link(basename($_SERVER['SCRIPT_NAME']),'action=express_checkout', 'SSL'))); $order_info['PAYPAL_CANCEL_URL'] = htmlspecialchars(htmlentitydecode(tep_href_link($redirect_path, $redirect_attr, 'SSL'))); To this: $order_info['PAYPAL_RETURN_URL'] = htmlspecialchars(html_entity_decode(tep_href_link(basename($_SERVER['SCRIPT_NAME']),'action=express_checkout', 'SSL'))); $order_info['PAYPAL_CANCEL_URL'] = htmlspecialchars(html_entity_decode(tep_href_link($redirect_path, $redirect_attr, 'SSL'))); Quote Link to comment Share on other sites More sharing options...
sahilsaid Posted February 17, 2010 Author Share Posted February 17, 2010 Thank you very much, that change worked. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.