• Resolved rombez

    (@rombez)


    When I click on “Create some” link of Custom Menu widget, I get the following error message:
    “Use of undefined constant ABSPATH – assumed ‘ABSPATH’ in E:\server\sites\default\pub\wordpress\wp-admin\includes\admin.php on line 10”.

    I use WordPress 3.0, has been downloaded few minutes ago.

    The link refers to …wordpress/wp-admin/nav-menus.php at line 13 of which admin.php is included. There is no any includes from the line 1 to line 13.
    At line 10 of admin.php ‘ABSPATH’ constant is used, but again from line 1 to line 10 no includes can be found. It looks like wp-config.php is not included.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter rombez

    (@rombez)

    After including wp-config.php into nav-menues.php I get this widget working, but a number of warnings appear instead:
    Deprecated: Function set_magic_quotes_runtime() is deprecated in E:\server\sites\civinews\pub\wp-settings.php on line 27, etc.
    Has anybody else faced this issue?

    Thread Starter rombez

    (@rombez)

    The problem has been solved by adding to the beginning of nav-menus.php the following code:
    require_once('../wp-load.php');

    It is rather dirty approach, but it works.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Custom Menu widget does not work’ is closed to new replies.