The Max Input Vars setting in PHP determines the maximum number of input variables your server can handle in a single request. If you're working with large forms, complex menus, or bulk settings updates, you may encounter issues like "Max Input Vars Limit Exceeded." To resolve this, you can increase the limit. Here's how to do it.
The max_input_vars
directive in PHP limits the number of input variables sent via GET, POST, or COOKIE. If the number of variables exceeds this limit, some data may be truncated, leading to incomplete submissions.
Before making changes, determine the current max_input_vars
value. Here's how:
phpinfo.php
with the following code:<?php phpinfo(); ?>
http://yourwebsite.com/phpinfo.php
).max_input_vars
in the output.max_input_vars
value.The method to increase the max_input_vars
value depends on your hosting environment.
php.ini
php.ini
file (usually in the root directory or /etc/
).max_input_vars = 3000Replace
3000
with the desired limit, e.g., 5000
..htaccess
(For Apache Servers).htaccess
file in your website’s root directory.php_value max_input_vars 3000
max_input_vars
option.3000
or higher (e.g., 5000
)..user.ini
File (For Shared Hosting).user.ini
file in your website's root directory.max_input_vars = 3000
If you're unable to modify these settings, contact your hosting provider and request an increase in max_input_vars
.
After making the changes:
phpinfo.php
file to confirm the updated value.php.ini
, .htaccess
, or .user.ini
) is edited. Restart the server if necessary.max_input_vars
too high to prevent server performance issues.Increasing Max Input Vars is crucial for websites with large forms, extensive menus, or complex configurations. By following these steps, you can ensure smooth functionality and avoid truncation issues. If you face challenges, don’t hesitate to reach out to your hosting provider for support.
After installing WordPress, the next step is to install the Mayosis theme. There are two ways to do this:
using FTP and using WordPress.
Using WordPress
1. Log in as admin;
2. Navigate to Appearance > Themes > Install themes;
3. Upload the .ZIP file named mayosis.zip.
If you want to install the child theme too repeat the steps above, but upload the child theme .ZIP file.
Using FTP
1. Extract the .ZIP. This will leave you with a folder named ‘mayosis’;
2. Using your FTP client of choice navigate to /wp-content/themes and upload the folder there.
If you want to install the child theme too repeat the steps above, but upload the child theme folder.
Activating
No matter which method you choose, the theme needs to be activated after install. To activate the
Mayosis theme navigate to Appearance à Themes and choose the blue ‘Activate’ button which
appears under the Mayosis> license.
Whenever a new custom post is added through a plugin or code, WordPress permalinks usually need to be flushed. Also, that's required after transferring the site to another domain.
The Post Max Size setting determines the maximum size of POST data your website can handle. This includes form submissions, file uploads, and data sent during HTTP POST requests. If you're encountering issues like "POST content length exceeds the limit" or incomplete file uploads, you may need to increase this limit. Here's how you can do it.
The post_max_size
directive in PHP sets the maximum amount of data that can be sent in a single POST request. This value should always be equal to or larger than the upload_max_filesize
to avoid upload issues.
Before increasing the limit, determine the current post_max_size
setting. You can check it using one of these methods:
phpinfo.php
with the following code:<?php phpinfo(); ?>
http://yourwebsite.com/phpinfo.php
).post_max_size
in the output.post_max_size
value.Here are the methods to increase the post_max_size
value, depending on your hosting environment.
php.ini
php.ini
file (commonly found in the root directory or /etc/
).post_max_size = 64M
.htaccess
(For Apache Servers).htaccess
file located in your website’s root directory.php_value post_max_size 64M
post_max_size
setting.64M
or higher..user.ini
(For Shared Hosting).user.ini
file in your website's root directory.post_max_size = 64M
To ensure smooth uploads and data processing, adjust these related settings in php.ini
or .htaccess
:
post_max_size
.upload_max_filesize = 64M
max_execution_time = 300
After making the changes:
phpinfo.php
or your admin panel to confirm the updated post_max_size
value.php.ini
or .htaccess
) is edited. Restart the server if required..htaccess
or php.ini
.post_max_size
slightly higher than upload_max_filesize
to account for metadata and additional data sent with files.Increasing the post max size is essential for websites handling larger uploads or form submissions. By following these steps, you can resolve upload errors and ensure your website operates smoothly. If you encounter issues, your hosting provider's support team is an excellent resource to guide you through the process.
The max_input_vars directive can be set in .htaccess, php.ini , .user.ini or wp-config.php file.
Directive for .htaccess
php_value max_input_vars 4000
Directive for php.ini or .user.ini
<strong>max_input_vars =4000 </strong>
Directive for wp-config.php
@ini_set( 'max_input_vars' , 4000 );<span></span>
Directive for wp-config.php
define( 'WP_MEMORY_LIMIT', '512M' );
If this code already exists in your wp-config.php file, you need to increase the number. For example, you can increase it from 32M to 512M.
If you don’t see this line of code in the file, you’ll need to add it. Just add the following code above the line that says
/* That's all, stop editing! Happy publishing. */:
When installing or updating a WordPress theme, some users may encounter an error stating:
"The package could not be installed. The theme is missing the style.css stylesheet."
This issue typically arises when attempting to upload the entire downloaded theme package instead of the installable theme file. Below, we will guide you through the correct steps to install or update your theme safely and correctly.
When you purchase or download a premium WordPress theme, you often receive a compressed ZIP package that contains additional files such as:
Since WordPress only recognizes the installable theme file, uploading the full package will result in the missing stylesheet error.
After downloading your theme from the marketplace or theme provider, follow these steps:
themename_package.zip
).themename.zip
, which should be uploaded to WordPress. (this is the actual installable theme file).themename.zip
file.Many premium themes require additional plugins for full functionality. After installing the theme, go to Appearance → Install Plugins and activate all recommended plugins.
Before making any updates, always create a backup of your WordPress site to avoid losing any important customizations. You can use a plugin like UpdraftPlus or All-in-One WP Migration to create a full backup of your site.
Once you have extracted the correct installable theme file, follow these steps:
themename.zip
file.After updating the theme, ensure that all necessary plugins (e.g., core plugins, page builders, or custom functionalities) are updated:
If you are unable to upload the theme through the WordPress dashboard, you can manually update the theme using an FTP client like FileZilla.
/wp-content/themes/
.themename
) and rename it to themename_old
as a backup.themename
folder extracted from the ZIP file.Properly installing and updating your WordPress theme ensures that your site remains secure and functions optimally. The most common mistake users make is uploading the entire theme package instead of the installable theme file. By following this guide, you can install or update your theme smoothly without encountering errors or losing customizations.
If you want to create a menu or change the menu imported by the demo, you can do so. To do this,
follow the next steps:
1. Log in as admin
2. In the left panel go to Appearance > Menus
3. Here you can change the menus, and also change the menu locations.
More information about using WordPress Menus can be read in the Codex, here:
https://codex.WordPress.org/WordPress_Menu_User_Guide
Since Mayosis is a WordPress theme, WordPress needs to be installed on your webserver. Many
hosting providers provide an easy to use installer called Installatron, which is available in your CPanel.
If your hosting provider does not offer this option, WordPress can still be easily installed. Please visit
http://WordPress.org and download the most recent version of WordPress. After downloading the
most recent version, visit the WordPress Codex page (http://codex.WordPress.org/
Installing_WordPress) to see how you can install WordPress on your webserver.
The Max Execution Time setting in PHP determines the maximum time a script is allowed to run before being terminated. If your website handles long-running tasks, such as large file uploads, data imports, or plugin/theme updates, you might encounter errors like "Maximum execution time exceeded." Increasing the Max Execution Time can resolve these issues.
The max_execution_time
directive in PHP defines the time limit (in seconds) for script execution. By default, this is set to 30 seconds, but many hosting environments set it to 300 seconds. If a script runs longer than this time, it will terminate to prevent server overload.
Before making changes, determine the current max_execution_time
value:
phpinfo.php
with the following code:<?php phpinfo(); ?>
http://yourwebsite.com/phpinfo.php
).max_execution_time
in the output.max_execution_time
value.Here are several methods to increase the max_execution_time
value, depending on your hosting environment:
php.ini
php.ini
file (commonly in the root directory or /etc/
).max_execution_time = 300Replace
300
with the desired value, such as 600
for 10 minutes..htaccess
(For Apache Servers).htaccess
file located in your website’s root directory.php_value max_execution_time 300Replace
300
with your desired value.max_execution_time
option.300
or higher (e.g., 600
)..user.ini
File (For Shared Hosting).user.ini
file in your website’s root directory.max_execution_time = 300
wp-config.php
file in your WordPress installation directory./* That's all, stop editing! Happy publishing. */
:@ini_set('max_execution_time', 300);This method overrides the server setting but is temporary and may not work on some hosts.
If you’re unable to modify the settings yourself, contact your hosting provider and request an increase in max_execution_time
.
phpinfo.php
file or your admin panel to confirm the updated value..htaccess
or php.ini
files.Increasing the Max Execution Time is essential for handling long-running scripts on your website. By following the steps outlined above, you can prevent timeout errors and ensure smooth operations. If you encounter difficulties, your hosting provider can assist in adjusting the settings for you.
1. At first, enable the Mega menu from the Customizer option panel. There you will find mega menu color options. Typography options are included in typography.
2. Now go to the menu from Appearance & After that open the menu item (in the first level) which you want to have a dropdown Megamenu, and check the box “Megamenu”
Megamenu size
You will be able to set the custom width of mega menu. Set width & pull left by the negative or positive value.
To add columns to your mega menu, add a custom link from the left area with a link as “#” and the link as the desired title of the column inside the Megamenu (for example: About us), and add this custom link under the main mega menu main item (as second-level item), and check the box “Convert to column item”, you can also choose the desired column width of this column, or you can change the style of the column by adding padding or lines.
You can now add any number of columns the same way inside the mega menu, and the columns can be in any different sizes depending on the style that you want to build.
You can set a title for the whole column via the “Hide the Label field of that column item in your menu
Adding menu banners or Elementor Content
In addition to normal links, you can add advanced items to the mega menu like the image or video banners, to do so add any menu item inside the mega menu then open its options, then check the box “Convert to Box item” and choose the desired Title and text, and choose an image/video, you can also change box style or its height or the color of the text inside the box. Also, add Mayosis Block Shortcode To show Elementor custom content. That's much easy to show your Elementor column or anything by elementor by shortcode.
This is much easier to handle. If need more help please create a ticket.
You may need to set your front page and/or blog page yourself, or you may want to change these
pages.
To do this, follow the next steps:
1. Log in as admin
2. In the left panel go to Settings > Reading
3. Choose the pages for both the front page and the blog page.
You have now set a front page and blog page.
Please note that you can only import demo content after installing all the required plugins first. If you
have not done this yet, please do this now before continuing this step. If you would like to use Easy
Digital Downloads – Frontend Submissions for a multivendor marketplace please install and activate
this plugin first, too.
Importing demo content gives you a head start in which you mostly need to customize as you wish.
To import demo content, follow the next steps:
1. Log in as admin;
2. In the left panel go to Mayosis > Import demo content;
3. Choose the demo you would like to import. Because we like to give our user maximum freedom
in their preferences, we have made multiple demos with the page builders ‘Elementor’ and
‘WPBakery’. This means that you can import the demo with the page builder of your
preference;
4. After clicking ‘import’ please wait for a few minutes till all the demo content is imported.
You are all set; all the demo content is now imported and you should have the same website as the demo
Managing file uploads is essential for any website that allows users to upload files, whether it’s for images, videos, or documents. Sometimes, the default maximum file upload size set by your server or CMS may not meet your needs. In this article, we’ll walk you through the steps to increase the maximum file upload size for your website.
Here are a few reasons why you might need to increase the file upload size:
Before making changes, you need to know the current file upload limit. Follow these steps:
Alternatively, you can create a PHP file with the following content to check the limit:
<?php phpinfo(); ?>
Upload this file to your server and open it in your browser to see the current upload_max_filesize
and post_max_size
values.
There are several methods to increase the maximum file upload size, depending on your hosting setup. Choose the one that applies to your environment.
php.ini
FileThe php.ini
file controls many server configurations, including file upload limits.
php.ini
file (it’s usually in the root folder or /etc/
directory).upload_max_filesize = 64M post_max_size = 64M max_execution_time = 300
.htaccess
File (For Apache Servers)If your website uses Apache, you can change the upload limit through the .htaccess
file.
.htaccess
file in the root directory of your website.php_value upload_max_filesize 64M php_value post_max_size 64M php_value max_execution_time 300
upload_max_filesize
and post_max_size
settings.64M
).If you’re using WordPress, plugins like Increase Maximum Upload File Size or WP Maximum Upload File Size make this process simple:
After increasing the server-level limits, make sure to update the settings within your website’s admin panel to reflect the new limit:
To confirm the changes:
Increasing the maximum file upload size is a straightforward process when you know the right settings to adjust. Whether you’re running a website on WordPress, a custom CMS, or any platform, these steps will help you accommodate larger file uploads and improve user experience. If you encounter difficulties, your hosting provider’s support team is an excellent resource for assistance.