• Resolved AstronomerDaz

    (@astronomerdaz)


    Hi all

    I have noticed that the option for selecting a Parent Page is not showing my editor – either on the live host or on my local computer.

    So, I did a fresh install of Wp5.2.4 using TwentyNineteen and create a simple page, and the Parent option appears! Clearly, something is amiss on my production site!

    More reading… I came across a post on here that suggested checking the JSON response using https://dev.bedsastro.org.uk/wp-json/wp/v2/pages – which I did, and got a hold load of data back – which I assume is good! The start of the data looks iike:
    [{"id":5027,"date":"2019-10-29T11:19:22","date_gmt":"2019-10-29T11:19:22","guid":{"rendered":"http:\/\/dev.bedsastro.org.uk\/?page_id=5027"}

    So, next I go back into my site, log in, go to a page and the Inspect and I can see a number of errors in the Console.

    One error is this:
    Failed to load resource: the server responded with a status of 500 (Internal Server Error) which has a link of https://dev.bedsastro.org.uk/wp-json/wp/v2/pages?per_page=100&exclude=4112&parent_exclude=4112&orderby=menu_order&order=asc&context=edit&_locale=user

    Another has the error:
    Uncaught (in promise) Response with a link of data.min.js:1
    Inside this error, there is:

    body: (...)
    bodyUsed: false
    headers: Headers {}
    ok: false
    redirected: false
    status: 500
    statusText: "Internal Server Error"
    type: "basic"
    url: "https://dev.bedsastro.org.uk/wp-json/wp/v2/pages?per_page=100&exclude=4112&parent_exclude=4112&orderby=menu_order&order=asc&context=edit&_locale=user"
    __proto__: Response
    arrayBuffer: ? arrayBuffer()
    blob: ? blob()
    body: (...)
    bodyUsed: (...)
    clone: ? clone()
    formData: ? formData()
    headers: (...)
    json: ? json()
    ok: (...)
    redirected: (...)
    status: (...)
    statusText: (...)
    text: ? text()
    type: (...)
    url: (...)
    constructor: ? Response()
    Symbol(Symbol.toStringTag): "Response"
    get body: ? body()
    get bodyUsed: ? bodyUsed()
    get headers: ? headers()
    get ok: ? ok()
    get redirected: ? redirected()
    get status: ? status()
    get statusText: ? statusText()
    get type: ? type()
    get url: ? url()
    __proto__: Object

    So, the (hopefully obvious) question is how to diagnose what is causing the issue?
    I guess an initial step is to disable all plug-ins and see what happens…
    I could also enable one at a time, but I guess there is the possibility that a combination of plugins are causing the issue…

    Is there a way to track down the root cause?

    Thanks
    Darren

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter AstronomerDaz

    (@astronomerdaz)

    Sorry – should say my site is on WP5.2.4, all plugins are up to date.
    My local installation is WAMP 3.1.9, PHP 7.0.33, Apache 2.4.39

    Thread Starter AstronomerDaz

    (@astronomerdaz)

    Well, I found the issue.
    The PHP Code plugin by Otto is the culprit – but handily he has written a guide on how not to use his plugin!!

    Thread Starter AstronomerDaz

    (@astronomerdaz)

    Closing

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Another Parent Page issue’ is closed to new replies.