• Hi, thanks a lot for your very useful plugin.
    I’m having some trouble with my homepage: editing works fine on every other pages, but on my homepage (wich is just a regular page set as homepage in wordpress) when I click on publish nothing happens.
    Well to be specific I do get an error in the console :
    fee.js?ver=2.0.0-beta1:21 PUT https://localhost/duodessonges/wp-json/wp/v2/pages/2 400 (Bad Request)

    any clue would be appriciated, thanks!

    https://www.ads-software.com/plugins/wp-front-end-editor/

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author Ella

    (@ellatrix)

    Thanks for the report! Could you paste the actual request here too? If you’re using Chrome you can find that in the Network tab close to the Console tab. In other browsers it should be similar. Thanks!

    Thread Starter leooo75013

    (@leooo75013)

    Of course! I’m not exactly sure what I’m looking for however.

    Capture 1

    Capture2
    I hope those help.

    Plugin Author Ella

    (@ellatrix)

    If you click on “2” I think you should get more details. I’m looking for something like this: https://cloudup.com/cvnV4VWLfuP

    Thread Starter leooo75013

    (@leooo75013)

    Alright, so I get
    {"code":"rest_invalid_param","message":"Param\u00e8tre(s) non valide(s) : template","data":{"status":400,"params":{"template":"template is not one of page_fullwidth.php"}}}

    So it seems to have something to do with using my page.php template instead of page_fullwidth.php, I tried and Front-end editor isn’t working with any pages using page.php template.

    Here is the code for page_fullwidth.php
    and here is page.php

    Plugin Author Ella

    (@ellatrix)

    Are these page templates available in the back end editor? I’ll do some testing with different templates.

    Plugin Author Ella

    (@ellatrix)

    What I’ll do for now is not sending these values at all, they are not needed for the front end editor anyway. At least not for now.

    Thread Starter leooo75013

    (@leooo75013)

    Yes everthing works fine in back-end editor.
    These templates are from https://www.ads-software.com/themes/amadeus/ I just removed the sidebar from page.php
    Can I help in any way?

    Plugin Author Ella

    (@ellatrix)

    Not really, thanks. I’ll release a fix asap, so if you could test that would be great.

    Plugin Author Ella

    (@ellatrix)

    I think this issue should be resolved with the update. Please let me know if not. ??

    Thread Starter leooo75013

    (@leooo75013)

    Almost there!
    Last update didn’t resolve the issue per say, still getting an error:
    PATCH https://localhost/duodessonges/wp-json/wp/v2/pages/2 400 (Bad Request)

    In the network pannel I’m getting
    {"code":"invalid_page_template","message":"Le mod\u00e8le de page n\u2019est pas valide.","data":{"status":400}}

    But the good news is that the publish button is almost working as it DOES SAVE the page, but nothing indicates that it’s working as it doesn’t quit edit mode.

    Let me know if I can help ??

    Plugin Author Ella

    (@ellatrix)

    What version of the REST API do you have installed? I don’t see that code/status anywhere…

    Thread Starter leooo75013

    (@leooo75013)

    I’m using the last version of this plugin https://www.ads-software.com/plugins/rest-api/

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Not working on homepage’ is closed to new replies.