Viewing 27 posts - 1 through 27 (of 27 total)
  • Author
    Posts
  • #918059

    Hello,

    My site is currently displaying an error in the header:

    Warning: Illegal string offset ‘custom_css_post_id’ in /data/15/4/139/33/4628196/user/5479045/htdocs/URLNAME/wp-includes/theme.php on line 903

    The menus are also messed up. I had this issue last week on another site I purchased your theme for, activated the child theme, and it seemed to fix it. If I deactivate the Child, the problem returns.

    However, on this site, the child theme does not seem to help. I’ve included the website URL in the private content section below. Need help ASAP.

    Thanks!

    • This topic was modified 6 years, 9 months ago by qtheagency.
    #918137

    I was able to suppress the error text, but the menu issue is still there. I turned on the burger menu in the mean time, but if you click it you will see it just lists all the pages and does not display them separated in the various menus. If you turn the menu back to text mode you will see the issue very clearly.

    #918138

    Seems I’ve pinpointed the error. The theme is preventing the menu locations from saving. On the Appearance > Menu page, I cannot save the menu settings. I can click an option, but once saved, they disappear.

    Please help!

    #918234

    Hi,

    Can you also give us ftp access? so we can check further.

    Best regards,
    Nikko

    #918461

    I’ve included FTP in the private content.
    Also, I use Enfold on another site which has the exact same menu glitch and Illegal String Offset offset error, but using the child theme seems to fix it. Not the case here.

    Thanks again for taking a look.

    #919092

    Hi,

    Thank you for the update. The FTP login credentials above are not working. Please check it.

    Best regards,
    Ismael

    #919096
    This reply has been marked as private.
    #919136

    Hi,

    We will keep the thread open and wait to hear from you :)

    Best regards,
    Yigit

    #919320
    This reply has been marked as private.
    #919667
    This reply has been marked as private.
    #920197

    Hi,

    Thank you for the update.

    The login credentials are still not working. Please ask your hosting provider to increase the value of the “max_input_vars”, “suhosin.post.max_vars” and the “suhosin.request.max_vars”. If you have access to the php.ini file, please use this code.

    max_input_vars = 3000
    post_max_size  = 128M
    

    You can also use this in the root directory’s .htaccess file.

    php_value max_input_vars 3000
    php_value post_max_size 128M
    

    Best regards,
    Ismael

    #920605
    This reply has been marked as private.
    #920892
    This reply has been marked as private.
    #921724

    Hello? I haven’t heard from anyone since last week… really need to get this resolved. Thank you!

    #922015

    Hi,

    I’m very sorry if the problem is taking quite a while to be resolved.

    I created a php.ini file and added those values you gave me to it. It didn’t help. I still cannot save the menu settings.

    Some hosts do not allow access to the php.ini file so the code that was added there may not have any effect. Please try to adjust the php directives in the .htaccess of the WP root directory.

    php_value max_input_vars 6000
    php_value post_max_size 128M

    I am now able to connect to the FTP server but I’m not sure which directory to edit.

    Best regards,
    Ismael

    #922018

    Hello,

    The directory to edit is htdocs.

    Thanks!

    #922489
    This reply has been marked as private.
    #922711
    This reply has been marked as private.
    #922726

    Hi,

    Thank you for the update. Yes, we understand the issue and it seems to be related to your server. Please enable the WP_DEBUG_LOG in the wp-config.php file, try to re-save the menu’s theme locations to trigger the error and the ask your hosting provider for the error log. This will give us more information about the issue.

    define( 'WP_DEBUG_LOG', true );
    define( 'WP_DEBUG_DISPLAY', false );
    

    And while you’re at it, please increase the memory limit to at least 256M. The following threads might help.

    // https://wordpress.org/support/topic/wordpress-menu-problem/
    // https://premium.wpmudev.org/forums/topic/cant-save-wordpress-menu-help

    Best regards,
    Ismael

    #923509
    This reply has been marked as private.
    #924251

    Hi,

    Thank you for the info. The warnings are created by the “set_theme_mod” function which is rarely use in the theme. This function is only executed when you import a demo.

    I also tried to adjust the values in the php.ini file but it’s not taking effect. Maybe, the server has to be restarted. Nevertheless, you should ask your hosting provider to adjust these options in their end and confirm the adjusted values because I don’t think you have the right level of access to be able to configure these directives in the php.ini file.

    Best regards,
    Ismael

    #925212
    This reply has been marked as private.
    #926265

    Hi,

    max_vars to 6000 is way to low.
    It should be more than 512 please.

    Best regards,
    Basilis

    #926298
    This reply has been marked as private.
    #927636

    Hi,

    php_value max_input_vars 512

    is the correct yes, I am sorry it was a mistake while I was typing.

    I am so sorry again.

    Best regards,
    Basilis

    #927665
    This reply has been marked as private.
    #928875

    Hi,

    Does php_value max_input_vars 512 go in the php.ini file?

    I don’t think your current account have enough privileges or rights to modify the php.ini file. You should contact your hosting provider. Ask them to review this article.

    // http://www.wpbeginner.com/wp-tutorials/how-to-fix-the-custom-menu-items-limit-in-wordpress/

    Best regards,
    Ismael

Viewing 27 posts - 1 through 27 (of 27 total)
  • You must be logged in to reply to this topic.