hi.We activated bb-attachment plugin on 2 bbP forum that have same version both of plugin and bbP. And created "bb-attachment" folder on root directory with same permission (777). In this forums files & picuters can be downloaded and shown (http://forum.7i7griffin.info/topic/5) but in this one files & pictures cannot be downloaded and shown (http://forum.saaer.org/topic.php?id=11). Please help.
bbPress ShowcasebbPress Showcase
bbPress Showcase » Plugins by _ck_
-
Posted 9 months ago #
-
If they are different hosts, there might be differences in how PHP is configured on each.
This actually has the right headers, it shows as jpeg and has a filesize:
http://forum.saaer.org/?bb_attachments=13&bbat=1&inline
But since it does not display, that might mean either the file is not where the plugin expects it to be, or the plugin cannot access the file.
See if you can find your PHP error log, which will show the fopen error.
Because it has a mime type and filesize, I think PHP can see the file but either cannot FOPEN or FPASSTHRU.
Login as admin and run this http://forum.saaer.org/?bb_attachments_debug
look at: disabled functions
Posted 9 months ago # -
hi.fopen is working correctly.fpassthru for security reasons is closed.please give us your email address to send you host information to check it out.thank you
Posted 9 months ago # -
Sorry I don't do direct support like that.
If
fpassthruis disabled you have a big problem then.If
readfileis not disabled, then you can try editing the plugin and changefpassthrutoreadfile.That's the only easy answer, it gets more complex from there.
Your host is silly for disabling that function. There are many alternatives.
Posted 9 months ago # -
it's possible to change it by yourself? I cannot recode it cause i'm not pro coder
and something else, what's that plugin? i mean the "wall" on profile page
thank youPosted 9 months ago # -
The wall plugin is not available to the public.
open
bb-attachments-init.phpin notepadsearch for the word
fpassthruput two slashes in front of that line like this
// fpassthru($fp); // avoids file touch bug with readfile
(that disables the line)then make a new line BEFORE
fclose($fp)and put this in itwhile(!feof($fp) && $data=fread($fp,8192)){print $data;}so it looks like this
// fpassthru($fp); while(!feof($fp) && $data=fread($fp,8192)){print $data;} fclose($fp);save file and replace it on your server
if that doesn't solve it, find a better host
Posted 9 months ago # -
hi
thank you for helping
the plugin is now work corecctlyCan you give us the wall plugin? We really need it, please
Posted 9 months ago #
RSS feed for this topic
Post a reply to “bb attachment not work”
You must log in to post.