Hey Mylo
I’ve got the same problem. Did you maybe find a solution?
Thanks,
Bryan
Hi Bryan….I received this from Woo Commerce support and it seemed to have fixed the issue….
Subscriptions has indeed switched into the staging mode. As soon as Subscriptions detects the site URL has changed. This is to let the users create a test copy of the site for troubleshooting purposes without the risk of charging customers twice. Here is an article that explains the whole process:
https://docs.woocommerce.com/document/subscriptions-handles-staging-sites/
Now if you’re using the same address already for a while and the subscriptions are still playing tricks, it’s possible that the site URL has been defined dynamically. We’ve seen cases where the following declaration added in wp-config.php file resulted in problems like yours:
define(‘WP_HOME’, ‘https://’. $_SERVER[‘SERVER_NAME’]);
define(‘WP_SITEURL’, ‘https://’. $_SERVER[‘SERVER_NAME’]);
If your config file contains a section like this, I would strongly suggest to replace the dynamic address with a static one. Here is an example:
define(‘WP_HOME’, ‘httsp://www.selfbuild.ie/’);
define(‘WP_SITEURL’, ‘https://www.selfbuild.ie/’);
Once you do that, you can update the value of wc_subscriptions_siteurl on a secret options page. You can access it directly with this link:
When you’re there, please update the site address to the same one as in wp-config (in my example, http://www.selfbuild.ie, scroll to the very bottom and save). This should prevent dynamic address changes and keep the subscription in live mode from that point.
It’s also possible that WordFence is doing the same thing. You can test this by disabling WordFence and seeing if that helps.
I hope this helps. Please let us know if there is anything else we can help with!
Thank you,
-
This reply was modified 8 years, 12 months ago by
selfbuild123.
Received this from Woo Commerce support and it worked….basically there were 2 sites. One live, One testing/staging. See below…
Subscriptions has indeed switched into the staging mode. As soon as Subscriptions detects the site URL has changed. This is to let the users create a test copy of the site for troubleshooting purposes without the risk of charging customers twice. Here is an article that explains the whole process:
https://docs.woocommerce.com/document/subscriptions-handles-staging-sites/
Now if you’re using the same address already for a while and the subscriptions are still playing tricks, it’s possible that the site URL has been defined dynamically. We’ve seen cases where the following declaration added in wp-config.php file resulted in problems like yours:
define(‘WP_HOME’, ‘https://’. $_SERVER[‘SERVER_NAME’]);
define(‘WP_SITEURL’, ‘https://’. $_SERVER[‘SERVER_NAME’]);
If your config file contains a section like this, I would strongly suggest to replace the dynamic address with a static one. Here is an example:
define(‘WP_HOME’, ‘httsp://www.selfbuild.ie/’);
define(‘WP_SITEURL’, ‘https://www.selfbuild.ie/’);
Once you do that, you can update the value of wc_subscriptions_siteurl on a secret options page. You can access it directly with this link:
http://www.yoursite.com/wp-admin/options.php
When you’re there, please update the site address to the same one as in wp-config (in my example, http://www.yoursite.com, scroll to the very bottom and save). This should prevent dynamic address changes and keep the subscription in live mode from that point.
I hope this helps.
-
This reply was modified 8 years, 12 months ago by
selfbuild123.
Received this from Woo Commerce support and it worked….basically there were 2 sites. One live, One testing/staging. See below…
Subscriptions has indeed switched into the staging mode. As soon as Subscriptions detects the site URL has changed. This is to let the users create a test copy of the site for troubleshooting purposes without the risk of charging customers twice. Here is an article that explains the whole process:
https://docs.woocommerce.com/document/subscriptions-handles-staging-sites/
Now if you’re using the same address already for a while and the subscriptions are still playing tricks, it’s possible that the site URL has been defined dynamically. We’ve seen cases where the following declaration added in wp-config.php file resulted in problems like yours:
define(‘WP_HOME’, ‘https://’. $_SERVER[‘SERVER_NAME’]);
define(‘WP_SITEURL’, ‘https://’. $_SERVER[‘SERVER_NAME’]);
If your config file contains a section like this, I would strongly suggest to replace the dynamic address with a static one. Here is an example:
define(‘WP_HOME’, ‘httsp://www.selfbuild.ie/’);
define(‘WP_SITEURL’, ‘https://www.selfbuild.ie/’);
Once you do that, you can update the value of wc_subscriptions_siteurl on a secret options page. You can access it directly with this link:
http://www.yoursite.com/wp-admin/options.php
When you’re there, please update the site address to the same one as in wp-config (in my example, http://www.yoursite.com, scroll to the very bottom and save). This should prevent dynamic address changes and keep the subscription in live mode from that point.
Thanks – didn’t work for me.
My tech team will work on it tomorrow – with the help of the payment gateway integrators.