-
Notifications
You must be signed in to change notification settings - Fork 245
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Field Type "file" Not Saved in Nexted Complex Arrangement, Returns Empty JSON Response #1196
Comments
Upgraded to 3.6.3 to see if this issue is still there, and it is. I can imagine the team is busy. However, a response would be great, as I opened this issue back in November. We will rollback to WP 6.0.6 in the meantime. Many thanks! |
@zadro Any update on this issue ? |
@midkoukou Client is still on 6.0.6 -- still waiting for any insights from others |
@zadro removing ->set_attribute( 'type', 'url' ) fixed the bug for me . |
@midkoukou Upgrading to WP 6.4.3 and commenting out that line had no effect, unfortunately. The issue remains, and I have once again reverted back to 6.0.6 -- there are no error logs as to why this isn't working. |
It seems the owner of this library is not responding to requests. I opened another issue here: #1221 and haven't heard anything there either. At least make an announcement this plugin/library is not longer supported, so that we can find other solutions. Very disappointing, as this was my go-to "fields" library for many years and a solid project. |
This is an open source project and anyone can try and fix it, not only the "owners" (actually called contributors). They are doing this in their free time, so please show some patience or pay someone to fix your problem if you can't do it yourself. This is how opensource works. Wordpress has had some issues opened for years, but no one calls it an abandoned project. |
@gresakg repos do have ownership, which you can read more about here: https://docs.github.com/en/repositories/creating-and-managing-repositories/about-repositories And, with no response (or commits) in over 6 months, a response on knowing whether the project will continue to be maintained/supported seems a reasonable ask. |
I've tested with the container definition you provided and the WP and CF versions you mentioned and I could not reproduce the flaky upload problem (also with classic editor plugin). Regarding the REST API - if you're trying to get fields from the container definition you provided, you need to query the posts route |
@atanas-vasilev-dev, thank you so much for replying! I'm not utilizing REST APIs—that is just one of the many endpoints shown in dev tools when clicking update on a POST or PAGE. Per my other issue posted, this issue is ongoing for WP beyond 6.1.5. Also, there are no error logs, so it's very difficult to troubleshoot. We have updated to PHP 8.2, and the issue persists. Maybe I can stage a site and provide login details? Any additional help troubleshooting would be appreciated. Thanks again. |
Version
Expected Behavior
Attachment is not assigned to file upload, only on certain pages/cases.
Actual Behavior
When calling: https://www.example.com/wp-json/carbon-fields/v1/attachment?type=id&value=1785 upon hitting "Update" on the page, the files are not being saved properly. The result after Update is no effect (the current files, names, tabs are unchanged).
The JSON response is empty from that 1785 attachment mentioned above:
{"id":0,"thumb_url":"","file_type":"","file_name":""}
There are roughly 20 total files as horizontal tabs in a nested "complex" setup. A few other "files" also return an empty JSON response, while most return correctly.
It appears nothing is being saved from this particular page upon page Update. I was able to add a new top-level tab as a test, but it cannot be deleted.
Container definition
Steps to Reproduce the Problem
Comments
No server error logs of any kind to help troubleshoot. The only plugin on this site is Classic Editor.
This only started happening recently. Any steps or ideas to start troubleshooting would be highly appreciated.
Thank you.
EDIT:
With further testing by creating a brand new page with no files initially, this issue is actually global to the site.
I can create top-level horizontal tabs, but attempting to delete the tabs will not work. Same with the nested vertical tabs. Attaching a file is "flaky" where sometimes it works. I cannot delete the vertical file tabs once they're created.
I tried rolling back to WP 6.2, but still experienced the same issues.
Image attached for visual reference.
The complete POST request is below:
EDIT: Downgrading WP to branch 6.0.6 allows everything to work again, as expected.
Please let me know what the issue could be on the latest WP branches, so that we can bring our client current again.
The text was updated successfully, but these errors were encountered: