Rate Your Experience

How to Fix Hosting Migration Errors

Modified on: Wed, 12 Apr, 2023

How to Fix Hosting Migration Errors



Ezoic’s hosting service is free, and websites are expected to utilize other Ezoic services in addition to our hosting.

In certain situations, such as with manual migrations, technical work may be required. Therefore, it is advisable to use Ezoic's hosting only if you are confident you are equipped to carry out this technical work, as Ezoic does not provide managed support for hosting. If a situation occurs where your site is inaccessible, Ezoic will not be able to assist if the issue is unrelated to Ezoic. Before beginning the migration process, please ensure that you have a backup of your site.

This article provides FAQs + steps to troubleshoot the most common errors that publishers face when migrating websites to Ezoic. It's important to keep in mind that solutions may vary depending on the website.



Allocating resources failed on blank site setup

If you see this then it’s recommended to get in touch with Ezoic about this so that our Tech team can take a look.

image



Too many redirects error when you are previewing the site on Ezoic hosting

1. Login via SFTP.

image

2. Navigate to 'wp-config.php'
3. Click 'Edit' next to the file, and check if the file has these lines below. If not, add then just below '

image

For example:

image



Migration failed

image

This usually means Ezoic is receiving ‘permission denied’ from your current host, when trying to upload our database export script. You can reach out to your current host about this to get help updating the SFTP user permissions. If you can’t do that, then you can try switching to manual migration instead. Please note manual migration requires technical work.


404 error on all pages except the homepage 

Often this issue can be resolved by going to ‘settings’ > ‘permalinks’ in Wordpress and clicking ’save’.

image

If this does not work then the issue is likely with the .htaccess file. In this scenario:

1. Retrieve your SFTP credentials from your Ezoic dashboard:

image

2. Navigate to the .htaccess file
3. Go into here to copy the .htaccess rule contents
4. Paste the contents at the bottom of the .htaccess file in SFTP /html directory. If no .htaccess file exists, you’ll have to first create one.

image




Fatal error, Critical Error, 500 Error

These errors can be caused by a variety of factors and often depend on the specific setup of the website and its files. These errors can often be fixed by disabling plugins, and resetting the theme to a default Wordpress theme. The errors will likely be affecting login pages, so you won’t be able to access Wordpress via your Wordpress admin login. Instead, follow the steps below:



Deactivating plugins:

1. Retrieve your SFTP credentials from your Ezoic dashboard:

image

2. You can use Filezilla to manage your Wordpress files. Log into Filezilla. Make sure you use the SFTP. login Not FTP. For your host entry.
3. Once you're in the file directory, expand ‘html’, and then expand ‘wp-content’

image

4. Right click plugins and rename it to plugins.
5. All plugins are now deactivated. To reactivate them simply rename the folder back to plugins.



Changing your theme to default 

1. Login via SFTP using the credentials in your Ezoic dashboard:

image

2. Expand the ‘html’ folder then the ‘wp-content’ folder and finally the ‘themes’ folder, to see what themes are installed:

image

3. Now login into PHPmyadmin using the credentials in your Ezoic dashboard:

image


First template

1. Scroll down until you find the "wp_options" line; click on the text "wp_options", which will populate entries on the right side of the screen. These are the various administrative options inside Wordpress.
2. Set Number of rows =500
3. Filter rows = template
4. Sort by key = None

image

5. If you do not see template continue and repeat on page 2 and so on and so on until you find it.
6. Change the option_value here to the folder name of the theme you want

image

7. Scroll to the bottom and look for a series of buttons that say "Preview SQL", "Reset", and "Go"; click "Go".


Second template

1. You will repeat the same steps as above for template but instead enter stylesheet.
2. Click "Edit" on the stylesheet line.
3. Change the option_value here to the folder name of the theme you want.
4. Scroll to the bottom and look for a series of buttons that say "Preview SQL", "Reset", and "Go"; click "Go".
5. The theme you selected should now be active.


Temporary wordpress credentials expired/ reset wordpress Login password


*Be cautious here - you are making database changes

1. Open PHPmyadmin. You can find a link to this in your hosting dashboard under ‘manage credentials’:

image

2. On the left-hand side, you will see two menus that can be expanded - ‘information_schema’ and another option that is the site URL (often the same as the DB User). Click on the plus sign to expand the one that is most likely named after the DB user.

image

3. Scroll down until you find the "wp_users" line; click on the text "wp_users", which will populate entries on the right side of the screen. These are the users and associated information on them in the database.
4. To the left of the line containing the username you want to change, click on the "Edit" option.

image

5. Look for a line with the name "user_pass" and what looks like a bunch of gibberish in the text box for it.
6. Make note of what is in the box (save to a notepad or somewhere else in case you need to revert), then type in what you want the new password to be, overwriting what was previously there.
7. In the "Function" dropdown beside the text box, on the same line, select "MD5".
8. Scroll to the bottom and look for a series of buttons that say "Preview SQL", "Reset", and "Go"; click "Go".
9. You can now use the password you put in here to log into Wordpress with that username.

image



Change wordpress admin email 

*Be cautious here - you are making database changes

1. Follow the steps to open PHPmyadmin outlined above
2. Scroll down until you find the "wp_options" line; click on the text "wp_options", which will populate entries on the right side of the screen.

image

3. We will now scroll down until we see a row with an option name (option_name) of admin_email.

image

4. Click "Edit" on the admin_email line.
5. Change the option_value here to the email address you want.
6. Scroll to the bottom and look for a series of buttons that say "Preview SQL", "Reset", and "Go"; click "Go"



Loading ...