Summary of the Gibbon Export Issue
I am encountering an error when trying to export the ‘Timetable - Complete’ report using the Data Admin module on Gibbon version v29.0.00. The system is running on PHP 8.1.10 and MySQL 8.0.31.
The specific error message is:
Warning: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'gibboncourse.gibbonCourse.nameShort' in 'field list'
I have confirmed that the gibbonCourse table exists (in my data base the name is gibboncourse if that makes a difference) and contains the nameShort column in my database. The issue appears to be a bug in the code that constructs the SQL query for this specific export, where the table name is being included twice in the column reference, resulting in an invalid gibboncourse.gibbonCourse.nameShort syntax that the database cannot recognize.
This error is unique to the ‘Timetable - Complete’ export, as all other exports are working correctly, suggesting the bug is localized to the definition of this one report.
I have already verified that the error is not in the Connection.php or export_run.php files, as these are generic scripts that only execute the query, not define it. The problem is in the specific file that defines the fields for the Timetable - Complete export, which is likely where the incorrect table reference is being generated.
I have one more installation of gibbon on a separate machine and it is version 28 of gibbon and I am experiencing the same error on that machine too, so this probably isnt a localized issue.