Deleting Content Fails
When deleting an html page, the loading hangs
When you delete an html page from the nav, the spinning wheel with the Loading text will not go away.
For example, I created a navigation folder called Resources, under this navigation folder contains an html page called "Contact Us" when I delete this page, the spinning wheel with the "Loading" text will not go away. I have to close my browser, clear my cache and start over again.
We believe this issue is caused by verity not setup on the machine.
When an object is deleted from the system, it attempts to delete it from the relevent verity collection. If verity is not installed or started on the server, then coldfusion basically hangs for the timeout duration and then farcry can't return any kind of informative error.
If you are receiving this issue with pages in the tree not deleting properly, use the code below and place it in the /farcry/your_project/config directory. The file is called _serverSpecificVarsAfterInit.cfm
You will notice in this file on line 6 we are setting: application.config.verity.bUpdateCollectionOnDelete = false
Use this to ensure verity does not update on delete while we consider how better to integrate verity (and other indexing options) into farcry.
<!--- THIS WILL BE INCLUDED AFTER THE FARCRY INIT HAS BEEN RUN BUT ONLY ON APPLICATION INITIALISATION. ---> <cfsetting enablecfoutputonly="yes"> <!--- Place any setup info here that is to be the defaults for ALL MACHINES ---> <cfset application.config.verity.bUpdateCollectionOnDelete = false /> <!--- Setup for specific developers ---> <cfswitch expression="#application.sysInfo.machineName#"> <!--- example where the server name is 'myMachine' ---> <cfcase value="myMachine"> </cfcase> <!--- All Other servers ---> <cfdefaultcase> </cfdefaultcase> </cfswitch> <cfsetting enablecfoutputonly="no">