Viewing 12 replies - 1 through 12 (of 12 total)
  • Thread Starter Evan Herman

    (@eherman24)

    Tested with version 1.2 of the API and things work. This no longer works with the latest release, but only with the legacy versions of the API.

    Hi, I’m getting this error for v1.2

    {
    "ID": 80,
    "name": "Top Menu",
    "slug": "top-menu",
    "description": "",
    "count": 15,
    "items": [
    null,
    null,
    null,
    null,
    null,
    null,
    null,
    null,
    null,
    null,
    null,
    null,
    null,
    null,
    null
    ],
    "meta": {
    "links": {
    "collection": "https://localhost/wordpress/wp-json/menus/",
    "self": "https://localhost/wordpress/wp-json/menus/80"
    }
    }
    }

    Other API routes are working ok.

    Thread Starter Evan Herman

    (@eherman24)

    Hi Jack,

    You should open up a separate thread as this is directly related to v2 of the WP REST API.

    Note: Moving forward all versions prior to 2 are considered legacy versions.

    Thanks,
    Evan

    Plugin Author Fulvio Notarstefano

    (@nekojira)

    hey sorry I am a bit late but I’m a bit short of time

    @jack not sure if your problem was addressed by a recent commit on https://github.com/nekojira/wp-api-menus

    as for 2.x support, I need to go through WP API project documentation, I haven’t used the API recently and I didn’t catch up with the latest changes.

    @evan I remember you were working at a support for 2 – how about we put it in a separate branch on GitHub? like branch APIv2 so I can start looking at your changes

    then ideally would like to support both API versions

    For the first time it works with first version of API, when I have added second version this plugin doesn’t work. I haven’t remove the fist version, and now deactivate the second one, But it doesn’t help, with both versions it doesn’t work. Please any ideas?
    This is my URL

    Right URL is here, I am working on this website https://buildatourapp.com/wp-json/menus
    It returns me [{“code”:”rest_no_route”,”message”:”No route was found matching the URL and request method”,”data”:{“status”:404}}]

    Plugin Author Fulvio Notarstefano

    (@nekojira)

    https://buildatourapp.com/wp-json/wp-api-menus/v2

    need to update the docs, things are changing in v2, as far as I know it’s not officially launched yet though

    Gohar.. This will work for you to get menu items
    https://buildatourapp.com/wp-json/wp-api-menus/v2/menus

    Thanks Melanie

    how can I add or create new menu with this plugin? Now I am only getting the menus

    when I activate the plugin, I got this error:
    Plugin could not be activated because it triggered a fatal error.
    Parse error: syntax error, unexpected T_FUNCTION, expecting ‘)’ in /home4/naylin/public_html/manutdmyanmar/wp-content/plugins/wp-api-menus/includes/wp-api-menus-v2.php on line 185

    How can I fix it?

    I got the same error as Evan Herman

    WordPress — 4.5.3
    WP REST API — Version 2.0-beta13.1
    WP API Menus — 1.3.0

    Tried
    wp-json/wp-api-menus/v2/
    wp-json/wp-api-menus/v2/menus/

    This plugin compatible up to: 4.4.4 (from description)
    Is this because of my wp version?

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Doesn't seem to be working’ is closed to new replies.