Where is asset content stored?

Hi, we have a scenario atm that is derived from this error that has occurred during the process of committing a content change for a standard page:

    Unable to open temporary file () for writing, unable to write /data/private/assets/bodycopy_div/0014/20273/content_file.php

The result has been that the _admin has different content to the file system content found at:

    /data/private/assets/bodycopy_div/xxx/xxx/content_file.php


Can we discover where asset content is stored? We are trying to find where the content that the _admin is getting…

So does Matrix write content to the DB as well as file system? Trying to find out why _admin has different content to the content_file.php file.

Matrix writes content to the DB and that is used in the admin and edit interfaces. An additional file is written out on the file system to save on DB queries for page loads. It is also used when safe editing; allowing us to store different content in the DB and on the file system.

This implies a permissions error on your filesystem (i.e. that Apache can't write out that file). You should check that Apache and the Squiz Server (if you're using it) run as the same user to reduce potential permission conflicts.

Squiz server = 'nobody'

Apache = 'matrix'

Martix = 'cms'



We will look into the user | group of the Squiz server… thanks Avi :slight_smile:



A flow chart or list of actions for a commit may be a useful reference…

Everything needs to run as the same user: Apache and the Squiz Server (Matrix obviously uses the same user as Apache does). Also, remember to use the Apache user's crontab for the Cron Manager script and Bulkmail script.