- This topic has 3 replies, 3 voices, and was last updated 8 years, 4 months ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP eMember › WP eMember Troubleshooting › member-login/?emember_logout=true – not picking up the correct hostname
Hello everyone,
I’m using WP eMember 9.0.1 with WordPress 4.4.4 to direct visitors to the correct section of the site for their user type. Overall it’s working very well.
I’m using this shortcode to allow users to log in from our home page:
[wp_eMember_compact_login]
Long story short, but there are cases where a user may end up back on the home page. Since they are logged in, the shortcode presents this message: “Hello, Steve Peters | Logout”
…which is correct and works fine on our development server. However, we’ve discovered that when we test this feature on the production server, the “logout” link contains the hostname for the dev server and not the production server.
and that’s a problem, obviously. I’ve double-checked, the production hostname is correct in the WP dashboard on the production site.
Any idea where WP eMember is picking up the wrong hostname?
Since you seem to be an “advanced user,” have you tried doing a phpMyAdmin search of the production server’s MySQL tables for the development server’s domain name? It’s probably a setting someplace that you forgot to change “someplace.”
There’s only two places inside the WP database that I’m aware of that store the hostname. I’m able to see that set correctly on the production server, but I don’t have phpMyAdmin access to that server.
What I’m hearing is that I haven’t overlooked a setting in WP eMember someplace. Is that correct?
Also, check the pages/forms settings menu in eMember. Make sure the login page’s URL is using the correct site’s URL there. And you should be using the FULL URL of the login page in that field. (don’t use relative URL unless you know what you are doing).
If you have transferred or migrated the data from one server to another (where the URL is different) then you need to go through the settings menu to update ALL URL values so it reflects the appropriate page URL.