• Resolved bendolo

    (@bendolo)


    I am encountering two critical issues regarding the redirection settings after confirmation:

    1. Custom URL Not Saving: When I enter a Custom URL into the field [Redirect after confirmation] [Add item] and click “Save,” the input is not persisted. The field either reverts to its previous state or becomes empty immediately after the page reloads.
    2. White Screen on Redirect: If I select an existing internal page instead of a custom URL, the redirection fails during testing. Instead of landing on the selected page, I am met with a blank white screen.

    Error Log Entry: I checked the server logs, and the following entry appears at the exact moment of the redirection attempt:

    [21-Apr-2026 07:59:26 UTC] PHP Fatal error:  Uncaught ValueError: Path must not be empty in /site/public_html/wp-content/plugins/mailerpress/src/Actions/Pages/Pages.php:370
    Stack trace:
    #0 /site/public_html/wp-includes/class-wp-hook.php(341): MailerPress\Actions\Pages\Pages->redirectTo404()
    #1 /site/public_html/wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters()
    #2 /site/public_html/wp-includes/plugin.php(522): WP_Hook->do_action()
    #3 /site/public_html/wp-includes/template-loader.php(23): do_action()
    #4 /site/public_html/wp-blog-header.php(19): require_once('...')
    #/site/public_html/index.php(17): require('...')
    #6 {main}
    thrown in /site/public_html/wp-content/plugins/mailerpress/src/Actions/Pages/Pages.php on line 370
    • This topic was modified 6 months, 2 weeks ago by bendolo.
    • This topic was modified 6 months, 2 weeks ago by bendolo.
    • This topic was modified 6 months, 2 weeks ago by bendolo.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor Benjamin Denis

    (@rainbowgeek)

    Hi,

    make sure to press Enter after adding your custom URL, then Save settings.

    We’ll improve that with our next major update.

    Let us know if it solves your issue or not.

    Thread Starter bendolo

    (@bendolo)

    Thank you for the instructions.

    Unfortunately, the issue persists. When I save the URL, I am not redirected to the target destination. Instead, the browser displays a blank page, and the address bar just shows:

    https://example.com/?mailpress-pages=mailerpress&action=confirm&cid=123…………..

    Furthermore, if I click the link in the confirmation email a second time, I encounter a WordPress-style error message: “There has been a critical error on this website.”

    Plugin Contributor Benjamin Denis

    (@rainbowgeek)

    Hi,

    our next update (v2) scheduled for today should help prevent this error.

    If after the upgrade this is still not the case, please let us know.

    Thread Starter bendolo

    (@bendolo)

    Unfortunately, I’m not able to test it myself at the moment.

    When you try to click Edit under Embed Forms. Nothing is displayed.

    react-dom.min.js?ver=18.3.1.1:10 Uncaught TypeError: w is not a function
    at Object.onClick (mail-editor.js?ver=9cfd4fa349446eba8c08:1:132846)
    at onClick (components.min.js?ver=0d72a218dfea8f6f442f:26:356226)
    at components.min.js?ver=0d72a218dfea8f6f442f:19:40085
    at Object.Xa (react-dom.min.js?ver=18.3.1.1:10:105345)
    at B (react-dom.min.js?ver=18.3.1.1:10:10501)
    at W (react-dom.min.js?ver=18.3.1.1:10:10556)
    at qe (react-dom.min.js?ver=18.3.1.1:10:23297)
    at Ke (react-dom.min.js?ver=18.3.1.1:10:23711)
    at react-dom.min.js?ver=18.3.1.1:10:29062
    at dl (react-dom.min.js?ver=18.3.1.1:10:85582)

    On my other site where the form is embedded, I am seeing the following error:

    Access to fetch at 'https://example1.com/wp-json/mailerpress/v1/embed/contact' from origin 'https://example2.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
    embed-widget.js:2 
    POST https://boilerplatenewsletter.com/wp-json/mailerpress/v1/embed/contact net::ERR_FAILED 500 (Internal Server Error)
    handleSubmit @ embed-widget.js:2
    (anonym) @ embed-widget.js:2
    (Index):288 Subscription error: TypeError: Failed to fetch
    at n.handleSubmit (embed-widget.js:2:13203)
    at HTMLFormElement.<anonymous> (embed-widget.js:2:1827)
    onError @ (Index):288
    handleSubmit @ embed-widget.js:2
    await in handleSubmit
    (anonym) @ embed-widget.js:2
    Thread Starter bendolo

    (@bendolo)

    Embed Forms are no longer working following the recent update.

    I also received the following message “Failed to fetch” and the other errors above

    Plugin Contributor Benjamin Denis

    (@rainbowgeek)

    Hi,

    embed forms is a PRO feature.

    Please open a support ticket from your customer area on mailerpress.com.

    Support for premium features is not allowed on w.org.

    Thank you for your understanding.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Custom URL in [Redirect after confirmation] is not saving’ is closed to new replies.