Support » Fixing WordPress » Changing non-www to www causes content failure

  • Under the general settings menu I changed my domain from a non-www to a www on both WP address and the site address. I also installed redirect plug-in and redirected all non-www traffic to my www site. All the content shows up except the content on the home page. All the other pages are fine, and work normally except the home page. When I take off the redirect and put the site back to a non-www, the home page content comes back.

    Can anyone help me with this problem please?

    Thanks,

    Ryan

Viewing 15 replies - 1 through 15 (of 16 total)
  • Ryan, what error message are you receiving? Can you give us your domain so we can test further?

    Thread Starter mwi69

    (@mwi69)

    Brad,

    There is no error message. If you go to minutewomeninc.com you can see what I mean. I changed it back to the non-www so the content would be there for customers, but imagine everything from “Home care with Minute Women Inc” to the bottom of the page including the picture does not show up. Strangely the “Minute Women Inc” does continue to show up, as do all the other pages.

    Thanks for the help!

    Ryan

    Without replicating the problem, it is hard to troubleshoot.

    I have 2 suggestions:

    1. Determine if the problem is caused by a plugin or custom theme. Do this switching to the default theme and disabling all of the plugins. After doing this, put “www” back in place and see what happens. If it resolve the issue, they you can enable your plugins one by one until you find the one causing the issue.

    2. While you say there is no error message, there may actually be one and your WordPress configuration is hiding it from you. Try adding the following to your wp-config.php file and then testing:

    define(‘WP_DEBUG’, true);

    Thread Starter mwi69

    (@mwi69)

    Brad,

    Take a look at the website now, I changed it so you can see what happens.

    Thanks,

    Ryan

    When the page does not load the content, it does at least load the frame for it:

    <div id="content-container" class="container_24">
        <div id="main-content" class="grid_24">
    	<div class="main-content-padding">
    		<div class="post" id="post-14">
    		    <div class="entry">
    		    </div>
    		</div>
    
    	    <div class="clear"></div>
    
    	</div><!-- end main-content-padding -->
        </div><!-- end main-content -->
    </div><!-- end content-container -->

    From the html, we can see the post is 14.

    FYI, when it does load, the code looks like this:
    http://pastebin.com/DxJ0fZXz

    Have you tried using the setting the wp_debug value to true to see if there are any error messages?

    Thread Starter mwi69

    (@mwi69)

    I will do that now, but I am not to familiar with fooling around with .php files, or any files in my FTP server. Is is ok to put this at the bottom of all the content in that file?

    I just checked my wp-config, and it looks like “WP_DEBUG” is already there. All you need to do is change “false” to “true” (don’t use quotes).

    If you don’t see that anywhere, you should be find with adding it to the bottom of the file.

    Thread Starter mwi69

    (@mwi69)

    Ok changed it from false to true

    When I test your site now, all of the formatting has been removed. Have you looked at your site and seen this?

    I’m not sure if the change was made correctly, as it should not have done this.

    Can you copy / paste here the code in your wp-config (only the code dealing with the debug option)?

    Thread Starter mwi69

    (@mwi69)

    define(‘WP_DEBUG’, true);

    Yeah, that looks right to me. Try changing it back to false and then ensure your site returns to its previous state (as in the pictures and color schemes load once again).

    If no error messages are being displayed, then most likely it is a theme / plugin issue.

    If you change to the default theme, such as twenty ten or twenty elven, does that resolve the issue?

    If not, you may want to go the route of enabling / disabling plugins until you find the one causing the issue.

    Thread Starter mwi69

    (@mwi69)

    When I switched to twenty ten it did resolve the issue. So why would my theme (u design it theme) have issues? I guess I should ask my theme creator that huh?

    It is hard to say what exactly would cause the issue in the theme, as the designer could have used any php code that they wanted. Try reaching out to the developer, and please be sure to let us know how it goes!

    Thread Starter mwi69

    (@mwi69)

    Brad,

    I found the reason. Like you suggested it was a a problem with a plug in. SEO smart links.

    Thanks for you help.

    Ryan

    Thread Starter mwi69

    (@mwi69)

    To make matters even stranger, when I deactivated then reactivated the plug-in, it works with the website again!

    I don’t get it but I am not complaining.

    Ryan

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Changing non-www to www causes content failure’ is closed to new replies.