I am having a problem with an umbraco site that I have built where the user can upload a set of documents under categories. After uploading around 500 documents to the categories some of the categories started disappearing and reappearing after a few refreshes and then disappearing again. The same happens with the documents. The code for the categories list and documents list is shown below
I can see the nodes ok in the admin pages, but the front end is where i have a problem.
I have also tried removing the code that hides the documents/categories if the actual documents do not exist but to no avail.
- If you happen to know a document should shoud be there but isn't, check umbraco.config from /data folder. If the document isn't there, I'd suggest to publish nodes again by right-clicking all top level nodes (child nodes of 'Content') and select 'Publish' (In dialog, select to publish child nodes as well)
-Also, start with fairly easy xslt, that lists all documents, no restrictions on any property, something along the lines of:
I added in your code and checked the umbraco.config in the /data folder, the config file shows all the nodes that should be there but the front end is still intermittent. the following link shows the page im working on plus the extra code I added in from your suggested, and as you can see sometimes they are there but on refresh they disappear and reappear.
No clue! I'm out of ideas!! All seems working fine, but at some point, documents don't show up, and next refresh, they're back. Really, really strange.
And macro is set to not cache, right? In which case umbraco should be regenerating the list each time again. Bummer... Just for the record, what happens if you'd use
I dont think its a problem with the code itself as the code you gave me before (GetXMLAll) is doing the same, not to worry however I can rebuild the site and add in the documents and categories as a custom section that calls the database directly (which worked fine on the old site)
Nodes Disappearing
Hi all
I am having a problem with an umbraco site that I have built where the user can upload a set of documents under categories. After uploading around 500 documents to the categories some of the categories started disappearing and reappearing after a few refreshes and then disappearing again. The same happens with the documents. The code for the categories list and documents list is shown below
Category List
[code]
[/code]
Document View
[code]
[/code]
Is there something I am doing wrong?
any help would be appreciated
Thanks
Hi,
Can you specify a bit more? you don't see those documents in front end (after applying the xslt) or you can't see all documents in the admin pages?
Regards,
/Dirk
Hi,
thanks for replying.
I can see the nodes ok in the admin pages, but the front end is where i have a problem.
I have also tried removing the code that hides the documents/categories if the actual documents do not exist but to no avail.
thanks for your help
Jamie
Hi,
Here's something I'm thinking of right now:
- If you happen to know a document should shoud be there but isn't, check umbraco.config from /data folder. If the document isn't there, I'd suggest to publish nodes again by right-clicking all top level nodes (child nodes of 'Content') and select 'Publish' (In dialog, select to publish child nodes as well)
-Also, start with fairly easy xslt, that lists all documents, no restrictions on any property, something along the lines of:
[code][/code]
Let us know what you find out.
Regards,
/Dirk
Hi Dirk
Thanks for your reply again
I added in your code and checked the umbraco.config in the /data folder, the config file shows all the nodes that should be there but the front end is still intermittent. the following link shows the page im working on plus the extra code I added in from your suggested, and as you can see sometimes they are there but on refresh they disappear and reappear.
http://www.scotbloodtest.scot.nhs.uk/freedom-of-information-act/freedom-of-information-act/foi-directors.aspx
I also republished all items on the admin and published the separate categories as well but still no luck of loading them all of the time.
The GetXmlAll() method also does the same where they appear on the page sometimes and not others even though the .config file does hold the documents.
Thanks for your help
Jamie
Hi,
No clue! I'm out of ideas!! All seems working fine, but at some point, documents don't show up, and next refresh, they're back. Really, really strange.
And macro is set to not cache, right? In which case umbraco should be regenerating the list each time again. Bummer... Just for the record, what happens if you'd use
[code]
Thanks for your help Dirk,
I dont think its a problem with the code itself as the code you gave me before (GetXMLAll) is doing the same, not to worry however I can rebuild the site and add in the documents and categories as a custom section that calls the database directly (which worked fine on the old site)
Again thanks for your help.
Jamie
If content disappears from the front-end, 99% change is that there is a permission-problem.
Check the permissions on the data-folder.
is working on a reply...