Simple Machines Community Forum

SMF Development => Bug Reports => Fixed or Bogus Bugs => Topic started by: petb on March 30, 2010, 07:41:48 PM

Title: 2.0 RC3 attachDirStatus() does not affect moved avatars dir in
Post by: petb on March 30, 2010, 07:41:48 PM
attachDirStatus gets the number of expected files and checks if it is the same as the number of attachments stored in the database.
This works if attachments and Avatars are both stored in the avatars Dir.

But if the Avatars are moved to a different Directory(For better Performance, like described in the Performance Tipps) than the normal attachmenst directory has less files than the the attachDirStatus Function gets as paramter "expectedfiles".

So it say there are missing files because it counts only the exisiting attachments in den attachment dir but estimate them plus the avatars which are now stored in the avatars dir.

So the Function who gives attachDirStatus() the estimated files count should decrease the amount with the amount of the moved avatars.

Actually this gives a status error, where no error was.

PeBe

EDIT
Sorry, forgot:   SMF 2.0 RC3
Title: Re: attachDirStatus() does not affect to moved avatars dir
Post by: Arantor on March 30, 2010, 07:59:07 PM
... what version of SMF?
Title: Re: 2.0 RC3 attachDirStatus() does not affect moved avatars dir in
Post by: petb on April 03, 2010, 04:43:29 AM
I think the Problem is better described from another User in his Post.
He has the same Problem.

http://www.simplemachines.org/community/index.php?topic=373898.msg2563724#msg2563724
Title: Re: 2.0 RC3 attachDirStatus() does not affect moved avatars dir in
Post by: madman71 on September 13, 2010, 06:57:14 PM
just bookmarking this thread. ;D