Permission Denied Error on Edit Contents

Hi,

 

We have created a new website in Squiz Matrix 4.12.2, using the "import_from_xml.php" script. There were no errors reported.

 

The import went well and everything looks OK. The new website seems to work properly.

 

That is until we attempt to edit a page... then we get one or two PHP Warning "Permission Denied" errors:

PHP Warning
File: [SYSTEM_ROOT]/fudge/general/file_system.inc Line: 137
Message: rename(/tmp/string_to_filenFde1i,[SYSTEM_ROOT]/data/private/assets/bodycopy_div/0015/2922/content_file.php): Permission denied
Backtrace: Show

The first few functions listed in the backtrace are:(args omitted for brevity)

 

0 => array (
	"function" => "sq_error_handler",

1 => array (
“file” => “[SYSTEM_ROOT]/fudge/general/file_system.inc”,
“line” => 137,
“function” => “rename”,

2 => array (
“file” => “[SYSTEM_ROOT]/core/assets/bodycopy/bodycopy_container/bodycopy_container_edit_fns.inc”,
“line” => 345,
“function” => “string_to_file”,

3 => array (
“file” => “[SYSTEM_ROOT]/core/assets/bodycopy/bodycopy_containers/bodycopy_div/bodycopy_div_edit_fns.inc”,
“line” => 447,
“function” => “generateContentFile”,

4 => array (
“file” => “[SYSTEM_ROOT]/core/assets/bodycopy/bodycopy/bodycopy_edit_fns.inc”,
“line” => 393,
“function” => “processContainer”,

5 => array (
“file” => “[SYSTEM_ROOT]/core/include/asset_edit_interface.inc”,
“line” => 2083,
“function” => “processBodycopy”,

Can anyone suggest what might be wrong?

or a possible fix?

 

Thanks

Hi,

 

We have created a new website in Squiz Matrix 4.12.2, using the "import_from_xml.php" script. There were no errors reported.

 

The import went well and everything looks OK. The new website seems to work properly.

 

That is until we attempt to edit a page... then we get one or two PHP Warning "Permission Denied" errors:

PHP Warning
File: [SYSTEM_ROOT]/fudge/general/file_system.inc Line: 137
Message: rename(/tmp/string_to_filenFde1i,[SYSTEM_ROOT]/data/private/assets/bodycopy_div/0015/2922/content_file.php): Permission denied
Backtrace: Show

The first few functions listed in the backtrace are:(args omitted for brevity)

 

0 => array (
	"function" => "sq_error_handler",

1 => array (
“file” => “[SYSTEM_ROOT]/fudge/general/file_system.inc”,
“line” => 137,
“function” => “rename”,

2 => array (
“file” => “[SYSTEM_ROOT]/core/assets/bodycopy/bodycopy_container/bodycopy_container_edit_fns.inc”,
“line” => 345,
“function” => “string_to_file”,

3 => array (
“file” => “[SYSTEM_ROOT]/core/assets/bodycopy/bodycopy_containers/bodycopy_div/bodycopy_div_edit_fns.inc”,
“line” => 447,
“function” => “generateContentFile”,

4 => array (
“file” => “[SYSTEM_ROOT]/core/assets/bodycopy/bodycopy/bodycopy_edit_fns.inc”,
“line” => 393,
“function” => “processContainer”,

5 => array (
“file” => “[SYSTEM_ROOT]/core/include/asset_edit_interface.inc”,
“line” => 2083,
“function” => “processBodycopy”,

Can anyone suggest what might be wrong?

or a possible fix?

 

Thanks

 

Sounds like the matrix does not have the permissions to modify the filesystem files associated with those assets. Change the ownership on these assets to the correct user and you should be fine.

 

ie. chown apache:apache /matrixpath/data/private/assets/ -R

Thank you J.P.
 
You were right!
Running "import_from_xml.php" created plenty of new folders and files under /matrixpath/data/ with the inapropriate permissions.
Correcting the permissions fixed it.
 
Thanks