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
Filter, datefield and rest #6270
Comments
Looking into this issue this week and will review to see if I can reproduce the exact case where this error gets shown. Please also consider testing on Pods 2.8.4 that just went out today and may resolve related issues. |
Can you go to Pods Admin > Edit Pods > Edit the "Downloads" pod > and then check the REST API tab. Ensure that the REST API is enabled for that post type. Something may have briefly caused it to become disabled perhaps? |
Hello Scott, I was off for a few weeks. Will come back to you soon. |
The SQL-error problem is still there, also after updating to the latest version: Database Error; SQL: SELECT DISTINCTt.* FROMwp_postsAStLEFT JOINwp_postmetaASdateONdate.meta_key= 'post_date' ANDdate.post_id=t.IDLEFT JOINwp_icl_translationsASwpml_translationsONwpml_translations.element_id=t.IDANDwpml_translations.element_type= 'post_download' ANDwpml_translations.language_code= 'nl' LEFT JOINwp_icl_languagesASwpml_languagesONwpml_languages.code=wpml_translations.language_codeANDwpml_languages.active= 1 WHERE ( (t.post_statusIN ( 'publish' ) ) AND (t.post_type= 'download' ) AND (wpml_languages.codeIS NOT NULL ) ) AND (t.product_filter= 'mwall_basic' ORt.product_filterLIKE '%"mwall\_basic"%' ) ORDER BYdate.meta_valueDESC,t.menu_order,t.post_title,t.post_date; Response: Unknown column 't.product_filter' in 'where clause' My code to show filters: filters( array( 'fields' => array( 'product_filter', 'soort_informatie' ), 'label' => 'Filteren' ) ); ?>Showing results: while ($get_downloads->fetch()) { |
This appears fixed in Pods 2.8.9 now after work on 7884253 |
Hi Scott, thank you. We are still encountering SQL-errors in combination with WPML. |
Hi @adcommunicatie |
Yes, that's correct. I did not test if it works when WPML is disabled. I don't have an available test environment. |
Still not working |
Description
Please see my post on WordPress forum: https://wordpress.org/support/topic/filter-datefield-and-rest/#post-15019021
We are encountering the following errors when updating from 2.7.X to the latest 2.8.3:
/wp-json/wp/v2/podsname?per_page=100
Standard fields like id, title are working. But the REST API is not giving us custom fields.
Version 2.7.X (gives all fields):
Version 2.8.X (does not show any custom fields):
Testing instructions
For REST API please try the URL.
Pods version
2.8.X
WordPress Environment
The text was updated successfully, but these errors were encountered: