• When I want to change the color of my mega menu I get this error
    I will add that so far everything has been fine.

    I have reverted the changes. I have disabled other plugins and still no change. Please help


    Error saving theme. Please try refreshing the page.
    Warning: CSS compilation failed. Please check your changes or revert the theme.
    Undefined variable $responsive_breakpoint: line: 178, column: 5 Call Stack: #0 mixin desktop (unknown file) on line 316″

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support megatom

    (@megatom)

    Hi,

    Please go to Mega Menu > Menu Themes > Mobile Menu and check a valid value has been used for the Responsive Breakpoint. It can’t be left empty. It should be something like 768px.

    If you have multiple menu themes, check each theme.

    Regards,
    Tom

    Thread Starter ludekwp

    (@ludekwp)

    hello. I checked, but in my case this value is filled. I don’t know where else to look for the problem.

    It is possible that the max_input_vars limit has been exceeded, which may result in some settings being lost during submission. If too many fields are sent, PHP truncates them silently, leading to missing values and errors.

    Steps to Reproduce:

    1. Set max_input_vars = 120 in your PHP configuration.
    2. Navigate to Mega Menu > Menu Themes or visit /wp-admin/admin.php?page=maxmegamenu_theme_editor directly.
    3. Click Save.
    4. You will see the following error:
      Error saving theme. Please try refreshing the page.
      Warning: CSS compilation failed. Please check your changes or revert the theme.
      Undefined variable $responsive_breakpoint: line: 177, column: 5
      Call Stack: #0 mixin desktop (unknown file) on line 315

    Recommended Solution:
    Increase max_input_vars in php.ini, .htaccess, or wp-config.php to prevent truncation.

    To avoid silent data loss, a good practice is to add a validation field at the end of the form (e.g., validation_token). After submission, the plugin should verify whether this field is present in $_POST or $_GET. If it is missing, it likely means that max_input_vars has been exceeded, and the plugin can display a clear warning to the user.

    This approach helps users diagnose the issue more easily and prevents unexpected errors.

    • This reply was modified 1 year, 2 months ago by stefopl.
    Plugin Support megatom

    (@megatom)

    Hi Luke,

    I am not sure either sorry. The error suggests the Responsive Breakpoint value has been left blank for one of your themes. Have you definitely checked each theme? How many do you have setup? There is a drop down selector at the top of the theme editor that you need to check.

    Regards,
    Tom

    It is possible that the max_input_vars limit has been exceeded, which may result in some settings being lost during submission. If too many fields are sent, PHP truncates them silently, leading to missing values and errors.

    Steps to Reproduce:
    Set max_input_vars = 120 in your PHP configuration.

    Navigate to Mega Menu > Menu Themes or visit /wp-admin/admin.php?page=maxmegamenu_theme_editor directly.

    Click Save.

    You will see the following error:

    Error saving theme. Please try refreshing the page.
    Warning: CSS compilation failed. Please check your changes or revert the theme.
    Undefined variable $responsive_breakpoint: line: 177, column: 5
    Call Stack: #0 mixin desktop (unknown file) on line 315

    Recommended Solution:
    Increase max_input_vars in php.ini, .htaccess, or wp-config.php to prevent truncation.

    To avoid silent data loss, a good practice is to add a validation field at the end of the form (e.g., validation_token). After submission, the plugin should verify whether this field is present in $_POST or $_GET. If it is missing, it likely means that max_input_vars has been exceeded, and the plugin can display a clear warning to the user.

    This approach helps users diagnose the issue more easily and prevents unexpected errors.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘mega menu problem save styl’ is closed to new replies.