Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Synchronize Files Broke 2500+ linksSynchronize Files Broke 2500+ links
Previous
 
Next
New Post
10/29/2008 12:28 AM
 

I checked recursive and clicked synchronize files in the file manager for DNN 4.9 as some folders had gone missing from the list.

Everything updated ok in the file manager, all folders appeared, but throughout the portal now NONE of the links to file attachments work. They all result in the error listed below.

What is the the fileticket and how is it generated/encoded? There seems to be no reference to it in the dnn FILES table. Hopefully it is encoding the file name and not some randomly assigned id or value, as it should always uniquely point to the correct file. If so, why is it broken/not found? It appears it references the dnn generated FileID field in the files table, which must have changed.

Manually relinking a few seems to fix the problem for those links by changing the fileticket to a new number, so it looks like all the filetickets were changed. Manually relinking is not really an option for 2500+ links. Especially if it can happen again.

Any help on how to bulk update these links to match the new fileticket numbers is greatly appreciated. We're in serious trouble, so thank you to anyone who can help.

Error Message: 

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[NullReferenceException: Object reference not set to an instance of an object.]
   DotNetNuke.Common.Utilities.FileSystemUtils.DownloadFile(Int32 PortalId, Int32 FileId, Boolean ClientCache, Boolean ForceDownload) +66
   DotNetNuke.Services.FileSystem.FileServerHandler.ProcessRequest(HttpContext context) +1454
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +181
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75

 

Server Error in '/' Application.

Object reference not set to an instance of an object.

 


Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053 

 
New Post
10/29/2008 1:45 AM
 

Any chance for a quick fix you have a recent backup of the database? Restore that to another DB name, and copy the contents of the files table from the restore?


Chris Hammond
Former DNN Corp Employee, MVP, Core Team Member, Trustee
Christoc.com Software Solutions DotNetNuke Module Development, Upgrades and consulting.
dnnCHAT.com a chat room for DotNetNuke discussions
 
New Post
10/29/2008 3:55 AM
 

depending on your module, file links are usually stored either by (relative) path or file id, in the second case, if the id's get reassigned, the links will be broken. I am not aware of a reassignment during manual recursive sync, but there have been issues reported in DNN 4.8/4.9 with scheduled sync, therefore I strongly recommend to disable the file sync job in host :: scheduler.

If IDs get reassigned, the only chance you have is to restore the previous folders and files table and identify issues manually in the database before running the sync task.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
10/29/2008 10:02 AM
 

First thing I tried was restoring a backup. Due to its size, we backup once a week. Unfortunately, it went back to the previous state of certain folders missing, and we lost work since the last backup over the weekend.

It seems safest to get the database correct via the manual synchronize, and fix the links manually.

Thanks for the feedback - it confirms our approach.

 
New Post
10/29/2008 10:15 AM
 

I was afraid of that. Not the best design in the world, at least for us. Would rather have the links point to the file path. If files are moved, then at least a search and replace are possible. As it is, we cannot search for old filetickets and replace with new, as the old are lost, and we don't know the new.

I am not sure what the original problem was or what caused (apparently) all the id's to change with the manual sync, so can't lay blame with certainty. (I didn't check for broken links before syncing.)

Thank you for the feedback.

 

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Synchronize Files Broke 2500+ linksSynchronize Files Broke 2500+ links


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out