-
AuthorPosts
-
February 26, 2018 at 10:08 pm #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, 8 months ago by qtheagency.
February 27, 2018 at 3:01 am #918137I 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.
February 27, 2018 at 3:19 am #918138Seems 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!
February 27, 2018 at 7:06 am #918234Hi,
Can you also give us ftp access? so we can check further.
Best regards,
NikkoFebruary 27, 2018 at 2:16 pm #918461I’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.
February 28, 2018 at 3:28 pm #919092Hi,
Thank you for the update. The FTP login credentials above are not working. Please check it.
Best regards,
IsmaelFebruary 28, 2018 at 3:33 pm #919096This reply has been marked as private.February 28, 2018 at 4:16 pm #919136February 28, 2018 at 11:43 pm #919320This reply has been marked as private.March 1, 2018 at 2:46 pm #919667This reply has been marked as private.March 2, 2018 at 10:30 am #920197Hi,
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,
IsmaelMarch 3, 2018 at 1:24 am #920605This reply has been marked as private.March 3, 2018 at 8:34 pm #920892This reply has been marked as private.March 5, 2018 at 7:38 pm #921724Hello? I haven’t heard from anyone since last week… really need to get this resolved. Thank you!
March 6, 2018 at 4:43 am #922015Hi,
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,
IsmaelMarch 6, 2018 at 4:47 am #922018Hello,
The directory to edit is htdocs.
Thanks!
March 6, 2018 at 8:30 pm #922489This reply has been marked as private.March 7, 2018 at 4:27 am #922711This reply has been marked as private.March 7, 2018 at 5:25 am #922726Hi,
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-helpBest regards,
IsmaelMarch 8, 2018 at 2:35 am #923509This reply has been marked as private.March 9, 2018 at 4:40 am #924251Hi,
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,
IsmaelMarch 11, 2018 at 4:35 pm #925212This reply has been marked as private.March 13, 2018 at 9:42 pm #926265Hi,
max_vars to 6000 is way to low.
It should be more than 512 please.Best regards,
BasilisMarch 13, 2018 at 10:20 pm #926298This reply has been marked as private.March 15, 2018 at 8:09 pm #927636Hi,
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,
BasilisMarch 15, 2018 at 8:41 pm #927665This reply has been marked as private.March 19, 2018 at 6:33 am #928875Hi,
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 -
AuthorPosts
- You must be logged in to reply to this topic.