October: Theme:sync --target=database not working

Created on 16 Jan 2020  路  5Comments  路  Source: octobercms/october

  • OctoberCMS Build: 458
  • PHP Version: 7.2
  • Database Engine: MySQL 5.7.26
  • Plugins Installed:
    Indikator.Backend 1.6.11
    RainLab.Pages 1.3.2
    RainLab.Builder 1.0.26

Description:

I save the templates in database (databaseTemplates is true in config). This works fine, but when I changed some layout files on filesystem and sync this files to database, this doesn't work as expected.

Steps To Reproduce:

For example I use the command:
artisan theme:sync --target=database --force --paths=layouts/about.htm

But the changes are not in database, although the message shows The theme mytheme has been successfully synced from the filesystem to the database.

I have debug the process and I think the source is not the correct one. When I change some content in database and look at the variable $content in modules/cms/classes/AutoDatasource.php#L156 , I see the content from database and not from filesystem.

What's going wrong?

In Progress Bug

All 5 comments

@bennothommo could you take a look?

@LukeTowers will do.

This issue will be closed and archived in 3 days, as there has been no activity in the last 30 days.

  • If this issue is still relevant or you would like to see it actioned, please respond and we will re-open this issue. - If this issue is critical to your business, consider joining the Premium Support Program where a Service Level Agreement is offered.

@hackolein can you test out #5017 and let me know if that fixes the issue for you?

Yes, works as expected. Thank you!

Was this page helpful?
0 / 5 - 0 ratings