admin管理员组文章数量:1333492
I ran some checks on RAM on my machine and discovered this error "Error: (06/14/2020 12:45:54 PM) (Source: MariaDB) (User: ) Description: mysqld.exe: Table '.\test\wp_usermeta' is marked as crashed and should be repaired"
I have local WP install on localhost. Does this error somehow impact the fact that I am unable to stop auto add of new pages to primary menu even if I have 'Automatically add new top-level pages to this menu' unchecked?
EDITS:
function.php child theme
function archive_menu() {
register_nav_menu('archive_menu',__( 'Archive' ));
}
add_action( 'init', 'archive_menu' );
index.php child theme
<?php
wp_nav_menu(
array ( 'theme_location'=> 'archive_menu')
);?>
I ran some checks on RAM on my machine and discovered this error "Error: (06/14/2020 12:45:54 PM) (Source: MariaDB) (User: ) Description: mysqld.exe: Table '.\test\wp_usermeta' is marked as crashed and should be repaired"
I have local WP install on localhost. Does this error somehow impact the fact that I am unable to stop auto add of new pages to primary menu even if I have 'Automatically add new top-level pages to this menu' unchecked?
EDITS:
function.php child theme
function archive_menu() {
register_nav_menu('archive_menu',__( 'Archive' ));
}
add_action( 'init', 'archive_menu' );
index.php child theme
<?php
wp_nav_menu(
array ( 'theme_location'=> 'archive_menu')
);?>
Share
Improve this question
edited Jun 17, 2020 at 4:07
810311
asked Jun 16, 2020 at 2:51
810311810311
417 bronze badges
1 Answer
Reset to default 0I can't see how, because the wp_usermeta
table contains the metadata about your users. The menu items are stored in the wp_posts
table, and the menu options (including the status of the "Automatically add new top-level pages") is stored in wp_options
.
I would definitely recommend that you repair the crashed table, though, because it's likely having an impact on your WordPress site. See this question and its answers for advice.
Edit
Your posted code looks right to me, and if you've assigned the menu properly then it should be working. I'm not sure what the problem might be. Does the menu work properly in a default theme?
本文标签: menusis MariaDB error related to Automatically add new toplevel pages
版权声明:本文标题:menus - is MariaDB error related to Automatically add new top-level pages 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742340973a2456596.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论