Jump to content
Sign in to follow this  
infogroupsmb

Compiled stylesheet not showing up when we migrate servers

Recommended Posts

infogroupsmb    1
infogroupsmb

Let me describe our setup first and then describe the problem we encountered.

 

We have a site setup with different siteurl and home values:

 

define('WP_SITEURL','http://cms.infousa.com/');

 
define('WP_HOME','http://www.infousa.com/');
 
The reason being that the www domain is shared between the WordPress CMS and some of our .NET app pages through hardware on our network and we use the cms subdomain for all the admin panels.  In order to migrate to a new server we have to make a CNAME change for the cms subdomain which takes time to propagate and then update our network device that splits the www domain, which is instantaneous.  
 
So we tried to move to a new server last night and there was a significant issue that occurred.  The compiled stylesheet failed and went from this:
 
<link rel="stylesheet" id="pagelines-less-css" href="http://cms.infousa.com/wp-content/themes/pagelines/pagelines-compiled-css-1_1374161552/" type="text/css" media="all">
 
to this:
 
<link rel="stylesheet" id="pagelines-less-css" href="http://www.infousa.com/?pageless=1_1374161555" type="text/css" media="all">
 
Keep in mind that the new server had been working previously when I would change my hosts file locally to test it.  So I know the nginx server was properly configured to allow the stylesheet to be creates.  
 
My question is would pagelines default back to href="http://www.infousa.com/?pageless=1_1374161555" if it couldn't find the pagelines-compiled-css file?  My theory is that since the www domain changes were instantaneous but the cms subdomain changes were a CNAME change which takes time to propagate, that the new server tried calling http://cms.infousa.com/wp-content/themes/pagelines/pagelines-compiled-css-1_1374161552 which pointed at the old server which wouldn't have had that specific file.  
 
After we restored the www and cms domains back to the old IP the new server went back to using the proper stylesheet link.  You can see it by changing your hosts file with:
 
54.236.173.119 www.infousa.com  cms.infousa.com
 
And you'll see the nginx is properly configured and pagelines is creating the compiled stylesheet.  But we need to know what the best method for cutting over to the new IP would be so we don't end up with the broken stylesheet.  Should we change the CNAME way ahead of time, and won't that lead to the old server looking for the compiled stylesheet on the new server, so just the reverse of the problem?
 
Any suggestions and how to best accomplish the cutover, or what the cause of the new server reverting to ?pageless=xxx ?

Thanks
 
 

 

Share this post


Link to post
Share on other sites
Rob    547
Rob

Hi,

 

Please make sure you have a phpinfo.php file in your site and kindly provide a link.


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
infogroupsmb    1
infogroupsmb

Ok, the phpinfo.php files is there at http://www.infousa.com/phpinfo.php

However, as I stated, the server isn't like so you have to modify your host file as follows:

54.236.173.119 www.infousa.com  cms.infousa.com

Share this post


Link to post
Share on other sites
Rob    547
Rob

I'm afraid that's not possible.  Let us know when your site is live.


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
infogroupsmb    1
infogroupsmb

Well that's the problem.  When we try and switch the IP the compiled stylesheet breaks and reverts back to ?pageless=xxx

 

So my question is, does Pagelines compile the css file and then check for it using the SITEURL setting, and if it doesn't find it then reverts to the ?pageless=xxx setting?  If so, then the issue is that while our WP_HOME is immediately updated, the SITEURL takes time and so the new server is checking the old server for the new compiled css file and, not finding it, going back to default ?pageless=xxx.  If that's the case things should fix themselves after the CNAME propagates enough that the new server can actually call itself with the new CNAME entry.

 

Does that sound like a reasonable interpretation of what's happening and a possible solution...wait for the CNAME to propagate?

 

Thanks,

Share this post


Link to post
Share on other sites
Rob    547
Rob

Let me point out that when properly installed, Wordpress and PageLines work perfectly together.  Unfortunately, as you've described it, your team has not even correctly installed WordPress, so that's not functioning correctly to begin with, as I read it.  Then, when PageLines is installed, it doesn't know how to resolve the conflicts created by the team's installations.

 

You shouldn't be doing things as you're doing them, and this is clearly an unsupported, not to mention unsupportable issue.  You need a server administrator to sort out your installation to one domain, not two.  You cannot, to my knowledge, have one WordPress installation working as you've stated. Since PageLines cannot read where the CSS files are located, it cannot compile and will not render correctly.

 

I would urge you to correct your installation with the help of a server administrator.


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

  • Similar Content

    • DanatTLFN
      By DanatTLFN
      Site URL: http://thelocalfilmnetwork.com
      Host: GoDaddy
      Hi Pagelines team and community,
       
      I am going to be attempting to do a full migration from GoDaddy to WPEngine. 
      I need to know, will I lose the front-end customisations I have made?
      Also are there any backups or things I need to do to ensure that I do not lose any important info relating to the site?
      Kind regards,
      Dan
       
    • Bleuy
      By Bleuy+
      Hi All
      I have just migrated my theme from a perfectly functioning local version to my server and it looks corrupted.  I have followed the standard migration (Replace WP Content, Upload Database, Search & Replace URLs)
      Things I have tried to rectify the problem:-
      Changed Permalinks, deleted .htaccess file Deactivated Plugins Removed all custom CSS But It all still seems to have the same problem the url for the website is as follows: www.blueanchor-reigate.co.uk
    • jinfinite8
      By jinfinite8+
      Hi, I'm a long time PageLines and DMS user. Trying out Platform 5 now.
      Does Platform 5 store data like DMS 2 as serialized data, or does it store data in a regular WordPress mysql table?
      Thanks very much.
      ~ julian
    • dirk@beeldpunt.nl
      By dirk@beeldpunt.nl
      Hi,
      I've build a wordpress-site with DMS2. (krachtvanbeleving.beeldpunt.nl) The site has to be migrated to an other URL (krachtvanbeleving.nl). Doing a standard wordpress migration doesn't work. I've had technical people look at it and they tell me that it's a problem with hardcoded url's, They also tell me that Wordpresscore-files are changed. Does this mean I can't move the site?
       They also tell me that there might be a problem upgrading to a new Wordpress version. 
      Hope someone can help me out here. I'm not very technical and liked building the site in DMS2 but now I'm desperate.
      Dirk Annegarn
    • timtimhungerfordcom
      By timtimhungerfordcom+
      I need some help with a WP Engine Migration tool.  I manage http://xtremio.com/ with WP Engine and use there auto migration from a STAGING to LIVE and Migrating all Tables in the database.  For the last few months the site has been migrating perfectly.  But starting last week the site started dropping a single page.  Here are the notes please let me know if you have any ideas on why this is happening.  https://docs.google.com/document/d/1kuyDXqqymiNoyToO8yDutXn3Mkx-hoBOBjffimjfYvo/edit?usp=sharing
×