today I tried the tidy script which is supposed to go through all the content divs. After running the script, which posted a lot of error messages I got a bad feeling.
So I checked the front end. All content divs had gone. I logged into back-end and the content where gone even there.
So I did a recover from a backup. Now the content is back. But I get error messages telling for every hrefs to assets within the content div. As an example, every img tags are generating a error message like this:
That's correct – the <?php … ?> code is replaced by Matrix on the front-end with the correct URL for the asset. This is how Matrix maintains the URLs when you move content around in your Matrix system.
The error you're getting usually suggests that Matrix cannot find an asset with that ID in the system. I'm not sure why Tidy would've removed any content (I've never seen that happen before). Could you post the errors you got, by any chance?
Another thing that may have happened is that you have lost the notice links between content items. This happens when content is removed, but restoring from backup would have restored them as well.
Try running the system_integrity_content_links.php script in the MYSOURCE_ROOT/scripts directory. This script will regenerate all the cached PHP content files and recreate the links (if they are missing).
[quote]Another thing that may have happened is that you have lost the notice links between content items. This happens when content is removed, but restoring from backup would have restored them as well.
Try running the system_integrity_content_links.php script in the MYSOURCE_ROOT/scripts directory. This script will regenerate all the cached PHP content files and recreate the links (if they are missing).
Greg: Ran this script right now. The result was the same as after running the tidy script. All content within the div’s has dissapeard again! When I visit the front-end the pages are showing the design without any content. (Without errors )
Now I have to restore again… or do u have any other tips?