{"id":585,"date":"2023-06-12T13:32:17","date_gmt":"2023-06-12T13:32:17","guid":{"rendered":"https:\/\/ahorseforonebin.co.uk\/?p=585"},"modified":"2023-06-12T14:03:07","modified_gmt":"2023-06-12T14:03:07","slug":"uncaught-error-call-to-undefined-function","status":"publish","type":"post","link":"https:\/\/ahorseforonebin.co.uk\/?p=585","title":{"rendered":"Uncaught Error: Call to undefined function"},"content":{"rendered":"\n<p><strong>TL\/DR; Your users may get a &#8216;There Has Been a Critical Error on This Website&#8217; message when they submit a comment<\/strong><\/p>\n\n\n\n<p>It probably means your webhost has disabled the PHPMailer function on a shared platform for security reasons. The fix is simple: download an SMTP plugin and use your website&#8217;s SMTP server and one of its email accounts and you&#8217;re good to go.<\/p>\n\n\n\n<p>NB, although your users get that scary message, their comment may still be posted on your website. The point of origin of that message is <strong>your website sending the notification to you<\/strong> not something your user is trying to do. But best fix it, eh?<\/p>\n\n\n\n<p>Big shout out (because that&#8217;s what us kids do) to <a href=\"https:\/\/masher.tv\" data-type=\"URL\" data-id=\"https:\/\/masher.tv\" target=\"_blank\" rel=\"noreferrer noopener\">Masher<\/a> for spotting this error and to me for fixing it.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>TL\/DR; Your users may get a &#8216;There Has Been a Critical Error on This Website&#8217; message when they submit a comment It probably means your webhost has disabled the PHPMailer function on a shared platform for security reasons. The fix is simple: download an SMTP plugin and use your website&#8217;s \u2026 <a class=\"continue-reading-link\" href=\"https:\/\/ahorseforonebin.co.uk\/?p=585\"> Continue reading <span class=\"meta-nav\">&rarr; <\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-585","post","type-post","status-publish","format-standard","hentry","category-admin"],"_links":{"self":[{"href":"https:\/\/ahorseforonebin.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/585","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ahorseforonebin.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ahorseforonebin.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ahorseforonebin.co.uk\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ahorseforonebin.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=585"}],"version-history":[{"count":4,"href":"https:\/\/ahorseforonebin.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/585\/revisions"}],"predecessor-version":[{"id":589,"href":"https:\/\/ahorseforonebin.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/585\/revisions\/589"}],"wp:attachment":[{"href":"https:\/\/ahorseforonebin.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=585"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ahorseforonebin.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=585"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ahorseforonebin.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=585"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}