Staging Site Issue

I am having problems with using a staging site and Pro.


I have added the staging site URL to the license.
When I log into the staging site and open up the home page into PRO, I get an error message.
"The preview could not load due to misconfigured URL’s. This could happen if you are using multiple environments and the site URL was not updated after migrating. Origin URL: https://staging1.yalelatinoalumninetwork.org, Preview URL: https://yalelatinoalumninetwork.org/elivra-duran

I have tried closing out of the PRO interface, clearing the host’s cache, and then going back in, but that does not change things. The “Preview URL” makes not sense and does not appear when I am in the PRO environment.

Can you help me?
Thanks!
Screen Shot 2020-08-24 at 10.38.04 AM|690x304

Hi @johnboak,

Thanks for reaching out.

The reason why it is not properly validated/misconfigured URL because what you added in your themeco account staging is the wrong one. This is what you added https://staging1.yalelatinoalumninetwork.org/wp-login.php but the correct one should be https://staging1.yalelatinoalumninetwork.org.

I already corrected the link in your themeco account. Hope that helps.

Thank you.

Unfortunately, that does not solve the problem.


I can log into the staging site. I can actually open a page in PRO, but nothing but the error message appears in the right side of the PRO page. Also when I click of the exit link in the lower left of the PRO page, I do not return to the Wordpress admin page of the staging1.yalelatinoalumninetwork.org. I am returned to the login page of yalelatinoalumninetwork.org . So the staging site remains unusable. If you can help me dig out of this one I would be very grateful. Thanks for your aid.

Hey @johnboak,

This happens mostly in staging environments, it might be the case that you migrated the database but the base URLs are not changed in the database for some reason. Some hosting service providers provide staging tools that might have the same issue. Follow the steps below for troubleshooting:

  • Check Settings > General in your dashboard. The WordPress URL and Site URL should match the domain in your address bar.
  • Contact your hosting service provider and ask them to check if the base URLs are updated correctly or not.
  • There is a known conflict with SiteGround staging environments. Their staging provisioner relies on Apache URL rewriting. WordPress is still using the production URL internally, so the staging site doesn’t really know it’s a staging site. There are situations where plugin and theme logic (including Pro and Cornerstone) may end up using URLs from the production site because the staging system can’t account for rewriting URLs in every context they may be used.

For more details please visit https://theme.co/docs/warnings-in-the-builders

Let us know how this goes!

The site is indeed hosted by Site Ground. I have written to the person on our team who set that up, with your response, and my evidence that supports your third bullet point. I will let you know if and how we find our way out of this challenge. THANKS

@johnboak,

Great, just let us know how it goes.

Thank you.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.