I’ve volunteered to make a website for a local cycling club and have just moved the site from my local (WAMP) server to remote server (Linux shared hosting).
I'm having some problems with the live site, and though I‘ve been searching the forums for explanations/solutions I haven’t come up with much yet. I'd really appreciate any ideas you might have on what’s going on...
(The site is my first effort with WordPress/PHP, so please do excuse newbie mistakes and mangled terminology)
I’ve used a custom theme and everything is working well locally: no unexpected issues, admin area, log-in/out, plugins and redirects all fine.
On the live site, log-in/out and page redirects are not working at all, and the WP Admin area functions but brings up white screens after most actions. Superficially the live site works okay, apart from the blank pages resulting from failed redirects.
I think the problems are custom-theme related, as the live site seems to work fine with the Twentyten theme activated. This is strange because the custom theme works fine for me locally.
Prior to the move to the remote server I activated the Twentyten theme and deactivated all plugins.
After the move, with the Twentyten theme still active, I logged in to the admin area and activated my custom theme. When I logged out (all plugins still deactivated and my custom theme activated) I found I could not log back in. In order to do so, I had to change back to Twentyten via the database. Once I was logged back in (with Twentyten active) I changed back to my custom theme, remaining logged-in.
With the custom theme activated, the following issues now arise:
1. I cannot log out – when I click the Log Out link I get a white screen and the following appears in the URL bar
On refresh I am returned to the previous page with log-in status unchanged (logged in).
2. If I access the site with the custom theme activated while logged-out (by using a different browser to that which I use to change theme) I can’t log in - I am returned to the page I have tried to log in from with logged-out status unchanged (no white screen this time).
3. If I try to log in using an incorrect password, I get the following error message
ERROR: The password you entered for the username admin is incorrect. Lost your password?
ERROR: Cookies are blocked or not supported by your browser. You must enable cookies to use WordPress.
Cookies are enabled on both browsers I am using (Chrome 19.0.1084.52 m and Firefox 10.0.2)
4. A friend duplicated the site on his local server and has the same log in/out issues that exist on the remote server (he could not log in).
wp_redirect does not seem to work on the live site. I have used it two instances, ‘redirect to first child’ activated via custom field on page template and ‘redirect to post-permalink if there is only one post in the current category’. In both cases there is no error message, but no redirect happens.
Both redirects work fine on the local server.
With the custom theme activated in logged-in mode , I can access the WP Admin area. I can make changes, but I get a white screen after most actions, eg. updating a post, activating a plugin, filtering posts by category. Changes I make do take effect, despite the white screen.
I reactivated all plugins and they seem to work fine. With all plugins deactivated, the above issues are still present.
I'm happy to provide any further information and/or code that might help identify the problem.