Assets go missing
Hi,
I have a problem. Many assets go missing on a live version of a site. When I save a blog post for example, the table 'perch2_resources' is updated and dozens of rows vanish. At the same time, those asset files go missing on the server in perch/resources. I have managed to get around this by restoring the said table from backup and re-syncing the deleted files back up to the server. It continues smoothly until I save a page / blog post in Perch and the error triggers again.
Any ideas Drew / Rachel / you guys?
Thanks Adam
By the way I'm running:
Perch: 2.7.4, PHP: 5.4.34-0+deb7u1, MySQL: 5.5.40, with PDO
Can you post your Diagnostics Report please?
Sure thanks
Do you see items from the Blog app being logged in your
perch2_resource_log
table?Yes there are 8 rows in the perch2_resource_log table referring to two different postID's I think.
That sounds about right. Do those change when the assets are cleaned up?
I'm not sure... how can I test this? It's still happening.
You say that there are 8 rows in the perch2_resource_log table referring to two different postIDs. Is that the same after this happens?
Is there a reason not to be running the current version?
Hi Drew,
After adding a blog post, the perch2_resources table is reset again (back down to 50 rows instead of 327) and images disappear from the server. However there are no new rows in perch2_resource_log referring to postIDs added.
What other tables affect perch2_resources?
Blog doesn't have resource clean-up. It logs use, but doesn't have the capability to remove anything.
Are you sure you didn't edit a content region?
It was a blog post. However where else could I look for discrepancies in the database if a content region was edited by the client also?
I have a feeling this spawns from workign on the site locally and remotely then syncing files / database thus causing conflicting errors. What tables could I check that would affect the resource clean up?
Thanks for your ongoing support
How are you syncing the database?
I export it in Sequel Pro, then import again to the server the same way. All tables at once.
Any ideas why it could be resetting the resources table and removing the images?
Are you replacing the data or merging it?
Replacing it - at the same time as merging files from server to server.
That should be fine then.
OK. I agree. But can you think why the resources images and database table reset to an old version (less files / a smaller table) ?
Can you show me the output from these two queries?