Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
C
Core
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 913
    • Issues 913
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
  • Development
  • Core
  • Issues
  • #1476

Closed
Open
Opened Dec 13, 2019 by JonGold@JonGoldDeveloper

Warn on failed templates_c write

Overview

I think this is a problem that we've all faced at some point or another, but experienced implementers know how to fix this, and newbies get caught. When some of your templates_c files are owned by a user that's not the user running PHP, Civi silently fails in weird and wonderful ways.

Reproduction steps

  1. Recursively chown your templates_c folder such that the PHP user doesn't have write access.

Current behaviour

Parts of the Smarty forms fail to render.

Expected behaviour

Some sort of warning that there's a permissions issue on the templates_c folder.

I don't mind doing this if it gets "Concept Approved", though admittedly I've never dug that far down. I'm worried that Smarty isn't going to bubble up an exception, but it's worth a look.

To upload designs, you'll need to enable LFS and have admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: dev/core#1476