Menu

#604 When adding/editing a resource, ensure more informative error messages are givien

6.8.0
wont-fix
None
6.7.2
Bug
Unknow
Unknow
Unknow
2024-01-20
2023-07-21
No

After SVN update 4314, I now get file permission errors related to templates when opening the FRONT page. I notice also that when the front page does load, the PHP time is over 3 seconds.

I get the errors in the screenshot related to the default template (although I'm using Bryophyta). Curiously, it doesn't always happen and sometimes, when reloading the front page, I get no error messages (but still the long delay).

It seems to be only the FRONT page at fault.

Mark

1 Attachments

Discussion

  • Stéphane Aulery

    Hi Mark,

    Try to delete the compilation cache of Smarty.

    Regards,

     
  • Stéphane Aulery

    Smarty can store cache files inside a custom store. Maybe I could push compilation cache in db and get rid of the permissions at the same time. But it has to be efficient enough.

    https://smarty-php.github.io/smarty/5.x/programmers/caching/caching-custom/

     
  • Stéphane Aulery

    PHP maintains a permission cache. It could be the explanation.

     
    • Stéphane Aulery

      Hi Mark,

      After a few hours of testing and researching Smarty's build system I conclude that the problem must come from this permissions cache and how Smarty clears it and PHP rebuilds it. It's not something you can really fix.

      The extension system I told you about only manages cached files and not compiled files. Nevertheless I hacked the compilation system to put the files in a MySQL table then an SQLite table. Smarty is twice as fast after the operation. However, this requires invasive modifications that are difficult to maintain between each publication of Smarty. It is not usable as is.

      Regards,

       
  • Stéphane Aulery

    • status: open --> wont-fix
     

Log in to post a comment.