Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1446150

    Hello,

    I have a weird Problem, what seems to me related to Enfold/AVIA.

    I use make.com (similar to Zapier) to retrieve Content via WordPress API from my Website. In this case, I retrieve the Content of a Page. Within make.com I modify this content and send it back to WordPress to update the page.

    The problem is that this change is not possible to see in either the front end or back end. The WordPress API Call did not generate an Error, and no Error showed up in the Logfile.

    What’s particularly puzzling is that when I access the Page’s Revision History, I can clearly see the submitted change. The last change was made by the ‘developer’ (API), and I can see the change I submitted as a diff to the previous version. However, this change is not visible in the Advanced Editor or the Frontend.

    Initially, I suspected caching to be the culprit, but I’ve thoroughly ruled that out. I’ve gone as far as completely uninstalling any WordPress or Code Caching, deactivating any Cache Server, and even trying with different Browsers after clearing the Cache.

    I was in touch with make.com and they say, that from there perspective the problem lies within Enfold/AVIA.

    Also, I run before the following Test:

    I retrieve a Page via API and submit via API a Change Request of the Page back to my Website, let us say this is Change A.
    Then I do the same again, this time with an additional Change B.

    Now I login into the WordPress Backend, go to the page, go to Revision History and see actual version (including A+B) and the previous version (that only contains A) and of cource all older versions. Now I click on the previous change (that only contains A) and say “RESTORE”. NOW I see the Version, including my Change A in the Backend and Frontend. I tried also to make changes to the date (to distinct the Page Update from a previous update). The Date change is visible in the Backend, but not the Content Change.

    Also, I double-checked with one of the Standard WordPress Themes (Twenty-Four), and the problem did not occur with it. This confirms the theory, that it has to do something with Enfold/AVIA.

    It seems like when submitting a Page Request via API requires something that the API Call is not doing – what causes the Change to not be visible.

    Any Information, that this can be and what I have to do?

    • This topic was modified 6 months ago by terra3110.
    #1446459

    Hey terra3110,
    Thanks for your question the Dev Team writes:
    Updating only page content for an ALB page does not work because the ALB content is stored in post meta and on saving an ALB post page content is updated from that post meta.

    Best regards,
    Mike

    #1446470

    Hi,

    Many thanks. Did this mean, I cannot update it via API or did I have to put the content additionaly in another field?

    When I retrieve the Post, I only see one Meta-Field (footnote:).

    Frank

    #1446491

    Hi,
    As I understand you can not update via API.

    Best regards,
    Mike

    #1446503

    Hi,

    Many thanks. With this Information, I tried a more complex Plan B. So far that seems working:

    I switched the View in the Backend of the Page to DEFAULT EDITOR, which I want to be managed via API. That seems to have to stay permanently. I can still Edit the Page by converting it back to ALB, Changing it, and switch it back to Default Editor.

    Additionally, the Process via API has to be a little bit different:

    – I get the Page via API
    – I update the Page via API (like before), but set it to Status DRAFT
    – I update the Page again, but only to change the Status from DRAFT to PUBLISHED

    I tried this now several times, and it seems is working. When someone has a better solution, please let me know. :-)

    Frank

    • This reply was modified 6 months ago by terra3110.
    #1446515

    Hi,
    Glad to hear that you have this sorted out, we will leave this open for now in case someone has another idea. Thank you for using Enfold.

    Best regards,
    Mike

    #1456243

    Unfortunately, it is not working as stable as I hoped. I still have to log in, go to Revisions, go to the previous one, save, go back to the one I created via API and save – then the content is shown.

    This means somehow, when the Revision is used, any Content will be copied back into the Post meta – what means, their is a way or method to do that within Enfold/AVIA. It is not possible in anyway to make this accessible via the WordPress API?

    #1456956

    Hi,
    Unfortunately it is not possible.

    Best regards,
    Mike

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.