screadore Posted July 21, 2019 Share Posted July 21, 2019 Wordpress gave me the following error when uploading the this themeforest theme. failed opening '/srv/htdocs/wp-content/themes/QuickFixWebiste(Wordpress)/../../../wp-admin/includes/class-walker-nav-menu-edit.php' for inclusion (include_path='.:/usr/local/php7.2/lib/php') in /srv/htdocs/wp-content/themes/QuickFixWebiste(Wordpress)/library/core/admin/edit-menu-walker.php Can anyone tell me how to resolve this? The source code in the edit-menu-walker.php on lines 1-4 is: <?php if (!class_exists('Walker_Nav_Menu_Edit')){ include_once(get_template_directory() . '/../../../wp-admin/includes/class-walker-nav-menu-edit.php'); } Quote Link to comment Share on other sites More sharing options...
requinix Posted July 22, 2019 Share Posted July 22, 2019 Whatever you did or installed, you didn't get it right. You're missing at least that one file. Probably others. Quote Link to comment Share on other sites More sharing options...
maxxd Posted July 22, 2019 Share Posted July 22, 2019 Use get_home_path(). require_once(get_home_path().'wp-admin/includes/class-walker-nav-menu-edit.php'); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.