Jump to content
screadore

Need help ASAP plz working on this large companies website and I can't figure this out.

Recommended Posts

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');
}

 

Share this post


Link to post
Share on other sites

Whatever you did or installed, you didn't get it right. You're missing at least that one file. Probably others.

Share this post


Link to post
Share on other sites

Use get_home_path().

require_once(get_home_path().'wp-admin/includes/class-walker-nav-menu-edit.php');

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.