Hello. I’m from Brazil and we’re implementing Gibbon in a higher education school in the state. Congratulations on the Gibbon project. I’m trying to use Template Builder but no template appears. Could you help me? I have already checked the directories and access permissions, as already indicated by you in this Forum.
Hi Alessandra, welcome to the Gibbon community, great to hear you’re getting up and running with Gibbon for your organization.
To confirm, have you clicked the Scan Asset Directories button (the gear icon) and the files are still not showing up? If that’s the case, be sure to check the permissions of not only your uploads folder but also the modules/Reports/templates folder, as this is where the default templates are stored. Hope that helps, otherwise let us know which OS you’re using and versions of Gibbon, PHP, and MySQL, to help troubleshoot.
Hi Alessandra, thanks for the additional info. We’ve had some people run into trouble with asset scans when using XAMPP in the past, and although we thought we’ve fixed the issue, it looks like there may still be something that isn’t working as expected. I don’t have access at the moment to test using an XAMPP system, however it looks like the glob function might be part of the issue, so I’ve refactored that script to use a different method to scan the directory. If you apply these changes to your system, can you test them and let me know if it works? Thanks, the updated file can be found here: https://github.com/GibbonEdu/core/commit/01c5335458ce7883e807ff6e5733e9b9191c1c37
Hmm, this is odd, it looks like it may be related to how the directory paths and slashes are being handled. Can you please check in System Settings to ensure that your Base Path (the absolutePath in the gibbonSetting table) does not end with a \ or / character. I’m seeing that it looks like it has a trailing slash in the error message, which isn’t compatible with the UNIX-style directory separators.