• Hello!

    I am using Heroic ToC plugin which works very well. However in combination with RevivePress, some of the articles cannot be edited. There is a bug and the admin page cannot be loaded. As soon as I deactivate Heroic ToC everything works again.

    There is no PHP error, just a console error:

    SyntaxError: Expected property name or '}' in JSON at position 2 (line 1 column 3)
        at JSON.parse (<anonymous>)
        at t.value (blocks.build.js?ver=1653118560:1:3965)
        at element.min.js?ver=cb762d190aebbec25b27:9:6400
        at B (element.min.js?ver=cb762d190aebbec25b27:9:6423)
        at Z (element.min.js?ver=cb762d190aebbec25b27:9:7430)
        at Y (element.min.js?ver=cb762d190aebbec25b27:9:6890)
        at B (element.min.js?ver=cb762d190aebbec25b27:9:6189)
        at Fr (blocks.min.js?ver=6612d078dfaf28b875b8:19:9484)
        at blocks.min.js?ver=6612d078dfaf28b875b8:19:38594
        at to (blocks.min.js?ver=6612d078dfaf28b875b8:19:38710)
    ar @ react-dom.min.js?ver=18.2.0:10
    t.callback @ react-dom.min.js?ver=18.2.0:10
    tt @ react-dom.min.js?ver=18.2.0:10
    Jr @ react-dom.min.js?ver=18.2.0:10
    Zr @ react-dom.min.js?ver=18.2.0:10
    Gr @ react-dom.min.js?ver=18.2.0:10
    (anonymous) @ react-dom.min.js?ver=18.2.0:10
    xl @ react-dom.min.js?ver=18.2.0:10
    fl @ react-dom.min.js?ver=18.2.0:10
    Nn @ react-dom.min.js?ver=18.2.0:10
    (anonymous) @ react-dom.min.js?ver=18.2.0:10
    setTimeout (async)
    s @ data.min.js?ver=e6595ba1a7cd34429f66:2
    i @ data.min.js?ver=e6595ba1a7cd34429f66:2
    (anonymous) @ edit-post.min.js?ver=82b743695f8ef1673753:7
    (anonymous) @ data.min.js?ver=e6595ba1a7cd34429f66:9
    __unstableMarkListeningStores @ data.min.js?ver=e6595ba1a7cd34429f66:2
    (anonymous) @ data.min.js?ver=e6595ba1a7cd34429f66:2
    p @ data.min.js?ver=e6595ba1a7cd34429f66:9
    (anonymous) @ data.min.js?ver=e6595ba1a7cd34429f66:9
    Qe @ data.min.js?ver=e6595ba1a7cd34429f66:9
    Ye @ data.min.js?ver=e6595ba1a7cd34429f66:9
    _r @ edit-post.min.js?ver=82b743695f8ef1673753:7
    wt @ react-dom.min.js?ver=18.2.0:10
    js @ react-dom.min.js?ver=18.2.0:10
    wl @ react-dom.min.js?ver=18.2.0:10
    bl @ react-dom.min.js?ver=18.2.0:10
    yl @ react-dom.min.js?ver=18.2.0:10
    ol @ react-dom.min.js?ver=18.2.0:10
    v @ react.min.js?ver=18.2.0:10
    ce @ react.min.js?ver=18.2.0:10
    react-dom.min.js?ver=18.2.0:10 Uncaught SyntaxError: Expected property name or '}' in JSON at position 2 (line 1 column 3)
        at JSON.parse (<anonymous>)
        at t.value (blocks.build.js?ver=1653118560:1:3965)
        at element.min.js?ver=cb762d190aebbec25b27:9:6400
        at B (element.min.js?ver=cb762d190aebbec25b27:9:6423)
        at Z (element.min.js?ver=cb762d190aebbec25b27:9:7430)
        at Y (element.min.js?ver=cb762d190aebbec25b27:9:6890)
        at B (element.min.js?ver=cb762d190aebbec25b27:9:6189)
        at Fr (blocks.min.js?ver=6612d078dfaf28b875b8:19:9484)
        at blocks.min.js?ver=6612d078dfaf28b875b8:19:38594
        at to (blocks.min.js?ver=6612d078dfaf28b875b8:19:38710)

    Do you know what might be causing the issue? There is no source file in the plugin or a git repository I could find to debug the issue myself. Thank you in advance for any assistance!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Chris Hadley

    (@chrishadley)

    Hi @katsar0v

    I’ve tried to replicate this and I’ can’t ‘m not getting the same error. I’m using the free version of RevivePress found in the repository.

    Perhaps there’s a combination of blocks you’re using in the content that is causing this?

    Could you provide more details so I can investigate further?

    Thanks,

    Chris

    Thread Starter Kristiyan Katsarov

    (@katsar0v)

    Hello @chrishadley

    I am using the premium version. On the front-end the article is shown, but when trying to edit the article, I see a white screen with JS error, it looks like the editor cannot be loaded:

    Usually I see this structure:

    Here are the errors I see, I hope this helps:

    When I disable the plugin, I can see the content in backend:

    I hope this helps to debug further.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Admin page not loading’ is closed to new replies.