Home Forums Basel support forum Notice: Undefined offset: 11462 error when trying to change width of menu

Notice: Undefined offset: 11462 error when trying to change width of menu

Viewing 18 posts - 1 through 18 (of 18 total)
  • Author
    Posts
  • #6532

    m360
    Participant

    We are seeing a lot of error messages like public/wp-content/themes/basel/inc/third-party/nav-menu-images/inc/admin.php</b> on line <b>289</b><br /> when trying to change the width of a menu item.

    This also means that we can’t make the menu items full-width.

    An alternate solution is to modify it in the database, but that is not an optimal solution.

    #6543

    Artem Temos
    Keymaster

    Hello,

    Thank you for contacting us.

    Please provide us your website url and admin access so we could take a look at this issue.

    Kind Regards
    Xtemos

    #6560

    m360
    Participant

    I have added the information to the private content.

    #6561

    Artem Temos
    Keymaster

    Thank you. We see these notices. Try to suppress them by turning off a Debug mode https://codex.wordpress.org/Debugging_in_WordPress

    #6562

    m360
    Participant

    The main problem isn’t the notices, the main problem is that it is impossible to save changes to the menu items.
    I can accomplish the same by modifying the database, but I want to avoid this if I can.

    #6563

    Artem Temos
    Keymaster

    Anyway, try to disable debug mode firstly. Also, we suggest you increase PHP parameters on your server

    #6573

    m360
    Participant

    I have disabled debug mode, and I have tried adding the following to wp-config.php:

    ini_set(‘post_max_size’, ‘500M’);
    ini_set(‘upload_max_filesize’, ‘500M’);
    define(‘WP_MEMORY_LIMIT’, ‘128M’);
    ini_set(‘memory_limit’, ‘128M’);
    ini_set(‘max_execution_time’, ‘300’);

    I also tried adding

    php_value session.gc_maxlifetime 10800
    php_value max_input_time 10800
    php_value max_execution_time 10800
    php_value upload_max_filesize 110M
    php_value post_max_size 120M

    to .htaccess, and I still get the same issue.

    #6585

    Artem Temos
    Keymaster

    Just tried to make changes to one of your menu items and it seems to work correctly

    Regards

    #6671

    m360
    Participant

    I am trying to make the menu items (like Katt) full-width, and it doesn’t work for me. It’s just stuck on Standard width.

    I tried doing what you told me to do.

    #6679

    Artem Temos
    Keymaster

    Just tried to save the menu and see all errors again. That is why it doesn’t work now. Last time we saved it without any notices.

    #6688

    m360
    Participant

    I needed debug mode to be on for development purposes, but I have disabled it again now.

    The error messages are gone, but it is not saving the design change, I can still not change, say, the menu “Katt” to be full-width.
    It will just not save. It says it has been saved, but the design is still “Standard”, even when I changed it.

    #6689

    Artem Temos
    Keymaster

    We see that we are able to change sizes for some items like Hund for example but can’t for others like Katt. There is only one reason for this may be: low PHP Post size. You need to increase some parameters on your server

    Regards

    #6690

    m360
    Participant

    I have this in my .htaccess:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    php_value session.gc_maxlifetime 10800
    php_value max_input_time 10800
    php_value max_execution_time 10800
    php_value upload_max_filesize 210M
    php_value post_max_size 220M
    php_value memory_limit 256M

    # END WordPress

    #6691

    Artem Temos
    Keymaster

    Probably it should be increased in your server configuration. Try to contact your providers for help.

    Regards

    #6714

    m360
    Participant

    Server provider said it is done in .htaccess.

    And since I have php_value post_max_size 220M I assume this should be more than enough?

    #6727

    Artem Temos
    Keymaster

    But we see that PHP max inputvariabler: parameter is still 1000. You need to increase this also since your menu has a large amount of links and so PHP sends to large data variables.

    Regards

    #6741

    m360
    Participant

    Yes, that finally fixed the issue!

    Thank you very much.

    #6742

    Artem Temos
    Keymaster

    Great, you are welcome!

Viewing 18 posts - 1 through 18 (of 18 total)

The topic ‘Notice: Undefined offset: 11462 error when trying to change width of menu’ is closed to new replies.