Reverse proxy & SSL: Unhandled Promise Rejection
-
Hi!
I’ve used Subscribe2 for many years now, mostly for a blog for around 10 people, next of kin, about us.
I migrated the WordPress installation of said blog to a new host, behind a reverse proxy. Every time we publish something, WP says:
Unhandled Promise Rejection: TypeError: undefined is not an object (evaluating ‘wp.data.select(“core/editor”).getEditedPostAttribute(“meta”)._s2mail’)
And that “publishing failed.” However, publishing succeeds and Subscribe2 sends out the mail to the world. I’m pretty used to rejections and promises that go unhandled, but this has me stumped. The relevant code (js) reads:
wp.apiFetch({
path: “/s2/v1/settings/s2meta_default”
}).then(function(e) {
var t = wp.data.select(“core/editor”).getEditedPostAttribute(“meta”)._s2mail;
“” === t && (“0” === e ? t = “yes” : “1” === e && (t = “no”), wp.data.dispatch(“core/editor”).editPost({
meta: {
_s2mail: t
}
}), wp.data.dispatch(“core/editor”).savePost())
}),The error also occurs when I use the host directly, over our LAN, without going through a reverse proxy.
I’d appreciate any insights and am willing to experiment.
Thanks!
The page I need help with: [log in to see the link]
- The topic ‘Reverse proxy & SSL: Unhandled Promise Rejection’ is closed to new replies.