• Hello,

    I have Version 5.10.0 (free), WP6.7.2 and WC Version 9.7.1. Today got the first time error as below:

    Exception: Invalid API endpoint. in /home/SorryHidedmysite/SorryHidedmysite.com/wp-content/plugins/mailpoet/lib/API/JSON/API.php:193

    Stack Trace


    1. MailPoet\API\JSON\API->processRoute()
      /home/SorryHidedmysite/SorryHidedmysite.com/wp-content/plugins/mailpoet/lib/Subscription/Form.php:33

    2. MailPoet\Subscription\Form->onSubmit(Array)
      /home/SorryHidedmysite/SorryHidedmysite.com/wp-includes/class-wp-hook.php:324

    3. WP_Hook->apply_filters(”, Array)
      /home/SorryHidedmysite/SorryHidedmysite.com/wp-includes/class-wp-hook.php:348

    4. WP_Hook->do_action(Array)
      /home/SorryHidedmysite/SorryHidedmysite.com/wp-includes/plugin.php:517

    5. do_action(‘admin_post_nopr…’)
      /home/SorryHidedmysite/SorryHidedmysite.com/wp-admin/admin-post.php:61

    6. {main}

    Please advise how to fix it. Thanks in advance!

Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Support Saravanan S, a11n

    (@simplysaru)

    Hi @cfm168,

    Sorry to hear about these errors. Would it be possible for you to do a conflict test? We have some instructions here, and we recommend you use the Health Check plugin for such a test.

    Do keep us posted on how the recommended suggestion works out for you, and we can debug this further.

    Thread Starter cfm168

    (@cfm168)

    Hi @simplysaru,

    Thank you for your response. I used the Health Check plugin and tested (deactivated all plugins including woocommerce), the error persists:

    [06-Apr-2025 12:18:26 UTC] Exception: Invalid API endpoint. in /home/SorryHidedmysite/SorryHidedmysite.com/wp-content/plugins/mailpoet/lib/API/JSON/API.php:193

    Stack trace:

    0 /home/SorryHidedmysite/SorryHidedmysite.com/wp-content/plugins/mailpoet/lib/Subscription/Form.php(33): MailPoet\API\JSON\API->processRoute()

    1 /home/SorryHidedmysite/SorryHidedmysite.com/wp-includes/class-wp-hook.php(324): MailPoet\Subscription\Form->onSubmit(Array)

    2 /home/SorryHidedmysite/SorryHidedmysite.com/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(”, Array)

    3 /home/SorryHidedmysite/SorryHidedmysite.com/wp-includes/plugin.php(517): WP_Hook->do_action(Array)

    4 /home/SorryHidedmysite/SorryHidedmysite.com/wp-admin/admin-post.php(61): do_action(‘admin_post_nopr…’)

    5 {main}

    This is only error content I found from php-error.log file. Please help. Thanks!

    Thread Starter cfm168

    (@cfm168)

    Deactivated all plugins including Woocommerce still get the following errors:

    [06-Apr-2025 12:18:26 UTC] Exception: Invalid API endpoint. in /home/SorryHidedmysite/SorryHidedmysite.com/wp-content/plugins/mailpoet/lib/API/JSON/API.php:193
    Stack trace: 0 /home/SorryHidedmysite/SorryHidedmysite.com/wp-content/plugins/mailpoet/lib/Subscription/Form.php(33): MailPoet\API\JSON\API->processRoute() 1 /home/SorryHidedmysite/SorryHidedmysite.com/wp-includes/class-wp-hook.php(324): MailPoet\Subscription\Form->onSubmit(Array) 2 /home/SorryHidedmysite/SorryHidedmysite.com/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(”, Array) 3 /home/SorryHidedmysite/SorryHidedmysite.com/wp-includes/plugin.php(517): WP_Hook->do_action(Array) 4 /home/SorryHidedmysite/SorryHidedmysite.com/wp-admin/admin-post.php(61): do_action(‘admin_post_nopr…’) 5 {main}

    Plugin Support Gui A. a11n

    (@guicmazeredo)

    Thanks for giving that a try and I’m sorry to hear you are still getting this error message.

    Could you please follow the instructions to re-install the plugin via FTP and let us know if it resolves the issue? This will ensure no plugin files are missing or corrupted.

    Don’t worry, you won’t lose any data from the plugin since it’s saved in your database, not the plugin files. However, whenever making any changes like this, we recommend making sure you have a full backup of the site just in case.

    Thread Starter cfm168

    (@cfm168)

    Hi @guicmazeredo,

    Yes re-install seems working. Thanks a lot.

    Plugin Support Thu P. a11n

    (@thup90)

    Hi there,

    I’m glad to hear reinstalling the plugin worked. Thanks for letting us know!

    Thread Starter cfm168

    (@cfm168)

    This topic actually not yet resolved. Now I have WP6.8.1, Mailpoet v5.12.2 and WC9.8.5. The same error found as below:

    Exception: Invalid API endpoint. in /home/SorryHidedmysite/SorryHidedmysite.com/wp-content/plugins/mailpoet/lib/API/JSON/API.php:193

    Stack Trace


    1. MailPoet\API\JSON\API->processRoute()
      /home/SorryHidedmysite/SorryHidedmysite.com/wp-content/plugins/mailpoet/lib/Subscription/Form.php:33

    2. MailPoet\Subscription\Form->onSubmit(Array)
      /home/SorryHidedmysite/SorryHidedmysite.com/wp-includes/class-wp-hook.php:324

    3. WP_Hook->apply_filters(”, Array)
      /home/SorryHidedmysite/SorryHidedmysite.com/wp-includes/class-wp-hook.php:348

    4. WP_Hook->do_action(Array)
      /home/SorryHidedmysite/SorryHidedmysite.com/wp-includes/plugin.php:517

    5. do_action(‘admin_post_nopr…’)
      /home/SorryHidedmysite/SorryHidedmysite.com/wp-admin/admin-post.php:58

    6. {main}

    I delete the plugin from admin, and then upload the latest version via FTP, the issue persists every day. This error doesn’t found in the woocommerce status logs.

    Plugin Support Lynn J.a11n

    (@lynnjat7)

    Hi there @cfm168,

    Can you share a little more information about what you are doing to trigger this fatal error?

    For example, are you:

    • taking some action on your site’s dashboard -> if so, please walk us through those steps
    • seeing the error when a subscriber takes action on the front end, such as filling out the subscription form -> if so, please walk us through those steps

    Screenshots are always helpful of the steps you are taking along the way and of the error itself.

    Thread Starter cfm168

    (@cfm168)

    Hi @lynnjat7,

    This error most like caused by from the front end unknown activities.

    Tested from site’s dashboard and placed order for customer/subscriber, no error found within 3 days. So I think the error not caused by the site’s dashboard.

    Plugin Support Gui A. a11n

    (@guicmazeredo)

    Hi @cfm168 ,

    That’s great to hear. If you see this error again, please take a screenshot and send it over. We’ll be happy to take a further look!

    Thread Starter cfm168

    (@cfm168)

    The same error found again today. Since not sure what caused the issue, I can’t provide the screenshot.

    One thing pretty sure, it is not caused by admin dashboard, and not caused by customer login from front site. Because I tested it from admin and front and there was no error created for few days after testing.

    Plugin Support Gui A. a11n

    (@guicmazeredo)

    Hey there @cfm168 ,

    I’m sorry to hear this error is back again. Did you notice if this causes any actual issues on your website? I mean, is there anything in MailPoet not working as expected?

    I’m asking this because I found a couple of similar reports from other users, but other than logging the error nothing was wrong with the MailPoet functionality. Therefore, this has been reported to our devs, but haven’t been prioritized since it’s not causing any actual issues.

    Thread Starter cfm168

    (@cfm168)

    It seems MailPoet is working fine so far even the errors persist.

    Plugin Support Thu P. a11n

    (@thup90)

    Hi @cfm168,

    Thanks for confirming that MailPoet is still working find despite the error persists.

    We’re still investigating into this for now, however, since this is a low priority issue, I don’t have an ETA of when this will be fixed.

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

The topic ‘Exception: Invalid API endpoint’ is closed to new replies.