Archived

This topic is now archived and is closed to further replies.

  • 0

Problems migrating servers with path change

Question

Posted · Report post

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

21 answers to this question

Posted · Report post

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.

Share this post


Link to post
Share on other sites

Posted · Report post

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

Posted · Report post

Host might have mod_security enabled

Share this post


Link to post
Share on other sites

Posted · Report post

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

Share this post


Link to post
Share on other sites

Posted · Report post

Yep, mod_security is enabled.

 

Happy to edit any file required.

Share this post


Link to post
Share on other sites

Posted · Report post

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.

Share this post


Link to post
Share on other sites

Posted · Report post

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

Posted · Report post

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

Share this post


Link to post
Share on other sites

Posted · Report post

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

Posted · Report post

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

Posted · Report post

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

Posted · Report post

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

Posted · Report post

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

Posted · Report post

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

1 person likes this

Share this post


Link to post
Share on other sites

Posted · Report post

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

Posted · Report post

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

Posted · Report post

Keep us posted!

Share this post


Link to post
Share on other sites

Posted · Report post

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

Posted · Report post

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.

Share this post


Link to post
Share on other sites

Posted · Report post

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. 

Share this post


Link to post
Share on other sites