Matarix 3.12.0 Warning Message

Hi FOlks,


We are working in the 3.12.0 matrix environment and we are getting this matrix warning intermittently when making changes to page assets, design parse files etc.


[quote]MySource Warning

Unable to open temporary file () for writing, unable to write [SYSTEM_ROOT]/data/private/assets/bodycopy_div/0018/2763/content_file.php[/quote]



Any help appreciated.

Anthony :blink:

My immediate reaction is file permissions. Assume your webserver runs as "apache" – from the Matrix root, I recommend:

    # chown -R apache:apache *
    # find . -type d | xargs chmod 2775
    # find . -type f | xargs chmod 664


(You may want to chmod +x scripts/backup.sh afterwards).

Also, check that the umask for apache sets directories to 775 and files to 664 by default.

[quote]My immediate reaction is file permissions. Assume your webserver runs as "apache" – from the Matrix root, I recommend:

    # chown -R apache:apache *
    # find . -type d | xargs chmod 2775
    # find . -type f | xargs chmod 664


(You may want to chmod +x scripts/backup.sh afterwards).

Also, check that the umask for apache sets directories to 775 and files to 664 by default.
[right][post="14721"]<{POST_SNAPBACK}>[/post][/right][/quote]

Many thanks Avi I will try that shortly.......I have also been running some of the system_integrity scripts and got the following error...

system_integrity_check_links.php

/opt/matrix/mysource_matrix> php scripts/system_integrity_check_links.php /opt/matrix/mysource_matrix/

WARNING: You are running this integrity checker on the whole system.
This is fine but it may take a long time

YOU HAVE 5 SECONDS TO CANCEL THIS SCRIPT... 1 2 3 4 5

    +-------------------------------------------------------------------------------------------------------------------------------+
    | MySource Error                                                                                                                |
    |-------------------------------------------------------------------------------------------------------------------------------|
    | [ASSERT EXCEPTION] [integer] "0" is not a valid asset ID (LINE 901 IN [SYSTEM_ROOT]/core/include/asset_manager.inc) [SYS0270] |
    +-------------------------------------------------------------------------------------------------------------------------------+


Any Thoughts...

That usually points to very broken links inside content (.?a='') type stuff. Things that look like internal links, but aren't. You might want to raise a support ticket so that we can check your content to see what's causing the problem.

[quote]That usually points to very broken links inside content (.?a=’’) type stuff. Things that look like internal links, but aren’t. You might want to raise a support ticket so that we can check your content to see what’s causing the problem.
[right][post=“14725”]<{POST_SNAPBACK}>[/post][/right][/quote]



For my own benifit, what would have caused these broken links…would it be using links like the one you mentioned (.?a=)…and if it is what is a better alternative?



-=A=-

[quote]For my own benifit, what would have caused these broken links…would it be using links like the one you mentioned (.?a=)…and if it is what is a better alternative?
[right][post=“14726”]<{POST_SNAPBACK}>[/post][/right][/quote]



Without seeing the link in question, this is too difficult to answer, I’m afraid. It can be as simple as creating a link to another asset, then trashing and purging that asset - Matrix then has no target for the link left in the system at all.