Are you having a hardtime uploading your installable WordPress .zip file, or are you getting some errors when importing one of our premade demos? If you are hitting errors, this is most likely due to your host so please read on.
Don't worry because these errors are quite common and can be easily resolved. Different hosting companies set different system status parameters by default, and unfortunately we can’t change these for you within our WordPress theme, so you will have to open up a file or two and make a couple of updates.
First of all, you can see what your server's settings are set to by installing a ServerInfo type of plugin. So take a look at your settings, and then read on below to see how to change them.
Your "wp-config.php" settings
The wp-config.php file is located within the root directory of your WordPress installation. Below are a couple of settings you may like to change:
WP Memory Limit
This parameter sets the amount of memory used by PHP, and by default WordPress can go up to 40MB. To avoid memory exhaustion this parameter should be set to atleast 64MB within your wordpress wp-config.php file. You can place this code on line #2 right after the opening php tag.
define( 'WP_MEMORY_LIMIT', '64M' );
WP Debug is an option that is made for development, and it controls the reporting or errors & warnings which may display unwanted messages. So this should be disabled, which luckily enough it is by default so chances are you won't have to touch a thing here.
Your server parameters
Max Input Vars
This sets how many input variables are to be accepted.
Max Execution Time
This sets the maximum time in seconds a script is allowed to run before it is terminated. The demo data importer downloads images from our servers and depending on the connection speed, this may take a longer time to execute.
Post Max Size & Upload Max Filesize
This sets the max size of post data allowed, this setting also affects file uploads within your WordPress admin. So to upload larger files you will need to increase this value.
The parameters to update
Depending on your host you are able to change (or add if they are not there) these values from within either the php.ini or .htaccess file.
Make sure that before you edit these files, to take a backup of any file that you edit as best practice. So if you happened to make a mistake in one file, you can always upload your backup.
max_input_vars = 5000 max_execution_time = 600 post_max_size = 64M upload_max_filesize = 64M
php_value max_input_vars 5000 php_value max_execution_time 600 php_value post_max_size 64M php_value upload_max_filesize 64M
Please note that before changing any of these values, you check your hosts documentation to see what their recommended method is.
Please note that it is always safe, and best practice to take a backup copy of any files that you edit. So encase you happened to make a mistake somewhere, you can always re-upload your backup file.
Please note that the php.ini file location may be in a different location from one server to another, but is usually located within the WordPress root.