Assalam Walaikum,
Today i checked logs and i found a error so i tried to generate that error myself and when i clicked on chapters to reorder it generates the following error in in 3.0
Unknown column 'chapter_number_tr' in 'order clause' query: SELECT c.number AS chapter_number, c.title AS chapter_title, c_tr.title AS chapter_title_tr, chapter_summary.number_of_verses FROM ( SELECT v.chapter_number, COUNT(*) AS number_of_verses FROM quran_verses_ar AS v GROUP BY v.chapter_number ) AS chapter_summary LEFT JOIN quran_chapters_ar AS c ON chapter_summary.chapter_number = c.number LEFT JOIN quran_chapters_en AS c_tr ON c.number = c_tr.number ORDER BY chapter_number_tr ASC LIMIT 0, 10 in /home/***/modules/quran/quran.module on line 298.
so i just upgraded to 4.0 and when i clicked on quran following error appears without showing a single verse
* user warning: Table '####.quran_verses_ar' doesn't exist query: SELECT COUNT(*) FROM ( SELECT v.chapter_number, COUNT(*) AS number_of_verses FROM quran_verses_ar AS v GROUP BY v.chapter_number ) AS chapter_summary LEFT JOIN quran_chapters_ar AS c ON chapter_summary.chapter_number = c.number LEFT JOIN quran_chapters_en AS c_tr ON c.number = c_tr.number in /home****modules/quran/quran.module on line 298.
* user warning: Table '####.quran_verses_ar' doesn't exist query: SELECT c_tr.meaning AS chapter_meaning, c.number AS chapter_number, c.title AS chapter_title, c_tr.title AS chapter_title_tr, chapter_summary.number_of_verses FROM ( SELECT v.chapter_number, COUNT(*) AS number_of_verses FROM quran_verses_ar AS v GROUP BY v.chapter_number ) AS chapter_summary LEFT JOIN quran_chapters_ar AS c ON chapter_summary.chapter_number = c.number LEFT JOIN quran_chapters_en AS c_tr ON c.number = c_tr.number ORDER BY chapter_number ASC LIMIT 0, 10 in /home/***/modules/quran/quran.module on line 298.
| Comment | File | Size | Author |
|---|---|---|---|
| #10 | The Holy Quran - Quran Project_1234697721922.png | 113.42 KB | Arshad Vayani |
| #8 | sc1.png | 57.03 KB | Arshad Vayani |
| #8 | sc2.png | 35.1 KB | Arshad Vayani |
| #8 | sc3.png | 35.25 KB | Arshad Vayani |
| #8 | sc4.png | 35.59 KB | Arshad Vayani |
Comments
Comment #1
Arshad Vayani commentedokay i just reinstalled quran module 4.0 but still i am getting the same problem when i click on chapter it gives me the same error as i mentioned above!
Comment #2
ichsan commented'Alaikumsalam. Did you install the database files? They should be installed separately from database directory.
Comment #3
Arshad Vayani commentedyes i did i am still getting error when i click on chapter column
Comment #4
ichsan commentedPlease re-import the sql files as suggested in the revised front page of Quran project. I hope it works.
Comment #5
amirudin commentedwa'alikumussalam
do you add some prefix when you first install your drupal database?
when i install my dupal on mysql database i add "drupal" prefix.
so before import quran-ar.mysql, i edit some line.
the default table that will be created is 'quran_chapters_ar'.
because my drupal database use prefix 'drupal' so instead of using table 'quran_chapters_ar' in the quran-ar.mysql i change it to 'drupalquran_chapters_ar'
you should change this to 'quran_verses_ar' too
i hope this helpfull
Comment #6
Arshad Vayani commentedNo i haven't use any prefix. I really don't know why i am getting these errors.
Comment #7
ichsan commentedAre you sure that the Quran tables are already imported? From the log, it seems that the table is missing. Please check manually or use phpmyadmin to find out if the tables are already there. Or may be you have imported the Quran tables into wrong database?
Comment #8
Arshad Vayani commentedwell yes i have correctly imported tables. Checkout screenshots i uploaded.
Comment #9
ichsan commentedFrom http://drupal.org/files/issues/sc3_0.png, it is clear that you don't use latest database tables. Please update the tables from the download page as I have specified in the front page
Comment #10
Arshad Vayani commentedwell i have upgraded to latest version still i am getting this error.
Most important thing is that your demo site is also showing same error when i click on chapters
http://sancho21.co.cc/drupal/quran/index?sort=asc&order=Chapter
Comment #11
ichsan commentedOk. Thanks you for the report. It is confirmed.
Comment #12
webprogrammer1 commentedI was getting error (in v 1.2.4.1, drupal 5.x) when sorting by Chapter i.e. Chapter Name, so I changed chapter_number_tr to chapter_title_tr in the module (line # 300). It is working fine now.
http://www.baitulmukarram.net/quran/index
Comment #13
hassan2 commented