This forum is no longer open and is for reading/searching only.
Please use our new MachForm Community Forum instead.
MachForm Community Forums » MachForm 3
SQL error when setting entries filter
Started 11 years ago by maperformance | 7 posts |
-
I tried filtering one of our form's entries to show only those with a PAID status and it cam back witht his error:
SQL: [251] select count(*) total_row from (select
id
,id
asrow_num
,date_created
,element_1_1
,element_1_2
,element_2
from ap_form_1 A WHERE (payment_status = 'paid') ANDstatus
=1 ) B Params: 0 Query Failed: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'payment_status' in 'where clause'Now I can't clear the filter to get rid of this. How can I fix it?
Posted 11 years ago # -
Where did you apply the filter? It looks to me like you put the incorrect column name in the filter itself. So check your database and make sure you are using the correct column (e.g. payment_status). The column name might not be correct.
Regards,
Saghalie
http://www.kcmhosting.comPosted 11 years ago # -
Thanks for the feedback. I understand WHY the error is showing, but like I stated I cannot edit or clear the filter. HOW do I clear or change the filter when those links on the page do nothing? Seems like a bug to me.
Posted 11 years ago # -
maperformance -- this is a bug indeed. Please contact us directly and we'll send you a fix for this.
http://www.appnitro.com/contactMachForm Founder
Posted 11 years ago # -
I do have the same problem :
SQL: [340] select count(*) total_row from (selectid
,id
asrow_num
,element_320
,element_5
from ap_form_17179 A WHERE (date(date_created) < '2013-11-12' AND (payment_status = '' OR payment_status IS NULL) AND element_1_1 = '1' AND element_1_1 = '1') ANDstatus
=1 ) B Params: 0 Query Failed: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'payment_status' in 'where clause'in one form and :
SQL: [900] select count(*) total_row from (select
id
,id
asrow_num
,date_created
,element_322
,element_5
,(selectpayment_amount
from ap_form_payments where form_id='16432' and record_id=A.id order by afp_id desc limit 1) payment_amount,ifnull((selectpayment_status
from ap_form_payments where form_id='16 Params: 0 Query Failed: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'element_322' in 'field list'in another form ... they are two different errors ... but i cannot do anything to bypass the page.
Posted 11 years ago # -
I added some fields to the form with first problems, then duplicated them and deleted some ... and that fixed the first problem ..
but the second problem ..did the same thing ... still gives me the error code.Posted 11 years ago # -
bebinim -- Is it possible for you to contact us directly and let us know temporary FTP login to your machform folder?
We'll need to check this directly.It seems there is some problem with the record of that form.
MachForm Founder
Posted 11 years ago #
Reply
You must log in to post.