Skip to content
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

[Bug] Error 500 Saat menampilkan Filter pada DPT #1995

redjoel opened this issue Apr 2, 2019 · 3 comments


Copy link

@redjoel redjoel commented Apr 2, 2019

Bagaimana alurnya sampai muncul masalah?

Error 500

Seperti apa yang diharapkan?

Seharusnya menampilkan DPT dari dusun terfilter

Apa yang terjadi?

Unknown column 'a2.dusun' in 'where clause'

SELECT COUNT( AS id FROM tweb_penduduk u LEFT JOIN tweb_keluarga d ON u.id_kk = LEFT JOIN tweb_wil_clusterdesa a ON d.id_cluster = LEFT JOIN tweb_penduduk_pendidikan_kk n ON u.pendidikan_kk_id = LEFT JOIN tweb_penduduk_pendidikan sd ON u.pendidikan_sedang_id = LEFT JOIN tweb_penduduk_pekerjaan p ON u.pekerjaan_id = LEFT JOIN tweb_penduduk_kawin k ON u.status_kawin = LEFT JOIN tweb_penduduk_sex x ON = LEFT JOIN tweb_penduduk_agama g ON u.agama_id = LEFT JOIN tweb_penduduk_warganegara v ON u.warganegara_id = LEFT JOIN tweb_golongan_darah m ON u.golongan_darah_id = LEFT JOIN tweb_cacat f ON u.cacat_id = LEFT JOIN tweb_penduduk_hubungan hub ON u.kk_level = LEFT JOIN tweb_sakit_menahun j ON u.sakit_menahun_id = LEFT JOIN log_penduduk log ON = log.id_pend WHERE u.pekerjaan_id NOT IN ('6', '7') AND u.status_dasar = 1 AND u.status = 1 AND u.warganegara_id = 1 AND (((SELECT DATE_FORMAT(FROM_DAYS(TO_DAYS(STR_TO_DATE('02-04-2019','%d-%m-%Y'))-TO_DAYS(tanggallahir)), '%Y')+0 FROM tweb_penduduk WHERE id = >= 17) OR u.status_kawin IN (2,3,4)) AND ((u.id_kk <> '0' AND a.dusun = 'LOCO') OR (u.id_kk = '0' AND a2.dusun = 'LOCO'))

Filename: models/Dpt_model.php

Line Number: 108

Informasi tambahan

Tanya Jawab
Versi OpenSID 19.04
Versi PHP
System operasi
@eddieridwan eddieridwan changed the title Error 500 Saat menampilkan Filter pada DPT [Bug] Error 500 Saat menampilkan Filter pada DPT Apr 2, 2019
@eddieridwan eddieridwan added the bug label Apr 2, 2019
@eddieridwan eddieridwan added this to SUDAH DI MASTER in Rilis yang sedang dikerjakan Apr 2, 2019

This comment has been minimized.

Copy link

@eddieridwan eddieridwan commented Apr 3, 2019

Sudah dicommit ke master.

@eddieridwan eddieridwan closed this Apr 3, 2019

This comment has been minimized.

Copy link
Contributor Author

@redjoel redjoel commented Apr 3, 2019

Terima kasih pak...


This comment has been minimized.

Copy link

@lynggo lynggo commented May 19, 2019

Pertama Cek dulu Sql
$ mysql -u root -p -e "SHOW VARIABLES LIKE 'sql_mode';"
Akan munch :

Kedua Disable Strict Mode via SQL
$ mysql -u root -p -e "SET GLOBAL sql_mode = 'NO_ENGINE_SUBSTITUTION';"

Terakhir verifikasi :
mysql -u root -p -e "SELECT @@GLOBAL.sql_mode;"


saya kemaren gitu juga saat abis upgrade ke 19.05, pas mau upload berita dan tambah galeri error 500 pada file Web_gallery_model.php


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
3 participants
You can’t perform that action at this time.