• Resolved abzu2

    (@abzu2)


    The php error alert is being cleared. The problem is that the php error is reoccurring and seems to be asscociated to MailPoet. Attaching the first few lines in the PHP error log:

    [BPS Pro htaccess Protected Secure PHP Error Log] [26-May-2024 08:40:03 UTC] Exception: Invalid API endpoint. in /home/u169307991/domains/abzu2.com/public_html/wp-content/plugins/mailpoet/lib/API/JSON/API.php:190 Stack trace: #0 /home/u169307991/domains/abzu2.com/public_html/wp-content/plugins/mailpoet/lib/Subscription/Form.php(33): MailPoet\API\JSON\API->processRoute() #1 /home/u169307991/domains/abzu2.com/public_html/wp-includes/class-wp-hook.php(324): MailPoet\Subscription\Form->onSubmit() #2 /home/u169307991/domains/abzu2.com/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #3 /home/u169307991/domains/abzu2.com/public_html/wp-includes/plugin.php(517): WP_Hook->do_action() #4 /home/u169307991/domains/abzu2.com/public_html/wp-admin/admin-post.php(61): do_action() #5 {main} [27-May-2024 05:23:16 UTC] Exception: Invalid API endpoint. in /home/u169307991/domains/abzu2.com/public_html/wp-content/plugins/mailpoet/lib/API/JSON/API.php:190 Stack trace: #0 /home/u169307991/domains/abzu2.com/public_html/wp-content/plugins/mailpoet/lib/Subscription/Form.php(33): MailPoet\API\JSON\API->processRoute() #1 /home/u169307991/domains/abzu2.com/public_html/wp-includes/class-wp-hook.php(324): MailPoet\Subscription\Form->onSubmit() #2 /home/u169307991/domains/abzu2.com/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #3 /home/u169307991/domains/abzu2.com/public_html/wp-includes/plugin.php(517): WP_Hook->do_action() #4 /home/u169307991/domains/abzu2.com/public_html/wp-admin/admin-post.php(61): do_action() #5 {main} [27-May-2024 06:54:34 UTC] Exception: Invalid API endpoint. in /home/u169307991/domains/abzu2.com/public_html/wp-content/plugins/mailpoet/lib/API/JSON/API.php:190 Stack trace: #0 /home/u169307991/domains/abzu2.com/public_html/wp-content/plugins/mailpoet/lib/Subscription/Form.php(33): MailPoet\API\JSON\API->processRoute() #1 /home/u169307991/domains/abzu2.com/public_html/wp-includes/class-wp-hook.php(324): MailPoet\Subscription\Form->onSubmit() #2 /home/u169307991/domains/abzu2.com/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #3 /home/u169307991/domains/abzu2.com/public_html/wp-includes/plugin.php(517): WP_Hook->do_action() #4 /home/u169307991/domains/abzu2.com/public_html/wp-admin/admin-post.php(61): do_action() #5 {main} [27-May-2024 08:31:47 UTC] Exception: Invalid API endpoint. in /home/u169307991/domains/abzu2.com/public_html/wp-content/plugins/mailpoet/lib/API/JSON/API.php:190 Stack trace: #0 /home/u169307991/domains/abzu2.com/public_html/wp-content/plugins/mailpoet/lib/Subscription/Form.php(33): MailPoet\API\JSON\API->processRoute() #1 /home/u169307991/domains/abzu2.com/public_html/wp-includes/class-wp-hook.php(324): MailPoet\Subscription\Form->onSubmit() #2 /home/u169307991/domains/abzu2.com/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #3 /home/u169307991/domains/abzu2.com/public_html/wp-includes/plugin.php(517): WP_Hook->do_action() #4 /home/u169307991/domains/abzu2.com/public_html/wp-admin/admin-post.php(61): do_action() #5 {main}

    • This topic was modified 3 months, 2 weeks ago by abzu2.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Thu P. a11n

    (@thup90)

    Hi there,

    “Invalid API endpoint” typically means that the API endpoint URL that was provided to access a service or resource is incorrect, does not exist, or is unavailable. An API endpoint is a URL that enables the communication between a client and a server that hosts the service or resource. Therefore, if the API endpoint is invalid, it would not be possible to access the intended service or resource.

    In this case, I recommend that you re-install the MailPoet Plugin to see if this fixes the error. You can learn how to do this by going here:?Re-installing / Updating the Plugin via FTP. Please make sure to install the latest version of MailPoet.

    It is unlikely that any data will be lost from the MailPoet plugin, so it should be safe to proceed. However, as a precautionary measure, it’s recommended that you backup your database before proceeding. In the event that the issue persists after taking these steps, we suggest conducting a full conflict test. You can learn how to do this by visiting the following link: “How to Test for Theme and Plugin Conflicts“.

    Thread Starter abzu2

    (@abzu2)

    Thank you for your reply. In the instructions for updating Mailpoet via FTP the instructions are: 3.?Go to wp-content/plugins directory; 4.?Delete the folder called ‘mailpoet’;

    I have two Mailpoet folders in wp-content/plugins >> mailpoet + mailpoet-premium

    Should I delete both of them or just mailpoet? Is it possible that the Invalid Api endpoint error I am having could be due to having two mailpoet plugin folders? Should I delete one of them permanently?

    TIA

    Plugin Support Ojoma a11n

    (@geraltrivia)

    Hello there @abzu2 ,

    It’s normal to have both the mailpoet and mailpoet-premium folders in your wp-content/plugins directory if you’re using the premium version of MailPoet or have installed the MailPoet premium plugin. These two folders work together and are both necessary for the premium features to function correctly.

    To address your questions:

    1. Should I delete both folders or just mailpoet?
      When re-installing the plugin via FTP, you should only delete the mailpoet folder and leave the mailpoet-premium folder intact. The mailpoet-premium folder contains the premium features, and it is not causing the issue.
    2. Could having two folders cause the “Invalid API Endpoint” error?
      No, having these two folders is not the source of the issue. The “Invalid API Endpoint” error is more likely due to a plugin-related glitch or corrupted files in the mailpoet folder. Re-installing the plugin by deleting and replacing the mailpoet folder (while keeping the mailpoet-premium folder) should resolve this.

    Cheers!

    Thread Starter abzu2

    (@abzu2)

    Solved. Thanks for the help.

    Plugin Support Ojoma a11n

    (@geraltrivia)

    Hello again,

    I’m glad to see this has been resolved.

    Cheers!

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.