Re: bb Attachments plugin fixed to be compatible with bbPress 1.0+
@Gautam .. I did manage to find one of the things that was causing a problem. It has to do as I suspected with the PHP $_SERVER[“DOCUMENT_ROOT”] variable. It doesn’t exist in an PHP install on IIS.
Now I have found a work-around that <gasp> works and when tested returns the proper path (eg: C:/Domains/winextra.com/bb-attachments/ – which from what I can tell in the “instructions” is exactly how it is suppose to be)
But when I try to upload a file (text/image) I get the following two errors and I was hoping that maybe you could help figure out what might be causing them
Warning: filesize() [function.filesize]: stat failed for 83def462ed888db6e1ad898505ea40b6 in C:Domainswinextra.comwwwrootforumsmy-pluginsbb-attachmentsbb-attachments.php on line 342
Warning: Cannot modify header information – headers already sent by (output started at C:Domainswinextra.comwwwrootforumsmy-pluginsbb-attachmentsbb-attachments.php:342) in C:Domainswinextra.comwwwrootforumsbb-includesfunctions.bb-pluggable.php on line 228
any help (from anyone ) would be greatly appreciated as this is the last real big complaint my members have.
EDIT: The files are getting uploaded but to the root folder and they are not being entered into the bb-attachments table – http://screencast.com/t/Y2UyZGQ4