18 replies
Hi fellow warriors,

I have a problem I have not experienced before and was hoping someone with a lot more experience than me could help at all..

I have a site that has wordpress installed upon it and up until yesterday all was fine..today when trying to log-in to the wordpress admin all I could get was a blank page..I also noticed that if I typed into the browsers address bar "http://mysite.com" a blank page appeared but if I typed in "http://www.mysite.com" the site appears as normal. Probably me changing something somewhere but I am a little stuck now

Could anybody point me in the right direction please?

Thanks for reading,
Alan
#address #problem #site
  • Profile picture of the author paulpalm
    When I had this issue, I found php on my server was running out of memory. Try increasing your php memory limits and you should find you can log in without issue.

    Good luck ;-)
    {{ DiscussionBoard.errors[4027924].message }}
  • Profile picture of the author stoneyboy
    Just tried that but to no avail
    {{ DiscussionBoard.errors[4028008].message }}
    • Profile picture of the author ToneUK
      Sounds like it could be a DNS issue. Try doing a nslookup for both www. and none www of the domain and see if the IP addresses are both the same.

      If you do not know how to do this, open a command prompt and type:
      nslookup www. mysite.com

      Then do the same for:
      nslookup mysite.com

      Check to see if both IP addresses are the same.
      Signature
      Free article directory for publishers to download. Free article submission with fast approval times. Submit free articles with back links that are Do follow.
      {{ DiscussionBoard.errors[4028033].message }}
      • Profile picture of the author stoneyboy
        Thanks for that ToneUK, just tried like you said and both IP addresses are the same.

        I do apologize but I should have stated that this isn't the only domain I use on my server and all others are fine,,sorry

        Originally Posted by ToneUK View Post

        Sounds like it could be a DNS issue. Try doing a nslookup for both www. and none www of the domain and see if the IP addresses are both the same.

        If you do not know how to do this, open a command prompt and type:
        nslookup www.mysite.com

        Then do the same for:
        nslookup mysite.com

        Check to see if both IP addresses are the same.
        {{ DiscussionBoard.errors[4028063].message }}
  • Profile picture of the author paulpalm
    How did you increase the memory? if you did it in php.ini, wordpress may ignore it, you need to increase via the WP settings/bootstrap file.

    Look at the function wp_initial_constants() in file /wp-includes/default-constants.php

    Also, disable any newly activated plugins over the last 24 hours.

    Also, if you made any changes to .htaccess, comment changes out whilst you test.
    {{ DiscussionBoard.errors[4028068].message }}
    • Profile picture of the author ToneUK
      Is the problem the blank page? If so just add a redirect in the .htaccess file so that the "http://mysite.com" is redirected to "http://www.mysite.com"
      Signature
      Free article directory for publishers to download. Free article submission with fast approval times. Submit free articles with back links that are Do follow.
      {{ DiscussionBoard.errors[4028101].message }}
      • Profile picture of the author stoneyboy
        I'm sorry guys you are losing me now and this is exactly why I am not a programmer.
        ToneUk the main problem is not being able to log-in to wordpress admin

        Originally Posted by paulpalm View Post

        How did you increase the memory? if you did it in php.ini, wordpress may ignore it, you need to increase via the WP settings/bootstrap file.

        Look at the function wp_initial_constants() in file /wp-includes/default-constants.php

        Also, disable any newly activated plugins over the last 24 hours.

        Also, if you made any changes to .htaccess, comment changes out whilst you test.
        Originally Posted by ToneUK View Post

        Is the problem the blank page? If so just add a redirect in the .htaccess file so that the "http://mysite.com" is redirected to "http://www.mysite.com"
        {{ DiscussionBoard.errors[4028136].message }}
        • Profile picture of the author ToneUK
          Is it switching to the sub domain without the www in front when you try to login?

          Can you check the log files on your server for any PHP error messages.

          The following post might help you with this issue:
          http://wordpress.org/support/topic/wp-login-blank-page

          Maybe it is because of blank lines at the bottom of the function.php file. Can you remember what changes you have made recently and if they were to any of the PHP files?
          Signature
          Free article directory for publishers to download. Free article submission with fast approval times. Submit free articles with back links that are Do follow.
          {{ DiscussionBoard.errors[4028191].message }}
          • Profile picture of the author stoneyboy
            yes it is switching to the subdomain without the www in front..I think I know what you mean... http://mysite.com/wp-login.php is what appears after entering the log-in details and clicking login.

            The only php error message was to do with one of the .ht access changes I made earlier whilst trying to sort this out.But that file is back to how it was when I first realised the problem
            {{ DiscussionBoard.errors[4028262].message }}
            • Profile picture of the author ToneUK
              Try adding this to your .htaccess file:

              RewriteEngine on
              RewriteCond %{HTTP_HOST} !^www\. [NC]
              RewriteRule ^ http://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

              This will make sure the site is loaded with www at all times.
              Signature
              Free article directory for publishers to download. Free article submission with fast approval times. Submit free articles with back links that are Do follow.
              {{ DiscussionBoard.errors[4028282].message }}
              • Profile picture of the author stoneyboy
                Just tried that and now when I enter my login details it just comes back to the login page asking me to login again.

                Originally Posted by ToneUK View Post

                Try adding this to your .htaccess file:

                RewriteEngine on
                RewriteCond %{HTTP_HOST} !^www. [NC]
                RewriteRule ^ http://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

                This will make sure the site is loaded with www at all times.
                {{ DiscussionBoard.errors[4028338].message }}
  • Profile picture of the author stoneyboy
    With regards to any changes I was in the middle of setting up two websites and probably made some changes somewhere but as for remembering where,well!!
    It would be a pain but I could remove the wordpess installation and start again afresh at a last resort!!
    {{ DiscussionBoard.errors[4028376].message }}
    • Profile picture of the author ToneUK
      Try replacing the old wp-login.php file with a one from a fresh installation and see if that helps.
      Signature
      Free article directory for publishers to download. Free article submission with fast approval times. Submit free articles with back links that are Do follow.
      {{ DiscussionBoard.errors[4028391].message }}
      • Profile picture of the author stoneyboy
        Tried that but no change...
        {{ DiscussionBoard.errors[4028442].message }}
        • Profile picture of the author ToneUK
          Well it's got me beat, you could try deleting the wp-admin and wp-includes folders and reuploading them from a fresh copy. If you don't want to delete them move them to different location or make a backup first.
          Signature
          Free article directory for publishers to download. Free article submission with fast approval times. Submit free articles with back links that are Do follow.
          {{ DiscussionBoard.errors[4028484].message }}
          • Profile picture of the author stoneyboy
            Spoke to my host company and a back up is on order and the problem was something to do with a redirect in the .ht access file..But don't ask me cos I hate the technical stuff
            Anyway thanks for everybodies input and help I really appreciate it
            {{ DiscussionBoard.errors[4028678].message }}
            • Profile picture of the author swiftimpulse
              Originally Posted by stoneyboy View Post

              Spoke to my host company and a back up is on order and the problem was something to do with a redirect in the .ht access file..But don't ask me cos I hate the technical stuff
              Anyway thanks for everybodies input and help I really appreciate it
              Stoneboy - did you adjust the wp-config.php file at all?
              I had this error come up when I had my installation installed on a sub directory, and I tried to make the main site 'www.blah.com' instead of 'www.blah.com/site/'.

              define('WP_SITEURL', 'http://www.xyz.org/tips');
              define('WP_HOME', 'http://www.xyx.org/tips');
              I fixed the problem by making them both the same (like above) and I placed a cloaked redirect page at the www.xyz.org to point them to xyz.org/tips.

              Additionally, make sure you have 'www.' at the start when you type in your URL in your browser, I think I had trouble with this when I didn't have the www at the start and was trying to login without it.

              However once the above changes are confirmed/changed it should no longer be an issue.
              {{ DiscussionBoard.errors[4031579].message }}

Trending Topics