Background of the issue:
I'm trying to solve an issue where I have more than 200,000 calls for wpml_registered_endpoints. My site uses only one language besides the main one (Czech). I use the AAA Optimizer Plugin, which logged these calls. I have the opportunity to create this option with the value false, but I can't tell how that will affect my site.
Symptoms:
Requested options that do not exist - wpml_registered_endpoints. There are more than 200,000 calls logged by the AAA Optimizer Plugin.
Questions:
Are these duplicate calls from WPML?
How will creating the option with value false affect my site?
Reference to our recent chat, meanwhile this ticket is attended by one of my colleagues, please provide temporary access (WP-Admin and FTP), preferably to a test site where the problem has been replicated.
Your next answer will be private, to share this information safely.
Also provide detailed steps to reproduce the issue and links to pages in the admin and on the frontend.
IMPORTANT: Please take a complete backup of the site to avoid data loss. I may need to activate/deactivate plugins also.
I reviewed the entire conversation you had with my colleague Waqas and understand the issue. The high number of requests to `wpml_registered_endpoints` typically occurs when something in WPML is misconfigured—meaning that certain settings cannot be validated by WPML.
When I checked our system, I found that the staging site was recently created from the main site and is currently reusing the site key from the main site. Please note that each WPML key is unique to a specific domain and setup. When a site uses a key intended for another domain or configuration, WPML may struggle to validate settings, which can cause repeated queries or reinitializations, potentially resulting in the high number of logged calls you’re seeing.
If the issue is occurring on the staging site, please create a new site key specifically for the staging environment in the "Registered Sites" section of your WPML.org account. Once you have the new key, follow these steps:
1. Log in to your staging site and navigate to "Plugins > Add New > Commercial".
2. Click "Unregister WPML from this site".
3. Once the previous key is removed, you’ll see a field to enter the new site key. Enter the new key and save the changes.
This will allow the site to use the new key, which should reduce requests to the WPML endpoint. We do not recommend setting the value to `false`, as WPML relies on several API endpoints to ensure the site receives updates and communicates properly with WPML’s servers.
After making these changes, please wait a little while and monitor the situation. If the issue persists, let me know, and I’ll be happy to take a closer look.
I attempted to access the backend, but I received a "Forbidden" error. If there are any restrictions in place, please let me know how to bypass them so I can access the backend and investigate further, if you continue to experience issues after following these steps.