Tagged: avia, enfold, Wordpress API
-
AuthorPosts
-
May 25, 2024 at 11:16 pm #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 7 months ago by terra3110.
May 26, 2024 at 4:56 pm #1446459Hey 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,
MikeMay 26, 2024 at 5:28 pm #1446470Hi,
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
May 26, 2024 at 6:11 pm #1446491May 26, 2024 at 6:34 pm #1446503Hi,
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 PUBLISHEDI 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 7 months ago by terra3110.
May 26, 2024 at 6:58 pm #1446515Hi,
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,
MikeJune 23, 2024 at 3:43 am #1456243Unfortunately, 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?
June 23, 2024 at 12:50 pm #1456956 -
AuthorPosts
- You must be logged in to reply to this topic.