Dev and prod on the same database- dev version active for IOS

I'm looking at a problem on a WordPress site I didn't build and the company that did are no longer operating.

The site is fairly basic with no user membership this etc etc.

The site holds all its content and configuration in the wp_ tables, so is properly database driven. The site holds development and production data in the same database.

The problem is that when a user on an iOS device clicks on the contact us button instead of displaying the contact page it shows a logon to the old companies development site. If you cancel the logon a couple of times it will go and then you are redirected to the correct contact page.

I've looked through the wp_posts data and can't see anything obvious that I could change.

I'm guessing there is a database entry somewhere that is just being used for iOS devices and is incorrectly configured to show the old development site contact page.

Nobody noticed the error until a user informed them so it's probably been there since the beginning rather than a problem with the server, ios update etc.

Does anyone know where I should look? I'm guessing a probably won't show this error because it is not really an error, more a feature that is activated to enable development work/testing and should not be.

Solutions

Menus are manually managed in WordPress. Log into wp-admin, and there are 2 places you can update these links.

  1. Appearance > Menus - select each menu in turn until you find the link in question, then update it. It's best to add a Page (or Post or whatever content type) straight from this admin interface; then it pulls from the database ID and doesn't hard-code the URL like you are running into here.

  2. Appearance > Customize - go to Menus, then same process, browse through all the menus until you find the problem links and replace them.

Similar questions

Trying to setup a dev subdomain, but url loads as /dev/ instead
I created a subdomain (dev.mysite.com) and I duplicated my live site into this subdomain. However, when I go to dev.mysite.com, it loads mysite.com/dev instead. I changed siteurl and home in wp_options to dev.mysite.com, removed the entire .htaccess, deleted W3 Total Cache, and it still does it. When I just put a test index.html file, the subdomain...
After Migration From dev, Only my Links to the Homepage Still Redirect to dev
I'm migrating one of my WordPress sites from a development version to the live version. The problem I'm having is with just the homepage links. The reasons might be because the migration didn't replace links in the database tables. And! Just to make it more interesting, my first migration failed. So, for a week I redirected the URL in cPanel to the...
Wordpress get_template_directory() working on localhost and dev server with same database
I like to develop locally on localhost, then push everything to a testing server. Both localhost and my testing server are using the same database. The only problem is get_template_directory() returns my testing server path. Can I use .htacess or something else to return the corresponding local/live path from get_template_directory()?
Post via wp-admin and via iOS app, same hooks and triggers involved?
I've got an add_action in functions.php, the action is for save_post and the function I'm running I've named set_attachment_url. I'm simply getting the first attachment on a post and setting a custom field with the URL of that attachment. Good news is, everything works great when I'm adding content from the wp-admin. But when I add content from the...
Version control: merging changes between dev and live sites
I am new to version control such as git so this may be an easy answer for some... for all my searching I can't find a simple enough answer. I am developing a wordpress site on a dev server. Another developer is making changes to the live (production) site and some changes are also ftp'ed to the dev site. Is there a way for me to merge those changes...
How to authenticate user in iOS app and get data from Wordpress database?
I have Wordpress website where registered users can register for different events. Now I'm working on iPhone app. This app will allow users to do the same thing (register for events) but from iPhone. What I want to understand is what is better and more secure way to authenticate user from iPhone app? User will insert username and password in app, b...

Also ask

We use cookies to deliver the best possible experience on our website. By continuing to use this site, accepting or closing this box, you consent to our use of cookies. To learn more, visit our privacy policy.