Jump to content
nyesinstitute

Problems migrating servers with path change

Recommended Posts

nyesinstitute    0
nyesinstitute

Posting here after a discussion with James in live support.

 

I'm currently working on moving our site across from xyz.com/home to another server with a new path (xyz.com). The WordPress migration works fairly well, copying across content without too many issues. I regenerate permalinks and change all instances in the database with the Velvet Blues plugin (and then again with Search & Replace, as Velvet misses some instances). The caveat here is that I skipped columns with GUIDs to prevent a deluge of RSS notification for subscribers. Files are copied across and permissions are checked.

 

The issue is that the fonts are not displaying correctly. I think the problem lies in a file in /wp-content/uploads/pagelines/compiled-css-1358852642.css, which stil contains the old path. I've manually changed the path but the problem remains. Do you have any suggestions on where the problem could lie? Is there anything else I can try?

 

A word on the new server: I haven't changed the nameservers across yet as I'm aiming for a zero downtime transition. I am accessing the site on the new server by using the new server's DNS on my computer, which means it isn't publicly accessible for testing.

 

Cheers,

John

Share this post


Link to post
Share on other sites
Rob    547
Rob

Hi John,

 

We don't recommend or support changing core files.  Changes made to core files are subject to overwrite by product updates.

 

That said,  I suspect the issue should be resolved by going directly to Dashboard > Settings > Permalinks.  Change nothing at all. Just save.  This should update all the links.  I'm not sure what editing the compiled-css file will do to this solution.


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
Simon    247
Simon

John, the css file will be updated if you save the pagelines options in the backend, or simply delete the file.

Share this post


Link to post
Share on other sites
nyesinstitute    0
nyesinstitute

Previously updated permalinks but that didn't work. I'll try deleting the CSS and see what happens.

Share this post


Link to post
Share on other sites
Simon    247
Simon

Yea I didn't mean permalinks settings go to any pagelines setting area and hit save

Share this post


Link to post
Share on other sites
nyesinstitute    0
nyesinstitute

Yep I got that... the comment about permalinks was in reference to Rob's comment :)

 

I'd already tried resaving Pagelines settings with no effect, but I'll try deleting the CSS and saving settings and we'll see how we go.

Share this post


Link to post
Share on other sites
Rob    547
Rob

Keep us posted!


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
nyesinstitute    0
nyesinstitute

So, I've tried cloning the site again. The site copies over OK, the search & replace script does it's thing and all is well as far as Wordpress is concerned. I've regenerated the permalinks and I've resaved the Pagelines settings. I notice that the CSS file from before has also disappeared.

 

When I view the site, some sections are missing and the fonts aren't displaying correctly, just like before.

 

Any other thoughts?

Share this post


Link to post
Share on other sites
Jenny    33
Jenny

Are plugins/sections actually installed? Perhaps they were deactivated in the move. For example, if you had GoogleFonts installed, but now it's not, then your fonts wouldn't appear properly. Also make sure all store items are up to date.


Jenny :: Web designer at Simple Mama (follow me at @simplemamacom)

Check out Share Me, a social sharing add-on for DMS that is super simple to set up.

Share this post


Link to post
Share on other sites
nyesinstitute    0
nyesinstitute

Yep, all plugins & sections installed and updated. GoogleFonts definitely enabled and store items up to date.

 

Interestingly, the Import/Export Settings area isn't working as it should. If I go to update the Pagelines settings by importing a dat file, it simply shows me a blank white screen; no error message, no timeout, no nothing.

 

Thoughts?

Share this post


Link to post
Share on other sites
Simon    247
Simon

Host might have mod_security enabled

Share this post


Link to post
Share on other sites
Simon    247
Simon

If your willing to edit a file, i might have a solution.

Share this post


Link to post
Share on other sites
nyesinstitute    0
nyesinstitute

Yep, mod_security is enabled.

 

Happy to edit any file required.

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

Before editing any files, ask your host to disable mod_security, this may resolve your issue.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
nyesinstitute    0
nyesinstitute

Hmmm... not too keen on disabling mod_security just because I can't move a Pagelines site from one server to another. It's a fairly standard security measure.

 

What are my other options?

Share this post


Link to post
Share on other sites
nyesinstitute    0
nyesinstitute

Sorry, I forgot to add that I did disable mod_security momentarily to try and upload the settings file. It still generates a white screen with no errors and no action.

 

The MySQL server/database/username/password have all changed on the new server, but I would have thought that Pagelines would draw its login data from wp-config.php anyway? Or would at least generate an error if it failed to connect to the database? Strange.

 

I don't suppose there's a way to manually import settings?

Share this post


Link to post
Share on other sites
Simon    247
Simon

The white screen is an error, and is either a PHP error or a server error.

 

If you have WP_DEBUG enabled in wp-config.php it would show the php error.

 

If you disabled mod_sec then the file edit is pointless.

 

Ask the host if there is a php error log, or a mod_sec error/audit log they can check

Share this post


Link to post
Share on other sites
nyesinstitute    0
nyesinstitute

I had WP_DEBUG enabled and no error was generated... same old white screen.

 

I'll chase up a php error log with my host.

Share this post


Link to post
Share on other sites
greenfly    230
greenfly

Hello - Nyeinstitute

 

Let us know if there is anything else we can do on our end or please do update your thread once you find a resolution. 


The answer to many issues can be found by searching in the forum before posting as someone else  may very well have had the same problem before you have.  Also, reading the documentation can help you gain a good understanding of how everything works. 

 

Please do not send me private messages. Occam's razor - The principle states "Keep things simple!"

Share this post


Link to post
Share on other sites
Madi+    1
Madi

I'm having a similar issue after changing the upload_path and upload_url_path in options.php to redirect to http://media.oiac.org - in order to host my images on a subdomain (rather than http://oiac.org/wp-content/uploads).

 

I also added this line to .htaccess: RedirectMatch 301 ^/wp-content/uploads/(.*)$ http://media.oiac.org/$1

 

But, Pagelines still tries to save the compiled-css files in wp-content/uploads, and when I load the front end of the site again, particularly after I saved settings in Site Options, I face the same issue as nyesinstitute.

 

I'm not sure if this shines any kind of light, hoping it works, but I'll be happy to open a new thread if it doesn't.


- Madi

Share this post


Link to post
Share on other sites
James B    436
James B

Hi Madi, thanks for posting the link to the response.

  • Like 1

Kindly search the forum and read the documentation before posting. It will help you resolve many issues.

For CSS help be sure to check out W3Schools first and be sure to download FireBug for FireFox for troubleshooting.

James B

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


×